Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wol for openSUSE:Factory checked in at 2024-07-08 19:07:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wol (Old) and /work/SRC/openSUSE:Factory/.wol.new.2080 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wol" Mon Jul 8 19:07:09 2024 rev:21 rq:1186107 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/wol/wol.changes 2018-03-13 10:22:37.644803824 +0100 +++ /work/SRC/openSUSE:Factory/.wol.new.2080/wol.changes 2024-07-08 19:07:30.181078463 +0200 @@ -2 +2,9 @@ -Sat Mar 10 02:06:37 UTC 2018 - [email protected] +Mon Jul 8 07:08:42 UTC 2024 - Friedrich Haubensak <[email protected]> + +- Added patches for support gcc14: + * wol-0.7.1-Fix-config.h-test-consumption.patch + * wol-0.7.1-Fix-malloc-detection.patch + * wol-0.7.1-linux-headers.patch + +------------------------------------------------------------------- +Sat Mar 10 02:06:37 UTC 2018 - ÐлÑÑ Ðндиго <[email protected]> @@ -8 +16 @@ -Mon Nov 13 10:06:34 UTC 2017 - [email protected] +Mon Nov 13 10:06:34 UTC 2017 - ÐлÑÑ Ðндиго <[email protected]> @@ -53 +60,0 @@ - New: ---- wol-0.7.1-Fix-config.h-test-consumption.patch wol-0.7.1-Fix-malloc-detection.patch wol-0.7.1-linux-headers.patch BETA DEBUG BEGIN: New:- Added patches for support gcc14: * wol-0.7.1-Fix-config.h-test-consumption.patch * wol-0.7.1-Fix-malloc-detection.patch New: * wol-0.7.1-Fix-config.h-test-consumption.patch * wol-0.7.1-Fix-malloc-detection.patch * wol-0.7.1-linux-headers.patch New: * wol-0.7.1-Fix-malloc-detection.patch * wol-0.7.1-linux-headers.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wol.spec ++++++ --- /var/tmp/diff_new_pack.tAsRgw/_old 2024-07-08 19:07:31.129113134 +0200 +++ /var/tmp/diff_new_pack.tAsRgw/_new 2024-07-08 19:07:31.129113134 +0200 @@ -1,7 +1,7 @@ # # spec file for package wol # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,9 +12,10 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + Name: wol Version: 0.7.1 Release: 0 @@ -24,6 +25,11 @@ URL: https://sourceforge.net/projects/wake-on-lan Source0: %{name}-%{version}.tar.gz Source1: %{name}.rules +Patch0: wol-0.7.1-Fix-config.h-test-consumption.patch +Patch1: wol-0.7.1-Fix-malloc-detection.patch +Patch2: wol-0.7.1-linux-headers.patch +BuildRequires: autoconf +BuildRequires: automake Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} @@ -46,15 +52,16 @@ %lang_package %prep -%setup -q +%autosetup -p1 %build +autoreconf -fiv %configure --disable-rpath -make %{?_smp_mflags} +%make_build %install %make_install -install -Dm 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/90-%{name}.rules +install -Dpm0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/90-%{name}.rules %find_lang %{name} %post @@ -64,15 +71,13 @@ %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %files -%defattr(0644,root,root,-) %license COPYING %doc ABOUT-NLS AUTHORS ChangeLog NEWS README TODO -%attr(0755,root,root) %{_bindir}/%{name}* +%{_bindir}/%{name}* %{_infodir}/%{name}.info%{?ext_info} %{_mandir}/man?/%{name}.?%{ext_man} %files udev-rules -%defattr(0644,root,root,-) %dir %{_udevrulesdir} %{_udevrulesdir}/90-%{name}.rules ++++++ wol-0.7.1-Fix-config.h-test-consumption.patch ++++++ >From 1c16d04a3fc03a5f4c0cd54ff6f207de1062e9bd Mon Sep 17 00:00:00 2001 From: Sam James <[email protected]> Date: Tue, 25 Oct 2022 13:54:04 +0100 Subject: [PATCH] Fix config.h test consumption Bug: https://bugs.gentoo.org/874420 --- a/lib/ether.h +++ b/lib/ether.h @@ -35,7 +35,7 @@ #include "magic.h" -#if !HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET && !HAVE_STRUCT_ETHER_ADDR_OCTET +#if !defined(HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET) && !defined(HAVE_STRUCT_ETHER_ADDR_OCTET) struct ether_addr @@ -45,7 +45,7 @@ ether_addr #define ETHER_ADDR_OCTET ether_addr_octet -#else /* HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET || HAVE_STRUCT_ETHER_ADDR_OCTET */ +#else /* defined(HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET) || defined(HAVE_STRUCT_ETHER_ADDR_OCTET) */ #if HAVE_STRUCT_ETHER_ADDR_OCTET #define ETHER_ADDR_OCTET octet @@ -55,7 +55,7 @@ ether_addr #define ETHER_ADDR_OCTET ether_addr_octet #endif /* HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET */ -#endif /* !HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET && !HAVE_STRUCT_ETHER_ADDR_OCTET */ +#endif /* !defined(HAVE_STRUCT_ETHER_ADDR_ETHER_ADDR_OCTET) && !defined(HAVE_STRUCT_ETHER_ADDR_OCTET) */ #if !defined(HAVE_ETHER_HOSTTON) ++++++ wol-0.7.1-Fix-malloc-detection.patch ++++++ SUSE: also change "char *malloc ();" to "void *malloc(size_t size);" === https://bugs.gentoo.org/874420 >From bcf98fe9a674a3784ad1a4f8eecc3b31a7b209a9 Mon Sep 17 00:00:00 2001 From: Sam James <[email protected]> Date: Tue, 25 Oct 2022 14:00:23 +0100 Subject: [PATCH] Fix malloc detection --- a/m4/getline.m4 +++ b/m4/getline.m4 @@ -18,6 +18,7 @@ AC_DEFUN([AM_FUNC_GETLINE], # include <stdio.h> # include <sys/types.h> # include <string.h> +# include <stdlib.h> int main () { /* Based on a test program from Karl Heuer. */ char *line = NULL; --- a/m4/malloc.m4 +++ b/m4/malloc.m4 @@ -14,7 +14,8 @@ AC_DEFUN([jm_FUNC_MALLOC], AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, [AC_TRY_RUN([ - char *malloc (); + #include <stdlib.h> + void *malloc(size_t size); int main () { --- a/m4/realloc.m4 +++ b/m4/realloc.m4 @@ -14,7 +14,8 @@ AC_DEFUN([jm_FUNC_REALLOC], AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, [AC_TRY_RUN([ - char *realloc (); + #include <stdlib.h> + void *realloc(void *ptr, size_t size); int main () { ++++++ wol-0.7.1-linux-headers.patch ++++++ --- a/src/magic.c +++ b/src/magic.c @@ -142,7 +142,7 @@ magic_assemble (struct magic *magic_buf, const char *mac_str, } for (j = 0; j < MAC_LEN; ++j) - m[j] = ea.ETHER_ADDR_OCTET[j]; + m[j] = ea.ether_addr_octet[j]; } /* accommodate the packet chunk's size to the packet type */
