diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-05-31 17:52:27 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:30 +0100 |
commit | 42ac4b97b998ad6c5f54564a67c8d5171b0e58dc (patch) | |
tree | e7dcf12526c3e8cfc2bac0bfba37253a2f7c248e | |
parent | 810f745b520bf1eee0f9c6985fb717993d2b1499 (diff) | |
download | poky-42ac4b97b998ad6c5f54564a67c8d5171b0e58dc.tar.gz |
libcap: upgrade 2.33 -> 2.34
(From OE-Core rev: c6bf01bb5e09de205f324211090b52d81323b4ab)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libcap/files/0004-psx.c-replace-pthread_yield-with-standard-sched_yiel.patch | 24 | ||||
-rw-r--r-- | meta/recipes-support/libcap/libcap_2.34.bb (renamed from meta/recipes-support/libcap/libcap_2.33.bb) | 7 |
2 files changed, 3 insertions, 28 deletions
diff --git a/meta/recipes-support/libcap/files/0004-psx.c-replace-pthread_yield-with-standard-sched_yiel.patch b/meta/recipes-support/libcap/files/0004-psx.c-replace-pthread_yield-with-standard-sched_yiel.patch deleted file mode 100644 index 848ceb2c0c..0000000000 --- a/meta/recipes-support/libcap/files/0004-psx.c-replace-pthread_yield-with-standard-sched_yiel.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | From a2c4cdb05d0e382101b13944c09c4375e8d7de5f Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 31 Mar 2020 13:39:28 +0200 | ||
4 | Subject: [PATCH] psx.c: replace pthread_yield() with standard sched_yield() | ||
5 | |||
6 | This was causing failures when building with musl C library in | ||
7 | particular. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | diff --git a/libcap/psx.c b/libcap/psx.c | ||
13 | index 04d250f..7e4ac10 100644 | ||
14 | --- a/libcap/psx.c | ||
15 | +++ b/libcap/psx.c | ||
16 | @@ -533,7 +533,7 @@ long int __psx_syscall(long int syscall_nr, ...) { | ||
17 | if (!waiting) { | ||
18 | break; | ||
19 | } | ||
20 | - pthread_yield(); | ||
21 | + sched_yield(); | ||
22 | } | ||
23 | |||
24 | errno = restore_errno; | ||
diff --git a/meta/recipes-support/libcap/libcap_2.33.bb b/meta/recipes-support/libcap/libcap_2.34.bb index bec492ca5f..a3bd969d2b 100644 --- a/meta/recipes-support/libcap/libcap_2.33.bb +++ b/meta/recipes-support/libcap/libcap_2.34.bb | |||
@@ -11,10 +11,9 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${ | |||
11 | file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \ | 11 | file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \ |
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 | file://0004-psx.c-replace-pthread_yield-with-standard-sched_yiel.patch \ | ||
15 | " | 14 | " |
16 | SRC_URI[md5sum] = "dcc6220b4a9bf260050b20c07edcddf4" | 15 | SRC_URI[md5sum] = "66028a8080a0891c54b202bb5e749035" |
17 | SRC_URI[sha256sum] = "08edeaba2757021aeec45c4eeec52566675e0e0f5d4f057284d729e04f2643d6" | 16 | SRC_URI[sha256sum] = "aecdd42015955068d3d94b7caa9590fcb2de5df53ce53c61a21b912bfc0b1611" |
18 | 17 | ||
19 | UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" | 18 | UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" |
20 | 19 | ||
@@ -26,7 +25,7 @@ do_configure() { | |||
26 | # libcap uses := for compilers, fortunately, it gives us a hint | 25 | # libcap uses := for compilers, fortunately, it gives us a hint |
27 | # on what should be replaced with ?= | 26 | # on what should be replaced with ?= |
28 | sed -e 's,:=,?=,g' -i Make.Rules | 27 | sed -e 's,:=,?=,g' -i Make.Rules |
29 | sed -e 's,^BUILD_CFLAGS ?= $(.*CFLAGS),BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules | 28 | sed -e 's,^BUILD_CFLAGS ?= ,BUILD_CFLAGS := $(BUILD_CFLAGS) ,' -i Make.Rules |
30 | } | 29 | } |
31 | 30 | ||
32 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | 31 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |