diff options
Diffstat (limited to 'meta/recipes-support/libcap/files')
3 files changed, 5 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 05c771ac10..0000000000 --- a/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | Ensure the XATTR_NAME_CAPS is defined when it is used | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | VFS_CAP_U32 can not ensure that XATTR_NAME_CAPS is defined, and failed to build | ||
6 | libcap-native in old release, like CentOS release 6.7 (Final), with the blow | ||
7 | error: | ||
8 | cap_file.c: In function ‘cap_get_fd’: | ||
9 | cap_file.c:199: error: ‘XATTR_NAME_CAPS’ undeclared (first use in this function) | ||
10 | cap_file.c:199: error: (Each undeclared identifier is reported only once | ||
11 | |||
12 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
13 | --- | ||
14 | libcap/cap_file.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/libcap/cap_file.c b/libcap/cap_file.c | ||
18 | index 40756ea..e27ca80 100644 | ||
19 | --- a/libcap/cap_file.c | ||
20 | +++ b/libcap/cap_file.c | ||
21 | @@ -25,7 +25,7 @@ extern int fremovexattr(int, const char *); | ||
22 | |||
23 | #include "libcap.h" | ||
24 | |||
25 | -#ifdef VFS_CAP_U32 | ||
26 | +#if defined (VFS_CAP_U32) && defined (XATTR_NAME_CAPS) | ||
27 | |||
28 | #if VFS_CAP_U32 != __CAP_BLKS | ||
29 | # error VFS representation of capabilities is not the same size as kernel | ||
30 | -- | ||
31 | 2.8.1 | ||
32 | |||
diff --git a/meta/recipes-support/libcap/files/0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch b/meta/recipes-support/libcap/files/0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch index 2ac1e6e560..2cec20b4b1 100644 --- a/meta/recipes-support/libcap/files/0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch +++ b/meta/recipes-support/libcap/files/0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 709aa8e156415215b0bb034d05b2aa2f44be044e Mon Sep 17 00:00:00 2001 | 1 | From 969d21aa2bf474d9c5c80a64de1a9fe0e17e31b2 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Thu, 14 Oct 2021 15:57:36 +0800 | 3 | Date: Thu, 14 Oct 2021 15:57:36 +0800 |
4 | Subject: [PATCH] nativesdk-libcap: Raise the size of arrays containing dl | 4 | Subject: [PATCH] nativesdk-libcap: Raise the size of arrays containing dl |
@@ -14,18 +14,17 @@ the strings in a certain path. | |||
14 | Upstream-Status: Inappropriate [SDK specific] | 14 | Upstream-Status: Inappropriate [SDK specific] |
15 | 15 | ||
16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
17 | |||
18 | --- | 17 | --- |
19 | libcap/execable.h | 2 +- | 18 | libcap/execable.h | 2 +- |
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
21 | 20 | ||
22 | diff --git a/libcap/execable.h b/libcap/execable.h | 21 | diff --git a/libcap/execable.h b/libcap/execable.h |
23 | index fee17b4..5bb0c55 100644 | 22 | index a68ea24..60d3853 100644 |
24 | --- a/libcap/execable.h | 23 | --- a/libcap/execable.h |
25 | +++ b/libcap/execable.h | 24 | +++ b/libcap/execable.h |
26 | @@ -23,7 +23,7 @@ | 25 | @@ -34,7 +34,7 @@ extern const int _IO_stdin_used; |
27 | #endif | 26 | const int _IO_stdin_used __attribute__((weak)) = 131073; |
28 | #define __EXECABLE_H | 27 | #endif /* def __GLIBC__ */ |
29 | 28 | ||
30 | -const char __execable_dl_loader[] __attribute((section(".interp"))) = | 29 | -const char __execable_dl_loader[] __attribute((section(".interp"))) = |
31 | +const char __execable_dl_loader[4096] __attribute((section(".interp"))) = | 30 | +const char __execable_dl_loader[4096] __attribute((section(".interp"))) = |
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 20346cf2fb..0000000000 --- a/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 10212b6d4e8843feffbeab5336342d97f3a46bb2 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 | --- | ||
10 | tests/Makefile | 2 -- | ||
11 | 1 file changed, 2 deletions(-) | ||
12 | |||
13 | diff --git a/tests/Makefile b/tests/Makefile | ||
14 | index ecb7d1b..8950c73 100644 | ||
15 | --- a/tests/Makefile | ||
16 | +++ b/tests/Makefile | ||
17 | @@ -61,13 +61,11 @@ endif | ||
18 | |||
19 | # unprivileged | ||
20 | run_psx_test: psx_test | ||
21 | - ./psx_test | ||
22 | |||
23 | psx_test: psx_test.c $(DEPS) | ||
24 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ $(LINKEXTRA) $(LIBPSXLIB) | ||
25 | |||
26 | run_libcap_psx_test: libcap_psx_test | ||
27 | - ./libcap_psx_test | ||
28 | |||
29 | libcap_psx_test: libcap_psx_test.c $(DEPS) | ||
30 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ $(LINKEXTRA) $(LIBCAPLIB) $(LIBPSXLIB) | ||