2 Commits

3 changed files with 24 additions and 1 deletions

14
daemonize-gcc15.patch Normal file
View File

@@ -0,0 +1,14 @@
diff --git a/getopt.c b/getopt.c
index 3f37c55..f298da7 100644
--- a/getopt.c
+++ b/getopt.c
@@ -45,7 +45,7 @@
#include <string.h>
#define ERR(s, c) if(x_opterr){\
- extern int write();\
+ extern int write(int, const void *, unsigned);\
char errbuf[2];\
errbuf[0] = c; errbuf[1] = '\n';\
(void) write(2, argv[0], (unsigned)strlen(argv[0]));\

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jul 9 08:27:13 UTC 2025 - pgajdos@suse.com
- added patches
https://github.com/bmc/daemonize/commit/eaf4746d47e171e7b8655690eb1e91fc216f2866
+ daemonize-gcc15.patch
-------------------------------------------------------------------
Tue Feb 27 14:14:45 UTC 2024 - Alessio Biancalana <alessio.biancalana@suse.com>

View File

@@ -24,6 +24,8 @@ License: BSD-3-Clause
Group: System/Console
URL: https://github.com/bmc/daemonize
Source0: %{name}-%{version}.tar.gz
# https://github.com/bmc/daemonize/commit/eaf4746d47e171e7b8655690eb1e91fc216f2866
Patch0: daemonize-gcc15.patch
%description
daemonize runs a command as a Unix daemon. As defined in W. Richard Stevens'
@@ -51,7 +53,7 @@ When you must run a daemon program that does not properly make itself into a
true Unix daemon, you can use daemonize to force it to run as a true daemon.
%prep
%autosetup
%autosetup -p1
%build
sed -i -e 's|/sbin|/bin|' Makefile.in