diff options
| author | Changqing Li <changqing.li@windriver.com> | 2024-12-10 18:53:48 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-12 13:40:49 +0000 |
| commit | 36056e320293802b4c14459a224ea115e7215e6c (patch) | |
| tree | 38adfc8c3eca972cc9c1b525ee241c7fbd03c4ab | |
| parent | 91fb92c883c88013370a915f9219c2d81f6dddf6 (diff) | |
| download | poky-36056e320293802b4c14459a224ea115e7215e6c.tar.gz | |
sysvinit: upgrade 3.04 -> 3.11
Refresh patches:
crypt-lib.patch
install.patch
pidof-add-m-option.patch
realpath.patch
Drop patches since upstream already include these changes:
0001-hddown-include-libgen.h-for-basename-API.patch
sysvinit_remove_linux_fs.patch
Refer:
https://github.com/slicer69/sysvinit/releases
(From OE-Core rev: f325557ef41737e2fc76bb97cd629b497cba4317)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/0001-hddown-include-libgen.h-for-basename-API.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/install.patch | 50 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/pidof-add-m-option.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/realpath.patch | 14 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/sysvinit_remove_linux_fs.patch | 17 | ||||
| -rw-r--r-- | meta/recipes-core/sysvinit/sysvinit_3.11.bb (renamed from meta/recipes-core/sysvinit/sysvinit_3.04.bb) | 4 |
7 files changed, 52 insertions, 120 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/0001-hddown-include-libgen.h-for-basename-API.patch b/meta/recipes-core/sysvinit/sysvinit/0001-hddown-include-libgen.h-for-basename-API.patch deleted file mode 100644 index 5e4053bad1..0000000000 --- a/meta/recipes-core/sysvinit/sysvinit/0001-hddown-include-libgen.h-for-basename-API.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From a07c1d94e79840c59563741b45e690e77d4f3dfa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 3 Dec 2023 20:09:30 -0800 | ||
| 4 | Subject: [PATCH] hddown: include libgen.h for basename API | ||
| 5 | |||
| 6 | musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler | ||
| 7 | |||
| 8 | include libgen.h for using the posix declaration of the funciton. | ||
| 9 | |||
| 10 | Fixes | ||
| 11 | |||
| 12 | hddown.c:135:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] | ||
| 13 | 135 | ptr = basename(lnk); | ||
| 14 | | ^ ~~~~~~~~~~~~~ | ||
| 15 | |||
| 16 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
| 17 | |||
| 18 | Upstream-Status: Submitted [https://github.com/slicer69/sysvinit/pull/21] | ||
| 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 20 | --- | ||
| 21 | src/hddown.c | 1 + | ||
| 22 | 1 file changed, 1 insertion(+) | ||
| 23 | |||
| 24 | diff --git a/src/hddown.c b/src/hddown.c | ||
| 25 | index 7a2cf28..3b31bc0 100644 | ||
| 26 | --- a/src/hddown.c | ||
| 27 | +++ b/src/hddown.c | ||
| 28 | @@ -24,6 +24,7 @@ char *v_hddown = "@(#)hddown.c 1.02 22-Apr-2003 miquels@cistron.nl"; | ||
| 29 | #ifndef _GNU_SOURCE | ||
| 30 | #define _GNU_SOURCE | ||
| 31 | #endif | ||
| 32 | +#include <libgen.h> | ||
| 33 | #include <stdio.h> | ||
| 34 | #include <stdlib.h> | ||
| 35 | #include <unistd.h> | ||
| 36 | -- | ||
| 37 | 2.43.0 | ||
| 38 | |||
diff --git a/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch index 5c39fb001b..24c8182218 100644 --- a/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch +++ b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From c3a068cf24a22bea7349849ec111ae8d91a54db4 Mon Sep 17 00:00:00 2001 | 1 | From 49250c8e0ef563aafd5bbea62612f3d15fdee3af Mon Sep 17 00:00:00 2001 |
| 2 | From: Jeff Dike <jdike@x86_64.user-mode-linux.org> | 2 | From: Jeff Dike <jdike@x86_64.user-mode-linux.org> |
| 3 | Date: Wed, 14 Jul 2010 14:35:52 -0400 | 3 | Date: Wed, 14 Jul 2010 14:35:52 -0400 |
| 4 | Subject: [PATCH] sysvinit - Remove sulogin dependency on /usr/lib*/libcrypt.a | 4 | Subject: [PATCH] sysvinit - Remove sulogin dependency on /usr/lib*/libcrypt.a |
| @@ -9,19 +9,19 @@ Upstream-Status: Inappropriate [configuration] | |||
| 9 | # build environment. This patch checks for $LCRYPT in the environment | 9 | # build environment. This patch checks for $LCRYPT in the environment |
| 10 | # and uses it if it's there. | 10 | # and uses it if it's there. |
| 11 | # - jdike@linux.intel.com | 11 | # - jdike@linux.intel.com |
| 12 | |||
| 13 | --- | 12 | --- |
| 14 | src/Makefile | 11 ++--------- | 13 | src/Makefile | 12 ++---------- |
| 15 | 1 file changed, 2 insertions(+), 9 deletions(-) | 14 | 1 file changed, 2 insertions(+), 10 deletions(-) |
| 16 | 15 | ||
| 17 | diff --git a/src/Makefile b/src/Makefile | 16 | diff --git a/src/Makefile b/src/Makefile |
| 18 | index 5b1a5a2..b686394 100644 | 17 | index 0210171..f696247 100644 |
| 19 | --- a/src/Makefile | 18 | --- a/src/Makefile |
| 20 | +++ b/src/Makefile | 19 | +++ b/src/Makefile |
| 21 | @@ -97,15 +97,8 @@ else | 20 | @@ -101,16 +101,8 @@ endif |
| 22 | endif | ||
| 23 | 21 | ||
| 24 | # Additional libs for GNU libc. | 22 | ROOT ?= $(DESTDIR) |
| 23 | |||
| 24 | -# Additional libs for GNU libc. | ||
| 25 | -ifneq ($(wildcard $(ROOT)/usr/lib*/libcrypt.*),) | 25 | -ifneq ($(wildcard $(ROOT)/usr/lib*/libcrypt.*),) |
| 26 | - SULOGINLIBS += -lcrypt | 26 | - SULOGINLIBS += -lcrypt |
| 27 | -endif | 27 | -endif |
| @@ -36,3 +36,6 @@ index 5b1a5a2..b686394 100644 | |||
| 36 | endif | 36 | endif |
| 37 | 37 | ||
| 38 | all: $(BIN) $(SBIN) $(USRBIN) | 38 | all: $(BIN) $(SBIN) $(USRBIN) |
| 39 | -- | ||
| 40 | 2.25.1 | ||
| 41 | |||
diff --git a/meta/recipes-core/sysvinit/sysvinit/install.patch b/meta/recipes-core/sysvinit/sysvinit/install.patch index bc6d493c2b..4289c4eddc 100644 --- a/meta/recipes-core/sysvinit/sysvinit/install.patch +++ b/meta/recipes-core/sysvinit/sysvinit/install.patch | |||
| @@ -1,19 +1,18 @@ | |||
| 1 | From 5e35aa105e7a2e85db2a89fee4114090b1ac55be Mon Sep 17 00:00:00 2001 | 1 | From f73a2c768687f3fed0ab570f47fa2157e5d4e586 Mon Sep 17 00:00:00 2001 |
| 2 | From: Qing He <qing.he@intel.com> | 2 | From: Qing He <qing.he@intel.com> |
| 3 | Date: Fri, 18 Jun 2010 09:40:30 +0800 | 3 | Date: Fri, 18 Jun 2010 09:40:30 +0800 |
| 4 | Subject: [PATCH] sysvinit: upgrade to version 2.88dsf | 4 | Subject: [PATCH] sysvinit: upgrade to version 2.88dsf |
| 5 | 5 | ||
| 6 | Upstream-Status: Submitted [https://github.com/slicer69/sysvinit/pull/13] | 6 | Upstream-Status: Submitted [https://github.com/slicer69/sysvinit/pull/13] |
| 7 | |||
| 8 | --- | 7 | --- |
| 9 | src/Makefile | 53 +++++++++++++++++++++++++++++----------------------- | 8 | src/Makefile | 37 ++++++++++++++++++++++--------------- |
| 10 | 1 file changed, 30 insertions(+), 23 deletions(-) | 9 | 1 file changed, 22 insertions(+), 15 deletions(-) |
| 11 | 10 | ||
| 12 | diff --git a/src/Makefile b/src/Makefile | 11 | diff --git a/src/Makefile b/src/Makefile |
| 13 | index 1b368dc..5b1a5a2 100644 | 12 | index 21cbb2e..0210171 100644 |
| 14 | --- a/src/Makefile | 13 | --- a/src/Makefile |
| 15 | +++ b/src/Makefile | 14 | +++ b/src/Makefile |
| 16 | @@ -77,7 +77,14 @@ else | 15 | @@ -80,7 +80,14 @@ else |
| 17 | INSTALL_DATA = install -m 644 | 16 | INSTALL_DATA = install -m 644 |
| 18 | endif | 17 | endif |
| 19 | INSTALL_DIR = install -m 755 -d | 18 | INSTALL_DIR = install -m 755 -d |
| @@ -29,7 +28,7 @@ index 1b368dc..5b1a5a2 100644 | |||
| 29 | 28 | ||
| 30 | ifeq ($(WITH_SELINUX),yes) | 29 | ifeq ($(WITH_SELINUX),yes) |
| 31 | SELINUX_DEF = -DWITH_SELINUX | 30 | SELINUX_DEF = -DWITH_SELINUX |
| 32 | @@ -191,43 +198,43 @@ clobber: cleanobjs | 31 | @@ -196,31 +203,31 @@ clobber: cleanobjs |
| 33 | distclean: clobber | 32 | distclean: clobber |
| 34 | 33 | ||
| 35 | install: all | 34 | install: all |
| @@ -55,7 +54,7 @@ index 1b368dc..5b1a5a2 100644 | |||
| 55 | - ln -sf halt $(ROOT)/sbin/reboot | 54 | - ln -sf halt $(ROOT)/sbin/reboot |
| 56 | - ln -sf halt $(ROOT)/sbin/poweroff | 55 | - ln -sf halt $(ROOT)/sbin/poweroff |
| 57 | - ln -sf init $(ROOT)/sbin/telinit | 56 | - ln -sf init $(ROOT)/sbin/telinit |
| 58 | - ln -sf /sbin/killall5 $(ROOT)/bin/pidof | 57 | - ln -sf ../sbin/killall5 $(ROOT)/bin/pidof |
| 59 | - if [ ! -f $(ROOT)/usr/bin/lastb ]; then \ | 58 | - if [ ! -f $(ROOT)/usr/bin/lastb ]; then \ |
| 60 | - ln -sf last $(ROOT)/usr/bin/lastb; \ | 59 | - ln -sf last $(ROOT)/usr/bin/lastb; \ |
| 61 | + ln -sf halt $(ROOT)$(base_sbindir)/reboot | 60 | + ln -sf halt $(ROOT)$(base_sbindir)/reboot |
| @@ -67,31 +66,14 @@ index 1b368dc..5b1a5a2 100644 | |||
| 67 | fi | 66 | fi |
| 68 | - $(INSTALL_DIR) $(ROOT)/usr/include/ | 67 | - $(INSTALL_DIR) $(ROOT)/usr/include/ |
| 69 | - $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/ | 68 | - $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/ |
| 70 | - $(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/ | ||
| 71 | - $(INSTALL_DIR) $(ROOT)$(MANDIR)/man5/ | ||
| 72 | - $(INSTALL_DIR) $(ROOT)$(MANDIR)/man8/ | ||
| 73 | + $(INSTALL_DIR) $(ROOT)$(includedir)/ | 69 | + $(INSTALL_DIR) $(ROOT)$(includedir)/ |
| 74 | + $(INSTALL_DATA) initreq.h $(ROOT)$(includedir)/ | 70 | + $(INSTALL_DATA) initreq.h $(ROOT)$(includedir)/ |
| 75 | + $(INSTALL_DIR) $(ROOT)$(mandir)/man1/ | 71 | for man in $(MANPAGES) ; do \ |
| 76 | + $(INSTALL_DIR) $(ROOT)$(mandir)/man5/ | 72 | - targetdir=$(ROOT)$(MANDIR)/$$(dirname $$man)/man$${man##*.}; \ |
| 77 | + $(INSTALL_DIR) $(ROOT)$(mandir)/man8/ | 73 | + targetdir=$(ROOT)$(mandir)/$$(dirname $$man)/man$${man##*.}; \ |
| 78 | for man in $(MAN1); do \ | 74 | $(INSTALL_DIR) $$targetdir; \ |
| 79 | - $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man1/; \ | 75 | $(INSTALL_DATA) ../man/$$man $$targetdir/$$(basename $$man); \ |
| 80 | - sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man1/$$man ; \ | 76 | sed -i "1{ $(MANDB); }" $$targetdir/$$(basename $$man); \ |
| 81 | + $(INSTALL_DATA) ../man/$$man $(ROOT)$(mandir)/man1/; \ | 77 | -- |
| 82 | + sed -i "1{ $(MANDB); }" $(ROOT)$(mandir)/man1/$$man ; \ | 78 | 2.25.1 |
| 83 | done | 79 | |
| 84 | for man in $(MAN5); do \ | ||
| 85 | - $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man5/; \ | ||
| 86 | - sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man5/$$man ; \ | ||
| 87 | + $(INSTALL_DATA) ../man/$$man $(ROOT)$(mandir)/man5/; \ | ||
| 88 | + sed -i "1{ $(MANDB); }" $(ROOT)$(mandir)/man5/$$man ; \ | ||
| 89 | done | ||
| 90 | for man in $(MAN8); do \ | ||
| 91 | - $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man8/; \ | ||
| 92 | - sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man8/$$man ; \ | ||
| 93 | + $(INSTALL_DATA) ../man/$$man $(ROOT)$(mandir)/man8/; \ | ||
| 94 | + sed -i "1{ $(MANDB); }" $(ROOT)$(mandir)/man8/$$man ; \ | ||
| 95 | done | ||
| 96 | ifeq ($(ROOT),) | ||
| 97 | # | ||
diff --git a/meta/recipes-core/sysvinit/sysvinit/pidof-add-m-option.patch b/meta/recipes-core/sysvinit/sysvinit/pidof-add-m-option.patch index 8ef292ed12..66da6fb403 100644 --- a/meta/recipes-core/sysvinit/sysvinit/pidof-add-m-option.patch +++ b/meta/recipes-core/sysvinit/sysvinit/pidof-add-m-option.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 0e441712d0e366a0384ff3fa879f5a2d2607c24f Mon Sep 17 00:00:00 2001 | 1 | From 2b19b36409b8de0621b9aeb0d13748e947a5bbfb Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Wed, 24 Jul 2013 17:07:22 +0800 | 3 | Date: Wed, 24 Jul 2013 17:07:22 +0800 |
| 4 | Subject: [PATCH] pidof: add -m option | 4 | Subject: [PATCH] pidof: add -m option |
| @@ -14,7 +14,6 @@ Upstream-Status: Backport | |||
| 14 | Imported patch from: https://bugzilla.redhat.com/attachment.cgi?id=658166 | 14 | Imported patch from: https://bugzilla.redhat.com/attachment.cgi?id=658166 |
| 15 | 15 | ||
| 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 17 | |||
| 18 | --- | 17 | --- |
| 19 | man/pidof.8 | 6 +++++ | 18 | man/pidof.8 | 6 +++++ |
| 20 | src/killall5.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++--- | 19 | src/killall5.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++--- |
| @@ -45,17 +44,17 @@ index 6866cb3..a87d878 100644 | |||
| 45 | .TP | 44 | .TP |
| 46 | .B 0 | 45 | .B 0 |
| 47 | diff --git a/src/killall5.c b/src/killall5.c | 46 | diff --git a/src/killall5.c b/src/killall5.c |
| 48 | index b0728fa..72289e3 100644 | 47 | index 6f7528a..34d656b 100644 |
| 49 | --- a/src/killall5.c | 48 | --- a/src/killall5.c |
| 50 | +++ b/src/killall5.c | 49 | +++ b/src/killall5.c |
| 51 | @@ -121,6 +121,7 @@ typedef struct _s_nfs | 50 | @@ -121,6 +121,7 @@ typedef struct _s_nfs |
| 52 | 51 | ||
| 53 | /* List of processes. */ | 52 | /* List of processes. */ |
| 54 | PROC *plist; | 53 | PROC *plist = NULL; |
| 55 | +PROC *olist; | 54 | +PROC *olist = NULL; |
| 56 | 55 | ||
| 57 | /* List of processes to omit. */ | 56 | /* List of processes to omit. */ |
| 58 | OMIT *omit; | 57 | OMIT *omit = NULL; |
| 59 | @@ -356,6 +357,20 @@ static void clear_mnt(void) | 58 | @@ -356,6 +357,20 @@ static void clear_mnt(void) |
| 60 | } | 59 | } |
| 61 | } | 60 | } |
| @@ -85,7 +84,7 @@ index b0728fa..72289e3 100644 | |||
| 85 | struct dirent *d; | 84 | struct dirent *d; |
| 86 | char path[PATH_MAX+1]; | 85 | char path[PATH_MAX+1]; |
| 87 | char buf[PATH_MAX+1]; | 86 | char buf[PATH_MAX+1]; |
| 88 | @@ -670,6 +686,17 @@ int readproc() | 87 | @@ -671,6 +687,17 @@ int readproc() |
| 89 | p->next = plist; | 88 | p->next = plist; |
| 90 | plist = p; | 89 | plist = p; |
| 91 | p->pid = pid; | 90 | p->pid = pid; |
| @@ -103,7 +102,7 @@ index b0728fa..72289e3 100644 | |||
| 103 | } | 102 | } |
| 104 | closedir(dir); | 103 | closedir(dir); |
| 105 | 104 | ||
| 106 | @@ -870,6 +897,26 @@ PIDQ_HEAD *pidof(char *prog) | 105 | @@ -877,6 +904,26 @@ PIDQ_HEAD *pidof(char *prog) |
| 107 | return q; | 106 | return q; |
| 108 | } | 107 | } |
| 109 | 108 | ||
| @@ -130,7 +129,7 @@ index b0728fa..72289e3 100644 | |||
| 130 | /* Give usage message and exit. */ | 129 | /* Give usage message and exit. */ |
| 131 | void usage(void) | 130 | void usage(void) |
| 132 | { | 131 | { |
| 133 | @@ -920,6 +967,7 @@ void nsyslog(int pri, char *fmt, ...) | 132 | @@ -927,6 +974,7 @@ void nsyslog(int pri, char *fmt, ...) |
| 134 | #define PIDOF_OMIT 0x02 | 133 | #define PIDOF_OMIT 0x02 |
| 135 | #define PIDOF_NETFS 0x04 | 134 | #define PIDOF_NETFS 0x04 |
| 136 | #define PIDOF_QUIET 0x08 | 135 | #define PIDOF_QUIET 0x08 |
| @@ -138,7 +137,7 @@ index b0728fa..72289e3 100644 | |||
| 138 | 137 | ||
| 139 | /* | 138 | /* |
| 140 | * Pidof functionality. | 139 | * Pidof functionality. |
| 141 | @@ -937,6 +985,7 @@ int main_pidof(int argc, char **argv) | 140 | @@ -944,6 +992,7 @@ int main_pidof(int argc, char **argv) |
| 142 | char tmp[512]; | 141 | char tmp[512]; |
| 143 | char sep = ' '; | 142 | char sep = ' '; |
| 144 | 143 | ||
| @@ -146,7 +145,7 @@ index b0728fa..72289e3 100644 | |||
| 146 | omit = (OMIT*)0; | 145 | omit = (OMIT*)0; |
| 147 | nlist = (NFS*)0; | 146 | nlist = (NFS*)0; |
| 148 | opterr = 0; | 147 | opterr = 0; |
| 149 | @@ -944,7 +993,7 @@ int main_pidof(int argc, char **argv) | 148 | @@ -951,7 +1000,7 @@ int main_pidof(int argc, char **argv) |
| 150 | if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0)) | 149 | if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0)) |
| 151 | flags |= PIDOF_NETFS; | 150 | flags |= PIDOF_NETFS; |
| 152 | 151 | ||
| @@ -155,7 +154,7 @@ index b0728fa..72289e3 100644 | |||
| 155 | case '?': | 154 | case '?': |
| 156 | nsyslog(LOG_ERR,"invalid options on command line!\n"); | 155 | nsyslog(LOG_ERR,"invalid options on command line!\n"); |
| 157 | closelog(); | 156 | closelog(); |
| 158 | @@ -995,6 +1044,9 @@ int main_pidof(int argc, char **argv) | 157 | @@ -1002,6 +1051,9 @@ int main_pidof(int argc, char **argv) |
| 159 | case 'z': | 158 | case 'z': |
| 160 | list_dz_processes = TRUE; | 159 | list_dz_processes = TRUE; |
| 161 | break; | 160 | break; |
| @@ -165,7 +164,7 @@ index b0728fa..72289e3 100644 | |||
| 165 | case 'n': | 164 | case 'n': |
| 166 | flags |= PIDOF_NETFS; | 165 | flags |= PIDOF_NETFS; |
| 167 | break; | 166 | break; |
| 168 | @@ -1026,10 +1078,13 @@ int main_pidof(int argc, char **argv) | 167 | @@ -1033,10 +1085,13 @@ int main_pidof(int argc, char **argv) |
| 169 | pid_t spid = 0; | 168 | pid_t spid = 0; |
| 170 | while ((p = get_next_from_pid_q(q))) { | 169 | while ((p = get_next_from_pid_q(q))) { |
| 171 | if ((flags & PIDOF_OMIT) && omit) { | 170 | if ((flags & PIDOF_OMIT) && omit) { |
| @@ -181,7 +180,7 @@ index b0728fa..72289e3 100644 | |||
| 181 | } | 180 | } |
| 182 | 181 | ||
| 183 | /* | 182 | /* |
| 184 | @@ -1071,6 +1126,7 @@ int main_pidof(int argc, char **argv) | 183 | @@ -1078,6 +1133,7 @@ int main_pidof(int argc, char **argv) |
| 185 | printf("\n"); | 184 | printf("\n"); |
| 186 | } | 185 | } |
| 187 | 186 | ||
| @@ -189,3 +188,6 @@ index b0728fa..72289e3 100644 | |||
| 189 | clear_mnt(); | 188 | clear_mnt(); |
| 190 | 189 | ||
| 191 | closelog(); | 190 | closelog(); |
| 191 | -- | ||
| 192 | 2.25.1 | ||
| 193 | |||
diff --git a/meta/recipes-core/sysvinit/sysvinit/realpath.patch b/meta/recipes-core/sysvinit/sysvinit/realpath.patch index b559aa3b49..7a669d0111 100644 --- a/meta/recipes-core/sysvinit/sysvinit/realpath.patch +++ b/meta/recipes-core/sysvinit/sysvinit/realpath.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From eb158c97f19d473d01befe96359a7f93ae834517 Mon Sep 17 00:00:00 2001 | 1 | From 50e6b3a0fc7c083e6514a55ac93e5591aaeb787d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 19 Nov 2015 00:10:03 +0000 | 3 | Date: Thu, 19 Nov 2015 00:10:03 +0000 |
| 4 | Subject: [PATCH] Fix build on musl use realpath() API its available on all | 4 | Subject: [PATCH] Fix build on musl use realpath() API its available on all |
| @@ -10,7 +10,6 @@ However for Linux it should always work | |||
| 10 | Upstream-Status: Inappropriate [Linux specific] | 10 | Upstream-Status: Inappropriate [Linux specific] |
| 11 | 11 | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | |||
| 14 | --- | 13 | --- |
| 15 | src/killall5.c | 4 ++-- | 14 | src/killall5.c | 4 ++-- |
| 16 | src/mountpoint.c | 1 + | 15 | src/mountpoint.c | 1 + |
| @@ -18,10 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 18 | 3 files changed, 4 insertions(+), 2 deletions(-) | 17 | 3 files changed, 4 insertions(+), 2 deletions(-) |
| 19 | 18 | ||
| 20 | diff --git a/src/killall5.c b/src/killall5.c | 19 | diff --git a/src/killall5.c b/src/killall5.c |
| 21 | index a664954..9798423 100644 | 20 | index 34d656b..bc19d7f 100644 |
| 22 | --- a/src/killall5.c | 21 | --- a/src/killall5.c |
| 23 | +++ b/src/killall5.c | 22 | +++ b/src/killall5.c |
| 24 | @@ -977,9 +977,9 @@ int matches(PROC *o, PROC *p) | 23 | @@ -910,9 +910,9 @@ int matches(PROC *o, PROC *p) |
| 25 | char *oargv1, *pargv1; | 24 | char *oargv1, *pargv1; |
| 26 | if ((o->argv0 && p->argv0 && !strcmp(o->argv0,p->argv0))) { | 25 | if ((o->argv0 && p->argv0 && !strcmp(o->argv0,p->argv0))) { |
| 27 | if (o->argv1 && p->argv1) { | 26 | if (o->argv1 && p->argv1) { |
| @@ -34,7 +33,7 @@ index a664954..9798423 100644 | |||
| 34 | if (! strcmp(oargv1, pargv1)) { | 33 | if (! strcmp(oargv1, pargv1)) { |
| 35 | ret = 1; | 34 | ret = 1; |
| 36 | diff --git a/src/mountpoint.c b/src/mountpoint.c | 35 | diff --git a/src/mountpoint.c b/src/mountpoint.c |
| 37 | index b24335e..5f20522 100644 | 36 | index 184b1f6..c55b0df 100644 |
| 38 | --- a/src/mountpoint.c | 37 | --- a/src/mountpoint.c |
| 39 | +++ b/src/mountpoint.c | 38 | +++ b/src/mountpoint.c |
| 40 | @@ -23,6 +23,7 @@ | 39 | @@ -23,6 +23,7 @@ |
| @@ -46,7 +45,7 @@ index b24335e..5f20522 100644 | |||
| 46 | #include <unistd.h> | 45 | #include <unistd.h> |
| 47 | #include <stdlib.h> | 46 | #include <stdlib.h> |
| 48 | diff --git a/src/wall.c b/src/wall.c | 47 | diff --git a/src/wall.c b/src/wall.c |
| 49 | index d3a2c70..00826e9 100644 | 48 | index e527613..1d363ca 100644 |
| 50 | --- a/src/wall.c | 49 | --- a/src/wall.c |
| 51 | +++ b/src/wall.c | 50 | +++ b/src/wall.c |
| 52 | @@ -30,6 +30,7 @@ | 51 | @@ -30,6 +30,7 @@ |
| @@ -57,3 +56,6 @@ index d3a2c70..00826e9 100644 | |||
| 57 | #include "init.h" | 56 | #include "init.h" |
| 58 | 57 | ||
| 59 | 58 | ||
| 59 | -- | ||
| 60 | 2.25.1 | ||
| 61 | |||
diff --git a/meta/recipes-core/sysvinit/sysvinit/sysvinit_remove_linux_fs.patch b/meta/recipes-core/sysvinit/sysvinit/sysvinit_remove_linux_fs.patch deleted file mode 100644 index 89d65c23b7..0000000000 --- a/meta/recipes-core/sysvinit/sysvinit/sysvinit_remove_linux_fs.patch +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | # From glibc 2.36, <linux/mount.h> (included from <linux/fs.h>) and | ||
| 2 | # <sys/mount.h> (included from glibc) are no longer compatible: | ||
| 3 | # https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E | ||
| 4 | |||
| 5 | Upstream-Status: Pending | ||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 7 | |||
| 8 | --- sysvinit-3.04/src/sulogin.c.orig 2022-08-07 23:07:42.952576274 +0200 | ||
| 9 | +++ sysvinit-3.04/src/sulogin.c 2022-08-07 23:08:26.511470983 +0200 | ||
| 10 | @@ -51,7 +51,6 @@ | ||
| 11 | #ifdef __linux__ | ||
| 12 | # include <sys/statfs.h> | ||
| 13 | # include <sys/mount.h> | ||
| 14 | -# include <linux/fs.h> | ||
| 15 | # include <linux/magic.h> | ||
| 16 | # include <linux/major.h> | ||
| 17 | # ifndef TMPFS_MAGIC | ||
diff --git a/meta/recipes-core/sysvinit/sysvinit_3.04.bb b/meta/recipes-core/sysvinit/sysvinit_3.11.bb index 27ab4162a7..e8eab27564 100644 --- a/meta/recipes-core/sysvinit/sysvinit_3.04.bb +++ b/meta/recipes-core/sysvinit/sysvinit_3.11.bb | |||
| @@ -16,15 +16,13 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.xz \ | |||
| 16 | file://pidof-add-m-option.patch \ | 16 | file://pidof-add-m-option.patch \ |
| 17 | file://realpath.patch \ | 17 | file://realpath.patch \ |
| 18 | file://0001-include-sys-sysmacros.h-for-major-minor-defines-in-g.patch \ | 18 | file://0001-include-sys-sysmacros.h-for-major-minor-defines-in-g.patch \ |
| 19 | file://sysvinit_remove_linux_fs.patch \ | ||
| 20 | file://rcS-default \ | 19 | file://rcS-default \ |
| 21 | file://rc \ | 20 | file://rc \ |
| 22 | file://rcS \ | 21 | file://rcS \ |
| 23 | file://bootlogd.init \ | 22 | file://bootlogd.init \ |
| 24 | file://01_bootlogd \ | 23 | file://01_bootlogd \ |
| 25 | file://0001-hddown-include-libgen.h-for-basename-API.patch \ | ||
| 26 | " | 24 | " |
| 27 | SRC_URI[sha256sum] = "2a621fe6e4528bc91308b74867ddaaebbdf7753f02395c0c5bae817bd2b7e3a5" | 25 | SRC_URI[sha256sum] = "04f1b7d67413af1c09c41acc1e3ce946f2d0f7a1e47c9978744bc542864e13d4" |
| 28 | 26 | ||
| 29 | S = "${WORKDIR}/sysvinit-${PV}" | 27 | S = "${WORKDIR}/sysvinit-${PV}" |
| 30 | 28 | ||
