Compare commits

..

12 commits

Author SHA1 Message Date
Fedora Release Engineering
e3109e9d8d Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:54:02 +00:00
Fedora Release Engineering
a42cb7f234 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:20:14 +00:00
Fedora Release Engineering
279fb6fd76 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:30:52 +00:00
David Auer
c6d8f44149 Fix build with GCC 15
GCC 15 defaults to C23, but the last update was from 2007 so it can't be expected to be compatible with the latest standards.
2025-05-01 01:53:27 +02:00
Fedora Release Engineering
82f7eea937 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 15:12:25 +00:00
Miroslav Suchý
c7ab1166df convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-26 03:42:15 +02:00
Fedora Release Engineering
2d52a811f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:30:06 +00:00
Software Management Team
ba64603869 Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:50 +02:00
Fedora Release Engineering
ea75a03009 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 09:02:49 +00:00
Fedora Release Engineering
71a43da4b7 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:20:23 +00:00
Fedora Release Engineering
f3a0619143 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:57:28 +00:00
Florian Weimer
8aa9681676 Port configure script to C99 (#2148875)
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-11-28 10:03:56 +01:00
2 changed files with 163 additions and 3 deletions

123
wol-configure-c99.patch Normal file
View file

@ -0,0 +1,123 @@
Avoid implicit function declarations for C99 compatibility.
These are mostly in standard (built-in or gnulib/autoconf archive)
checks, so there is no need to upstream this (if upstream were stil
active).
diff --git a/configure b/configure
index 5a5a82660c50b040..38779afcf5cfe28b 100755
--- a/configure
+++ b/configure
@@ -2669,7 +2669,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
- '' \
+ '#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
@@ -3293,8 +3293,8 @@ main ()
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
- exit(2);
- exit (0);
+ return 2;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
@@ -4188,7 +4188,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
- '' \
+ '#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
@@ -12227,8 +12227,8 @@ main ()
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
- exit(2);
- exit (0);
+ return 2;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
@@ -13410,7 +13410,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
- exit (malloc (0) ? 0 : 1);
+ return malloc (0) ? 0 : 1;
}
_ACEOF
@@ -13481,7 +13481,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
- exit (realloc (0, 0) ? 0 : 1);
+ return realloc (0, 0) ? 0 : 1;
}
_ACEOF
@@ -14534,6 +14534,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
+#include <error.h>
int
main ()
{
@@ -14719,7 +14720,7 @@ cat >>conftest.$ac_ext <<_ACEOF
if (!in)
return 1;
len = getline (&line, &siz, in);
- exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
+ return (len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1;
}
_ACEOF
diff --git a/m4/getline.m4 b/m4/getline.m4
index d19e56386717afbd..e4da867860cc08fc 100644
--- a/m4/getline.m4
+++ b/m4/getline.m4
@@ -27,7 +27,7 @@ AC_DEFUN([AM_FUNC_GETLINE],
if (!in)
return 1;
len = getline (&line, &siz, in);
- exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
+ return (len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1;
}
], am_cv_func_working_getline=yes dnl The library version works.
, am_cv_func_working_getline=no dnl The library version does NOT work.
diff --git a/m4/malloc.m4 b/m4/malloc.m4
index 05c66ad6a21012de..35f70572348a2ec6 100644
--- a/m4/malloc.m4
+++ b/m4/malloc.m4
@@ -18,7 +18,7 @@ AC_DEFUN([jm_FUNC_MALLOC],
int
main ()
{
- exit (malloc (0) ? 0 : 1);
+ return malloc (0) ? 0 : 1;
}
],
jm_cv_func_working_malloc=yes,
diff --git a/m4/realloc.m4 b/m4/realloc.m4
index ff8314dd4fc407e9..9eb71f59aac26f8b 100644
--- a/m4/realloc.m4
+++ b/m4/realloc.m4
@@ -18,7 +18,7 @@ AC_DEFUN([jm_FUNC_REALLOC],
int
main ()
{
- exit (realloc (0, 0) ? 0 : 1);
+ return realloc (0, 0) ? 0 : 1;
}
],
jm_cv_func_working_realloc=yes,

View file

@ -1,12 +1,14 @@
Name: wol
Version: 0.7.1
Release: 29%{?dist}
Release: 40%{?dist}
Summary: Wake On Lan client
License: GPLv2+
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://sourceforge.net/projects/wake-on-lan/
Source0: http://downloads.sourceforge.net/wake-on-lan/%{name}-%{version}.tar.gz
Patch0: wol-0.7.1-binding.patch
Patch1: wol-configure-c99.patch
BuildRequires: make
BuildRequires: gcc
@ -19,9 +21,11 @@ hardware that is Magic Packet compliant. SecureON is supported by wol too.
%prep
%setup -q
%patch0 -p1 -b .binding
%patch -P0 -p1 -b .binding
%patch -P1 -p1 -b .configure-c99
%build
export CFLAGS="$CFLAGS -std=gnu11"
%configure --disable-static
make %{?_smp_mflags}
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv
@ -40,6 +44,39 @@ rm -f %{buildroot}%{_infodir}/dir
%{_bindir}/%{name}*
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed Apr 30 2025 David Auer <dreua@posteo.de> - 0.7.1-37
- Fix build with GCC 15
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 0.7.1-35
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Nov 28 2022 Florian Weimer <fweimer@redhat.com> - 0.7.1-30
- Port configure script to C99 (#2148875)
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild