mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
libcap: update to 2.31
(From OE-Core rev: 07fce50afd219049046b9fc080304558c05e51bd) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2de469f312
commit
9d0347f17c
@@ -0,0 +1,26 @@
|
|||||||
|
From 1179b423cce8d119b42cebfb3daa77c540fdca43 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
Date: Wed, 15 Jan 2020 17:16:28 +0100
|
||||||
|
Subject: [PATCH] tests: do not statically link a test
|
||||||
|
|
||||||
|
This fails on e.g. centos 7
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe-core specific]
|
||||||
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
---
|
||||||
|
tests/Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/Makefile b/tests/Makefile
|
||||||
|
index 7162cf0..6af47af 100644
|
||||||
|
--- a/tests/Makefile
|
||||||
|
+++ b/tests/Makefile
|
||||||
|
@@ -29,7 +29,7 @@ psx_test_wrap: psx_test.c $(DEPS)
|
||||||
|
run_libcap_psx_test: libcap_psx_test
|
||||||
|
|
||||||
|
libcap_psx_test: libcap_psx_test.c $(DEPS)
|
||||||
|
- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
|
||||||
|
+ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f psx_test psx_test_wrap libcap_psx_test
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
From 6309554225e05e76167eda4e0df383fb3d1a62c3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
Date: Fri, 20 Dec 2019 16:54:05 +0100
|
||||||
|
Subject: [PATCH] tests: do not run target executables
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe-core specific]
|
||||||
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/Makefile | 3 ---
|
||||||
|
1 file changed, 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/Makefile b/tests/Makefile
|
||||||
|
index 95e4ca6..7162cf0 100644
|
||||||
|
--- a/tests/Makefile
|
||||||
|
+++ b/tests/Makefile
|
||||||
|
@@ -19,8 +19,6 @@ sudotest: test
|
||||||
|
install: all
|
||||||
|
|
||||||
|
run_psx_test: psx_test psx_test_wrap
|
||||||
|
- ./psx_test
|
||||||
|
- ./psx_test_wrap
|
||||||
|
|
||||||
|
psx_test: psx_test.c $(DEPS)
|
||||||
|
$(CC) $(CFLAGS) $(IPATH) -DNOWRAP $< -o $@ $(LIBPSXLIB)
|
||||||
|
@@ -29,7 +27,6 @@ psx_test_wrap: psx_test.c $(DEPS)
|
||||||
|
$(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBPSXLIB) -Wl,-wrap,pthread_create
|
||||||
|
|
||||||
|
run_libcap_psx_test: libcap_psx_test
|
||||||
|
- ./libcap_psx_test
|
||||||
|
|
||||||
|
libcap_psx_test: libcap_psx_test.c $(DEPS)
|
||||||
|
$(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
|
||||||
@@ -9,9 +9,11 @@ DEPENDS = "hostperl-runtime-native gperf-native"
|
|||||||
|
|
||||||
SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \
|
SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \
|
||||||
file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \
|
file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \
|
||||||
|
file://0002-tests-do-not-run-target-executables.patch \
|
||||||
|
file://0001-tests-do-not-statically-link-a-test.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "2e8f9fab32eb5ccb37969fe317fd17aa"
|
SRC_URI[md5sum] = "52120c05dc797b01f5a7ae70f4335e96"
|
||||||
SRC_URI[sha256sum] = "dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a"
|
SRC_URI[sha256sum] = "c6088de41e1c97fa8047e2e7de0e4ee0cd13e6cc16538022230ae76727a87c46"
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/"
|
UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/"
|
||||||
|
|
||||||
Reference in New Issue
Block a user