3 Commits

Author SHA256 Message Date
8e15d41be4 Accepting request 1246405 from network:utilities
- Added wol-gcc15.patch to fix build with gcc15.

OBS-URL: https://build.opensuse.org/request/show/1246405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wol?expand=0&rev=22
2025-02-18 18:08:37 +00:00
Илья Индиго
5134c3fe6a - Added wol-gcc15.patch to fix build with gcc15.
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wol?expand=0&rev=20
2025-02-17 11:52:55 +00:00
Илья Индиго
4fe5076ecb - added patches
fix build with gcc15
  + wol-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/network:utilities/wol?expand=0&rev=19
2025-02-17 11:47:51 +00:00
3 changed files with 22 additions and 1 deletions

14
wol-gcc15.patch Normal file
View File

@@ -0,0 +1,14 @@
--- wol-0.7.1/lib/realloc.c 2002-03-20 01:45:12.000000000 +0100
+++ wol-0.7.1/lib/realloc.c 2025-02-17 11:35:13.552537462 +0100
@@ -23,9 +23,7 @@
#undef realloc
#include <sys/types.h>
-
-char *malloc ();
-char *realloc ();
+#include <stdlib.h>
/* Change the size of an allocated block of memory P to N bytes,
with error checking. If N is zero, change it to 1. If P is NULL,

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 17 10:45:53 UTC 2025 - pgajdos@suse.com
- Added wol-gcc15.patch to fix build with gcc15.
-------------------------------------------------------------------
Mon Jul 8 07:08:42 UTC 2024 - Friedrich Haubensak <hsk17@mail.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package wol
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,8 @@ 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
# fix build with gcc15
Patch3: wol-gcc15.patch
BuildRequires: autoconf
BuildRequires: automake
Requires(post): %{install_info_prereq}