diff options
-rw-r--r-- | meta/recipes-extended/procps/procps/pidfd.patch | 42 | ||||
-rw-r--r-- | meta/recipes-extended/procps/procps_4.0.5.bb (renamed from meta/recipes-extended/procps/procps_4.0.4.bb) | 3 | ||||
-rw-r--r-- | meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch | 30 | ||||
-rw-r--r-- | meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.30.bb | 4 |
4 files changed, 34 insertions, 45 deletions
diff --git a/meta/recipes-extended/procps/procps/pidfd.patch b/meta/recipes-extended/procps/procps/pidfd.patch deleted file mode 100644 index 23d1a3cd3e..0000000000 --- a/meta/recipes-extended/procps/procps/pidfd.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From c8f625e085b8249cc009e8b19c3a19100217eb35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@arm.com> | ||
3 | Date: Thu, 25 Apr 2024 13:33:15 +0000 | ||
4 | Subject: [PATCH] Fix pidfd_open detection | ||
5 | |||
6 | This check for pidfd_open uses AC_CHECK_FUNC which just runs the specified code, but | ||
7 | src/pgrep.c checks HAVE_PIDFD_OPEN which will only be defined by AC_CHECK_FUNCS. | ||
8 | |||
9 | Also pidfd_open is defined in sys/pidfd.h so that needs including. | ||
10 | |||
11 | Upstream-Status: Submitted [https://gitlab.com/procps-ng/procps/-/merge_requests/229] | ||
12 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
13 | --- | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index fec27e3f..024731c7 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -170,7 +170,7 @@ AC_TRY_COMPILE([#include <errno.h>], | ||
20 | AC_MSG_RESULT(yes), | ||
21 | AC_MSG_RESULT(no)) | ||
22 | |||
23 | -AC_CHECK_FUNC([pidfd_open], [enable_pidwait=yes], [ | ||
24 | +AC_CHECK_FUNCS([pidfd_open], [enable_pidwait=yes], [ | ||
25 | AC_MSG_CHECKING([for __NR_pidfd_open]) | ||
26 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([ | ||
27 | #include <sys/syscall.h> | ||
28 | diff --git a/src/pgrep.c b/src/pgrep.c | ||
29 | index d8e57dff..c5211aec 100644 | ||
30 | --- a/src/pgrep.c | ||
31 | +++ b/src/pgrep.c | ||
32 | @@ -44,7 +44,9 @@ | ||
33 | |||
34 | #ifdef ENABLE_PIDWAIT | ||
35 | #include <sys/epoll.h> | ||
36 | -#ifndef HAVE_PIDFD_OPEN | ||
37 | +#ifdef HAVE_PIDFD_OPEN | ||
38 | +#include <sys/pidfd.h> | ||
39 | +#else | ||
40 | #include <sys/syscall.h> | ||
41 | #endif /* !HAVE_PIDFD_OPEN */ | ||
42 | #endif | ||
diff --git a/meta/recipes-extended/procps/procps_4.0.4.bb b/meta/recipes-extended/procps/procps_4.0.5.bb index b02f74bd6b..3be40c38a4 100644 --- a/meta/recipes-extended/procps/procps_4.0.4.bb +++ b/meta/recipes-extended/procps/procps_4.0.5.bb | |||
@@ -14,9 +14,8 @@ inherit autotools gettext pkgconfig update-alternatives | |||
14 | 14 | ||
15 | SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \ | 15 | SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \ |
16 | file://sysctl.conf \ | 16 | file://sysctl.conf \ |
17 | file://pidfd.patch \ | ||
18 | " | 17 | " |
19 | SRCREV = "4ddcef2fd843170c8e2d59a83042978f41037a2b" | 18 | SRCREV = "f46b2f7929cdfe2913ed0a7f585b09d6adbf994e" |
20 | 19 | ||
21 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
22 | 21 | ||
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch new file mode 100644 index 0000000000..7db773fe0d --- /dev/null +++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 173cdf607bf39c13eb4d4b0dadcb9dc6add76014 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Tue, 7 Jan 2025 09:54:07 +0100 | ||
4 | Subject: [PATCH] lib/igt_aux.c: address procps 4.0.5 compatibility | ||
5 | |||
6 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/164] | ||
7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
8 | --- | ||
9 | lib/igt_aux.c | 8 ++++---- | ||
10 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
11 | |||
12 | diff --git a/lib/igt_aux.c b/lib/igt_aux.c | ||
13 | index 3407cc4f2..7028d3f57 100644 | ||
14 | --- a/lib/igt_aux.c | ||
15 | +++ b/lib/igt_aux.c | ||
16 | @@ -1358,10 +1358,10 @@ static bool get_process_ids(struct igt_process *prcs) | ||
17 | prcs->comm = NULL; | ||
18 | prcs->stack = procps_pids_get(prcs->info, PIDS_FETCH_TASKS_ONLY); | ||
19 | if (prcs->stack) { | ||
20 | - prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack, prcs->info); | ||
21 | - prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack, prcs->info); | ||
22 | - prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack, prcs->info); | ||
23 | - prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack, prcs->info); | ||
24 | + prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack); | ||
25 | + prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack); | ||
26 | + prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack); | ||
27 | + prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack); | ||
28 | } | ||
29 | #endif | ||
30 | return prcs->tid != 0; | ||
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.30.bb b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.30.bb index a302e1877f..dad752cb19 100644 --- a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.30.bb +++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.30.bb | |||
@@ -11,7 +11,9 @@ inherit meson pkgconfig | |||
11 | 11 | ||
12 | SRCREV = "edf352a96646c8d793f0c1eb11795112f9bde725" | 12 | SRCREV = "edf352a96646c8d793f0c1eb11795112f9bde725" |
13 | 13 | ||
14 | SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https;branch=master" | 14 | SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https;branch=master \ |
15 | file://0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch \ | ||
16 | " | ||
15 | 17 | ||
16 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
17 | 19 | ||