diff options
author | Ross Burton <ross.burton@arm.com> | 2025-03-17 17:08:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-18 10:27:31 +0000 |
commit | 48b587d8e59f31c984e31c60afe8cf4a09a3d37a (patch) | |
tree | bdd712230edb8591d7bd61dbe9b22c09955829b5 | |
parent | 5dfca64b78375de279b6ce7c9bffcaa35db5dc17 (diff) | |
download | poky-48b587d8e59f31c984e31c60afe8cf4a09a3d37a.tar.gz |
libcap: drop obsolete patches
Drop 0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch,
fixed upstream in "libcap: Fix for older kernels"[1].
Drop 0002-tests-do-not-run-target-executables.patch, doesn't appear to
be needed anymore and most likely resolved by "Don't build the
tests/binaries until we want to run them"[2].
[1] f1c3ac995d02d4f17b9d15656ab6d58f4c87435a
[2] 99799844ad9272d43892881d1090369e6032aec2
(From OE-Core rev: 1efd3ff1ab24ee4037bdcf92602dce961abe63aa)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 1 insertions, 68 deletions
diff --git a/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch b/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch deleted file mode 100644 index c576351e81..0000000000 --- a/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From bda8da622bd3f4d8b0e577387e988ce364b917c4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Roy Li <rongqing.li@windriver.com> | ||
3 | Date: Thu, 23 Jun 2016 16:26:43 +0800 | ||
4 | Subject: [PATCH] Ensure the XATTR_NAME_CAPS is defined when it is used | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | VFS_CAP_U32 can not ensure that XATTR_NAME_CAPS is defined, and failed to build | ||
12 | libcap-native in old release, like CentOS release 6.7 (Final), with the blow | ||
13 | error: | ||
14 | cap_file.c: In function ‘cap_get_fd’: | ||
15 | cap_file.c:199: error: ‘XATTR_NAME_CAPS’ undeclared (first use in this function) | ||
16 | cap_file.c:199: error: (Each undeclared identifier is reported only once | ||
17 | |||
18 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
19 | --- | ||
20 | libcap/cap_file.c | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/libcap/cap_file.c b/libcap/cap_file.c | ||
24 | index 0bc07f7..37bc34e 100644 | ||
25 | --- a/libcap/cap_file.c | ||
26 | +++ b/libcap/cap_file.c | ||
27 | @@ -44,7 +44,7 @@ extern int fremovexattr(int, const char *); | ||
28 | |||
29 | #include "libcap.h" | ||
30 | |||
31 | -#ifdef VFS_CAP_U32 | ||
32 | +#if defined (VFS_CAP_U32) && defined (XATTR_NAME_CAPS) | ||
33 | |||
34 | #if VFS_CAP_U32 != __CAP_BLKS | ||
35 | # error VFS representation of capabilities is not the same size as kernel | ||
diff --git a/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch b/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch deleted file mode 100644 index 8cabed6342..0000000000 --- a/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 5846ba594bedd66c8fd216cad6518f7be11b7a92 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 20 Dec 2019 16:54:05 +0100 | ||
4 | Subject: [PATCH] tests: do not run target executables | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | tests/Makefile | 2 -- | ||
10 | 1 file changed, 2 deletions(-) | ||
11 | |||
12 | diff --git a/tests/Makefile b/tests/Makefile | ||
13 | index 3d03721..fbb1d78 100644 | ||
14 | --- a/tests/Makefile | ||
15 | +++ b/tests/Makefile | ||
16 | @@ -69,13 +69,11 @@ endif | ||
17 | |||
18 | # unprivileged | ||
19 | run_psx_test: psx_test | ||
20 | - ./psx_test | ||
21 | |||
22 | psx_test: psx_test.c $(DEPS) | ||
23 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ $(LINKEXTRA) $(LIBPSXLIB) | ||
24 | |||
25 | run_libcap_psx_test: libcap_psx_test | ||
26 | - ./libcap_psx_test | ||
27 | |||
28 | libcap_psx_test: libcap_psx_test.c $(DEPS) | ||
29 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ $(LINKEXTRA) $(LIBCAPLIB) $(LIBPSXLIB) | ||
diff --git a/meta/recipes-support/libcap/libcap_2.74.bb b/meta/recipes-support/libcap/libcap_2.74.bb index 75019fd35f..ee3605e3a0 100644 --- a/meta/recipes-support/libcap/libcap_2.74.bb +++ b/meta/recipes-support/libcap/libcap_2.74.bb | |||
@@ -12,10 +12,7 @@ LIC_FILES_CHKSUM = "file://License;md5=2965a646645b72ecee859b43c592dcaa \ | |||
12 | 12 | ||
13 | DEPENDS = "hostperl-runtime-native gperf-native" | 13 | DEPENDS = "hostperl-runtime-native gperf-native" |
14 | 14 | ||
15 | SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \ | 15 | SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz" |
16 | file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \ | ||
17 | file://0002-tests-do-not-run-target-executables.patch \ | ||
18 | " | ||
19 | SRC_URI:append:class-nativesdk = " \ | 16 | SRC_URI:append:class-nativesdk = " \ |
20 | file://0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch \ | 17 | file://0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch \ |
21 | " | 18 | " |