pidof-add-m-option.patch refreshed for new version. Add 0001-Fixed-compile-error-on-GNU-Hurd.patch to fix compile error on GNU Hurd due to missing MAX_PATH definition.
Signed-off-by: Wang Mingyu <wan...@fujitsu.com> --- ...0001-Fixed-compile-error-on-GNU-Hurd.patch | 28 +++++++++++++++++++ .../sysvinit/pidof-add-m-option.patch | 10 +++---- .../{sysvinit_3.01.bb => sysvinit_3.02.bb} | 3 +- 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 meta/recipes-core/sysvinit/sysvinit/0001-Fixed-compile-error-on-GNU-Hurd.patch rename meta/recipes-core/sysvinit/{sysvinit_3.01.bb => sysvinit_3.02.bb} (96%) diff --git a/meta/recipes-core/sysvinit/sysvinit/0001-Fixed-compile-error-on-GNU-Hurd.patch b/meta/recipes-core/sysvinit/sysvinit/0001-Fixed-compile-error-on-GNU-Hurd.patch new file mode 100644 index 0000000000..d278a32ec7 --- /dev/null +++ b/meta/recipes-core/sysvinit/sysvinit/0001-Fixed-compile-error-on-GNU-Hurd.patch @@ -0,0 +1,28 @@ +From d595594506e6fd2247f7984c276f822ea626434c Mon Sep 17 00:00:00 2001 +From: Wang Mingyu <wan...@fujitsu.com> +Date: Thu, 7 Apr 2022 11:57:19 +0900 +Subject: [PATCH] Fixed compile error on GNU Hurd + +Fixed compile error on GNU Hurd due to missing MAX_PATH definition. + +Upstream-Status: Backport [https://github.com/slicer69/sysvinit/commit/14d8d25269016b26965b428a855dd084cc88994d] + +Signed-off-by: Wang Mingyu <wan...@fujitsu.com> +--- + src/bootlogd.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/bootlogd.h b/src/bootlogd.h +index b47bc9d..ba17f0c 100644 +--- a/src/bootlogd.h ++++ b/src/bootlogd.h +@@ -10,3 +10,6 @@ + #define FALSE 0 + #endif + ++#ifndef PATH_MAX ++#define PATH_MAX 2048 ++#endif +-- +2.25.1 + 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 4386e6f832..8ef292ed12 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 @@ -From 96fb53ef2ccd2580cf0aa565ef1629cb05eae50a Mon Sep 17 00:00:00 2001 +From 0e441712d0e366a0384ff3fa879f5a2d2607c24f Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu....@windriver.com> Date: Wed, 24 Jul 2013 17:07:22 +0800 Subject: [PATCH] pidof: add -m option @@ -21,10 +21,10 @@ Signed-off-by: Hongxu Jia <hongxu....@windriver.com> 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/man/pidof.8 b/man/pidof.8 -index 84ed1e4..ac184da 100644 +index 6866cb3..a87d878 100644 --- a/man/pidof.8 +++ b/man/pidof.8 -@@ -25,6 +25,7 @@ pidof -- find the process ID of a running program. +@@ -25,6 +25,7 @@ pidof - find the process ID of a running program .RB [ \-n ] .RB [ \-x ] .RB [ \-z ] @@ -32,9 +32,9 @@ index 84ed1e4..ac184da 100644 .RB [ \-o .IR omitpid[,omitpid...] ] .RB [ \-o -@@ -79,6 +80,11 @@ is shown. The default separator is a space. +@@ -77,6 +78,11 @@ is shown. The default separator is a space. Tells \fIpidof\fP to omit processes with that process id. The special - pid \fB%PPID\fP can be used to name the parent process of the \fIpidof\fP + pid \fB%PPID\fP can be used to name the parent process of the \fBpidof\fP program, in other words the calling shell or shell script. +.IP -m +When used with -o, will also omit any processes that have the same diff --git a/meta/recipes-core/sysvinit/sysvinit_3.01.bb b/meta/recipes-core/sysvinit/sysvinit_3.02.bb similarity index 96% rename from meta/recipes-core/sysvinit/sysvinit_3.01.bb rename to meta/recipes-core/sysvinit/sysvinit_3.02.bb index 844f5f0175..cfe9d0b597 100644 --- a/meta/recipes-core/sysvinit/sysvinit_3.01.bb +++ b/meta/recipes-core/sysvinit/sysvinit_3.02.bb @@ -20,8 +20,9 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/sysvinit/sysvinit-${PV}.tar.xz \ file://rcS \ file://bootlogd.init \ file://01_bootlogd \ + file://0001-Fixed-compile-error-on-GNU-Hurd.patch \ " -SRC_URI[sha256sum] = "68b11a4772cdacce5fb65a4cbead324a2ce3999d138b4ff61dc2d59e57ef5793" +SRC_URI[sha256sum] = "4ca03ffdbefb5a99a60b94a021693686c2b498a08ff8aa4e859821fa7c39a792" S = "${WORKDIR}/sysvinit-${PV}" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#164097): https://lists.openembedded.org/g/openembedded-core/message/164097 Mute This Topic: https://lists.openembedded.org/mt/90306375/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-