summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-01-09 15:19:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-11 10:39:09 +0000
commit68a087f6460dead367095e4b61a6bb8855d83f03 (patch)
treefc18de2c5549cf3e51bb8beb4f40fbcb95a1c833 /meta/recipes-support
parent9a54d673dfcf126e7754f617f913108041f98d0e (diff)
downloadpoky-68a087f6460dead367095e4b61a6bb8855d83f03.tar.gz
libcap: upgrade 2.25 -> 2.26
Drop 0001-Fix-build-with-gperf-3.1.patch as it had been fixed upstream. (From OE-Core rev: 0baf6799ae40461fbf3f18e098a3db448fec037b) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libcap/files/0001-Fix-build-with-gperf-3.1.patch41
-rw-r--r--meta/recipes-support/libcap/libcap_2.26.bb (renamed from meta/recipes-support/libcap/libcap_2.25.bb)5
2 files changed, 2 insertions, 44 deletions
diff --git a/meta/recipes-support/libcap/files/0001-Fix-build-with-gperf-3.1.patch b/meta/recipes-support/libcap/files/0001-Fix-build-with-gperf-3.1.patch
deleted file mode 100644
index 110ef902da..0000000000
--- a/meta/recipes-support/libcap/files/0001-Fix-build-with-gperf-3.1.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From a05eba68c42222f02465d7ba376015926433c531 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 26 Jul 2017 13:37:49 +0300
4Subject: [PATCH] Fix build with gperf 3.1
5
6The generated gperf file refers to size_t which needs to be
7provided by stddef.h include. Also, adjust the makefile
8to match the declaration in the gperf file.
9
10Upstream-Status: Pending
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12
13---
14 libcap/Makefile | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/libcap/Makefile b/libcap/Makefile
18index d189777..1a57206 100644
19--- a/libcap/Makefile
20+++ b/libcap/Makefile
21@@ -22,7 +22,7 @@ all: $(MINLIBNAME) $(STALIBNAME) libcap.pc
22
23 ifeq ($(BUILD_GPERF),yes)
24 USE_GPERF_OUTPUT = $(GPERF_OUTPUT)
25-INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
26+INCLUDE_GPERF_OUTPUT = -include stddef.h -include $(GPERF_OUTPUT)
27 endif
28
29 libcap.pc: libcap.pc.in
30@@ -41,7 +41,7 @@ cap_names.h: _makenames
31 ./_makenames > cap_names.h
32
33 $(GPERF_OUTPUT): cap_names.list.h
34- perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@
35+ perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, register size_t);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@
36
37 cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h
38 @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h"
39--
402.13.2
41
diff --git a/meta/recipes-support/libcap/libcap_2.25.bb b/meta/recipes-support/libcap/libcap_2.26.bb
index 6df674547c..14841de4a7 100644
--- a/meta/recipes-support/libcap/libcap_2.25.bb
+++ b/meta/recipes-support/libcap/libcap_2.26.bb
@@ -9,10 +9,9 @@ DEPENDS = "hostperl-runtime-native gperf-native"
9 9
10SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \ 10SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \
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://0001-Fix-build-with-gperf-3.1.patch \
13 " 12 "
14SRC_URI[md5sum] = "6666b839e5d46c2ad33fc8aa2ceb5f77" 13SRC_URI[md5sum] = "968ac4d42a1a71754313527be2ab5df3"
15SRC_URI[sha256sum] = "693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162" 14SRC_URI[sha256sum] = "b630b7c484271b3ba867680d6a14b10a86cfa67247a14631b14c06731d5a458b"
16 15
17inherit lib_package 16inherit lib_package
18 17