summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r--meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb2
-rw-r--r--meta/recipes-core/util-linux/util-linux.inc3
-rw-r--r--meta/recipes-core/util-linux/util-linux/0001-test_sysinfo.c-print-out-SIGRTMIN.patch50
-rw-r--r--meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch (renamed from meta/recipes-core/util-linux/util-linux/0002-ts-kill-decode-use-SIGRTMIN-from-test_sysinfo-instea.patch)16
4 files changed, 11 insertions, 60 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb
index ad0bfa1d12..5ad2997c27 100644
--- a/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb
+++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://libuuid/COPYING;md5=6d2cafc999feb2c2de84d4d24b23290c
9 9
10inherit autotools gettext pkgconfig 10inherit autotools gettext pkgconfig
11 11
12S = "${WORKDIR}/util-linux-${PV}" 12S = "${UNPACKDIR}/util-linux-${PV}"
13 13
14EXTRA_AUTORECONF += "--exclude=gtkdocize" 14EXTRA_AUTORECONF += "--exclude=gtkdocize"
15EXTRA_OECONF += "--disable-all-programs --enable-libuuid" 15EXTRA_OECONF += "--disable-all-programs --enable-libuuid"
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 6611ec0fe7..111f29cb92 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -19,8 +19,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
19 file://fcntl-lock.c \ 19 file://fcntl-lock.c \
20 file://0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch \ 20 file://0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch \
21 file://0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch \ 21 file://0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch \
22 file://0001-test_sysinfo.c-print-out-SIGRTMIN.patch \ 22 file://0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch \
23 file://0002-ts-kill-decode-use-SIGRTMIN-from-test_sysinfo-instea.patch \
24 " 23 "
25 24
26SRC_URI[sha256sum] = "81ee93b3cfdfeb7d7c4090cedeba1d7bbce9141fd0b501b686b3fe475ddca4c6" 25SRC_URI[sha256sum] = "81ee93b3cfdfeb7d7c4090cedeba1d7bbce9141fd0b501b686b3fe475ddca4c6"
diff --git a/meta/recipes-core/util-linux/util-linux/0001-test_sysinfo.c-print-out-SIGRTMIN.patch b/meta/recipes-core/util-linux/util-linux/0001-test_sysinfo.c-print-out-SIGRTMIN.patch
deleted file mode 100644
index ee9f220842..0000000000
--- a/meta/recipes-core/util-linux/util-linux/0001-test_sysinfo.c-print-out-SIGRTMIN.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From 50774e34fee0cd528b195a863bcd4e3a04fbfc4b Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 4 Jun 2025 10:52:18 +0800
4Subject: [PATCH 1/2] test_sysinfo.c: print out SIGRTMIN
5
6This will be used by ts/kill/decode.
7
8Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/3605]
9
10Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
11---
12 tests/helpers/test_sysinfo.c | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c
16index 1559d471f..3a791e7f1 100644
17--- a/tests/helpers/test_sysinfo.c
18+++ b/tests/helpers/test_sysinfo.c
19@@ -27,6 +27,7 @@
20 #include <errno.h>
21 #include <time.h>
22 #include <sys/ioctl.h>
23+#include <signal.h>
24
25 #include "c.h"
26
27@@ -116,6 +117,12 @@ static int hlp_ulong_max32(void)
28 return 0;
29 }
30
31+static int hlp_sigrtmin(void)
32+{
33+ printf("%d\n", SIGRTMIN);
34+ return 0;
35+}
36+
37 static int hlp_wcsspn_ok(void)
38 {
39 printf("%d\n", wcsspn(L"FOO", L"F") == 1);
40@@ -229,6 +236,7 @@ static const mntHlpfnc hlps[] =
41 { "ULONG_MAX", hlp_ulong_max },
42 { "ULONG_MAX32",hlp_ulong_max32 },
43 { "UINT64_MAX", hlp_u64_max },
44+ { "SIGRTMIN", hlp_sigrtmin },
45 { "byte-order", hlp_endianness },
46 { "wcsspn-ok", hlp_wcsspn_ok },
47 { "enotty-ok", hlp_enotty_ok },
48--
492.34.1
50
diff --git a/meta/recipes-core/util-linux/util-linux/0002-ts-kill-decode-use-SIGRTMIN-from-test_sysinfo-instea.patch b/meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch
index 5a00c9037a..f4e2f9e745 100644
--- a/meta/recipes-core/util-linux/util-linux/0002-ts-kill-decode-use-SIGRTMIN-from-test_sysinfo-instea.patch
+++ b/meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch
@@ -1,7 +1,7 @@
1From 9848b0d8c90d9a24275bf402f6d76e97f62b3ba4 Mon Sep 17 00:00:00 2001 1From c5d5e8873029d170fcab38a6fbd5d5a355574b9f Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 4 Jun 2025 16:27:19 +0800 3Date: Wed, 4 Jun 2025 16:27:19 +0800
4Subject: [PATCH 2/2] ts/kill/decode: use SIGRTMIN from test_sysinfo instead of 4Subject: [PATCH] ts/kill/decode: use RTMIN from 'kill -L' instead of
5 hardcoding 34 5 hardcoding 34
6 6
7glibc uses 34 as the value of SIGRTMIN: 7glibc uses 34 as the value of SIGRTMIN:
@@ -16,9 +16,11 @@ With the hardcoded 34, test case fails with the following difference:
16-Ignored: HUP QUIT TRAP PIPE ALRM 16-Ignored: HUP QUIT TRAP PIPE ALRM
17+Ignored: HUP QUIT TRAP PIPE ALRM 34 17+Ignored: HUP QUIT TRAP PIPE ALRM 34
18 18
19Use SIGRTMIN got from test_sysinfo to fix this issue. 19Extract the value of RTMIN from 'kill -L' to avoid such hardcoding.
20 20
21Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/3605] 21Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
22
23Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/c5d5e8873029d170fcab38a6fbd5d5a355574b9f]
22 24
23Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 25Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
24--- 26---
@@ -26,15 +28,15 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
26 1 file changed, 7 insertions(+), 2 deletions(-) 28 1 file changed, 7 insertions(+), 2 deletions(-)
27 29
28diff --git a/tests/ts/kill/decode b/tests/ts/kill/decode 30diff --git a/tests/ts/kill/decode b/tests/ts/kill/decode
29index 03bc25ff6..dd34aacef 100755 31index 57149899e..524b4e5e2 100755
30--- a/tests/ts/kill/decode 32--- a/tests/ts/kill/decode
31+++ b/tests/ts/kill/decode 33+++ b/tests/ts/kill/decode
32@@ -48,14 +48,19 @@ ACK= 34@@ -53,14 +53,19 @@ ACK=
33 # Sending one more USR1 is for making the signal pending state. 35 # Sending one more USR1 is for making the signal pending state.
34 "$TS_CMD_KILL" -USR1 "$PID" 36 "$TS_CMD_KILL" -USR1 "$PID"
35 "$TS_CMD_KILL" -d "$PID" | { 37 "$TS_CMD_KILL" -d "$PID" | {
36- if [[ $("$TS_CMD_KILL" --list=34) == RT0 ]]; then 38- if [[ $("$TS_CMD_KILL" --list=34) == RT0 ]]; then
37+ SIGRTMIN=$($TS_HELPER_SYSINFO SIGRTMIN) 39+ SIGRTMIN=$("$TS_CMD_KILL" -L | grep -o '[0-9]\+ RTMIN' | cut -d " " -f 1)
38+ if [[ $("$TS_CMD_KILL" --list=$SIGRTMIN) == RT0 ]]; then 40+ if [[ $("$TS_CMD_KILL" --list=$SIGRTMIN) == RT0 ]]; then
39 # See man signal(7). 41 # See man signal(7).
40 # The Linux kernel supports a range of 33 different real-time signals, 42 # The Linux kernel supports a range of 33 different real-time signals,