summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-09-19 16:13:42 +0200
committerKhem Raj <raj.khem@gmail.com>2025-09-19 12:22:00 -0700
commita5cfc39eceb8d5bd0e563458e2d55e7c51cd6beb (patch)
tree420a5b8ac866d65fab54d5ea1d6a774edc3e0068
parent9e2040c10b64e98aed72c11f1b6fdaf0077caaa5 (diff)
downloadmeta-openembedded-a5cfc39eceb8d5bd0e563458e2d55e7c51cd6beb.tar.gz
daemonize: update to latest revision
Drop a patch that has been incorporated into this version. (That is also the changelog - the only change is the accepted patch) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/daemonize/daemonize/0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch46
-rw-r--r--meta-oe/recipes-support/daemonize/daemonize_git.bb3
2 files changed, 1 insertions, 48 deletions
diff --git a/meta-oe/recipes-support/daemonize/daemonize/0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch b/meta-oe/recipes-support/daemonize/daemonize/0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch
deleted file mode 100644
index 3a79dba682..0000000000
--- a/meta-oe/recipes-support/daemonize/daemonize/0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From c47fdcc0a900aea93b1967c20db42743171ab1ac Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 27 Mar 2025 16:46:42 +0900
4Subject: [PATCH] fix getopt.c too many arguments to function 'write' error in
5 gcc-15.0.1
6
7In the original code, write() was declared as 'extern int write();',
8which is interpreted as a function taking no parameters.
9This caused errors when actually calling it with 3 parameters.
10The current fix to declare it as 'extern int write(int, const void *, unsigned);'
11is the correct solution.
12This properly defines the write function to accept 3 parameters.
13
14../git/getopt.c: In function 'x_getopt':
15../git/getopt.c:51:16: error: too many arguments to function 'write'; expected 0, have 3
16 51 | (void) write(2, argv[0], (unsigned)strlen(argv[0]));\
17 | ^~~~~ ~
18../git/getopt.c:78:17: note: in expansion of macro 'ERR'
19 78 | ERR(": illegal option -- ", c);
20 | ^~~
21../git/getopt.c:48:20: note: declared here
22 48 | extern int write();\
23 | ^~~~~
24
25Upstream-Status: Submitted [https://github.com/bmc/daemonize/pull/37]
26Signed-off-by: mark.yang <mark.yang@lge.com>
27---
28 getopt.c | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31diff --git a/getopt.c b/getopt.c
32index 3f37c55..f298da7 100644
33--- a/getopt.c
34+++ b/getopt.c
35@@ -45,7 +45,7 @@
36 #include <string.h>
37
38 #define ERR(s, c) if(x_opterr){\
39- extern int write();\
40+ extern int write(int, const void *, unsigned);\
41 char errbuf[2];\
42 errbuf[0] = c; errbuf[1] = '\n';\
43 (void) write(2, argv[0], (unsigned)strlen(argv[0]));\
44--
452.34.1
46
diff --git a/meta-oe/recipes-support/daemonize/daemonize_git.bb b/meta-oe/recipes-support/daemonize/daemonize_git.bb
index bae04ca7a3..fef237e882 100644
--- a/meta-oe/recipes-support/daemonize/daemonize_git.bb
+++ b/meta-oe/recipes-support/daemonize/daemonize_git.bb
@@ -6,10 +6,9 @@ PV = "1.7.8"
6 6
7inherit autotools 7inherit autotools
8 8
9SRCREV = "18869a797dab12bf1c917ba3b4782fef484c407c" 9SRCREV = "58237626e6999e68b9583ed1b4b08136f118f68c"
10SRC_URI = " \ 10SRC_URI = " \
11 git://github.com/bmc/daemonize.git;branch=master;protocol=https \ 11 git://github.com/bmc/daemonize.git;branch=master;protocol=https \
12 file://0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch \
13" 12"
14 13
15 14