summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-10-28 22:05:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-30 13:22:49 +0000
commit74da10f7753eacb1a910ac26f57539e22128036c (patch)
tree05ca42c17b5da443e2262ca216326da4d33b6606 /meta/recipes-support/libcap
parent96dbd86d67617967d2ab8cef284f87e2c5131369 (diff)
downloadpoky-74da10f7753eacb1a910ac26f57539e22128036c.tar.gz
libcap: update 2.43 -> 2.44
Rebase the patches. (From OE-Core rev: bae7cbaa7509fa2f05b8e3ef66e9b181589db032) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap')
-rw-r--r--meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch38
-rw-r--r--meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch14
-rw-r--r--meta/recipes-support/libcap/libcap_2.44.bb (renamed from meta/recipes-support/libcap/libcap_2.43.bb)2
3 files changed, 22 insertions, 32 deletions
diff --git a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
index 81fdd2a15c..d9fd48a9db 100644
--- a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
+++ b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
@@ -1,4 +1,4 @@
1From e4fe6890e07821d60f01f000a95f7944f3d68139 Mon Sep 17 00:00:00 2001 1From 03e925f0d68bc51e1acf1ac2014a9c2452c664bf Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 15 Jan 2020 17:16:28 +0100 3Date: Wed, 15 Jan 2020 17:16:28 +0100
4Subject: [PATCH] tests: do not statically link a test 4Subject: [PATCH] tests: do not statically link a test
@@ -9,35 +9,25 @@ Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10 10
11--- 11---
12 tests/Makefile | 8 ++++---- 12 tests/Makefile | 4 ++--
13 1 file changed, 4 insertions(+), 4 deletions(-) 13 1 file changed, 2 insertions(+), 2 deletions(-)
14 14
15diff --git a/tests/Makefile b/tests/Makefile 15diff --git a/tests/Makefile b/tests/Makefile
16index 876a8b9..93a0e3a 100644 16index d569650..f5ca377 100644
17--- a/tests/Makefile 17--- a/tests/Makefile
18+++ b/tests/Makefile 18+++ b/tests/Makefile
19@@ -26,23 +26,23 @@ psx_test: psx_test.c $(DEPS) 19@@ -11,7 +11,7 @@ ifeq ($(DYNAMIC),yes)
20 run_libcap_psx_test: libcap_psx_test 20 LDPATH = LD_LIBRARY_PATH=../libcap
21 DEPSBUILD = all
22 else
23-LDFLAGS += --static
24+LDFLAGS +=
25 DEPSBUILD = libcap.a libpsx.a
26 endif
21 27
22 libcap_psx_test: libcap_psx_test.c $(DEPS) 28@@ -51,7 +51,7 @@ libcap_psx_launch_test: libcap_launch_test.c $(DEPS)
23- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
24+ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create
25
26 run_libcap_launch_test: libcap_launch_test libcap_psx_launch_test noop
27 sudo ./libcap_launch_test
28 sudo ./libcap_psx_launch_test
29
30 libcap_launch_test: libcap_launch_test.c $(DEPS)
31- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) --static
32+ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB)
33
34 # this varies only slightly from the above insofar as it currently
35 # only links in the pthreads fork support. TODO() we need to change
36 # the source to do something interesting with pthreads.
37 libcap_psx_launch_test: libcap_launch_test.c $(DEPS)
38- $(CC) $(CFLAGS) $(IPATH) -DWITH_PTHREADS $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
39+ $(CC) $(CFLAGS) $(IPATH) -DWITH_PTHREADS $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create
40 29
30 # This one runs in a chroot with no shared library files.
41 noop: noop.c 31 noop: noop.c
42- $(CC) $(CFLAGS) $< -o $@ --static 32- $(CC) $(CFLAGS) $< -o $@ --static
43+ $(CC) $(CFLAGS) $< -o $@ 33+ $(CC) $(CFLAGS) $< -o $@
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
index e8f1df98c1..bfce8e0547 100644
--- 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
@@ -1,4 +1,4 @@
1From 5583b48c04d5bf50b56473d88d990c3f0bc45c14 Mon Sep 17 00:00:00 2001 1From 7744c1f678f5226a151bc6b2a254a56835229d91 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 20 Dec 2019 16:54:05 +0100 3Date: Fri, 20 Dec 2019 16:54:05 +0100
4Subject: [PATCH] tests: do not run target executables 4Subject: [PATCH] tests: do not run target executables
@@ -11,20 +11,20 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11 1 file changed, 2 deletions(-) 11 1 file changed, 2 deletions(-)
12 12
13diff --git a/tests/Makefile b/tests/Makefile 13diff --git a/tests/Makefile b/tests/Makefile
14index bfedbc2..876a8b9 100644 14index 8956d5d..d569650 100644
15--- a/tests/Makefile 15--- a/tests/Makefile
16+++ b/tests/Makefile 16+++ b/tests/Makefile
17@@ -19,13 +19,11 @@ sudotest: test run_libcap_launch_test run_libcap_launch_test 17@@ -27,13 +27,11 @@ sudotest: test run_libcap_launch_test run_libcap_launch_test
18 install: all 18 install: all
19 19
20 run_psx_test: psx_test 20 run_psx_test: psx_test
21- ./psx_test 21- $(LDPATH) ./psx_test
22 22
23 psx_test: psx_test.c $(DEPS) 23 psx_test: psx_test.c $(DEPS)
24 $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBPSXLIB) -Wl,-wrap,pthread_create 24 $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBPSXLIB)
25 25
26 run_libcap_psx_test: libcap_psx_test 26 run_libcap_psx_test: libcap_psx_test
27- ./libcap_psx_test 27- $(LDPATH) ./libcap_psx_test
28 28
29 libcap_psx_test: libcap_psx_test.c $(DEPS) 29 libcap_psx_test: libcap_psx_test.c $(DEPS)
30 $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static 30 $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) $(LDFLAGS)
diff --git a/meta/recipes-support/libcap/libcap_2.43.bb b/meta/recipes-support/libcap/libcap_2.44.bb
index c712c25947..79875522d6 100644
--- a/meta/recipes-support/libcap/libcap_2.43.bb
+++ b/meta/recipes-support/libcap/libcap_2.44.bb
@@ -12,7 +12,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${
12 file://0002-tests-do-not-run-target-executables.patch \ 12 file://0002-tests-do-not-run-target-executables.patch \
13 file://0001-tests-do-not-statically-link-a-test.patch \ 13 file://0001-tests-do-not-statically-link-a-test.patch \
14 " 14 "
15SRC_URI[sha256sum] = "512a0e5fc4c1e06d472a20da26aa96a9b9bf2a26b23f094f77f1b8da56cc427f" 15SRC_URI[sha256sum] = "92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1"
16 16
17UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" 17UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/"
18 18