diff options
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 | " |