sys-libs/libcap: Patch & research by Mike "floppym" Gilbert to allow compilation...
authorTony Vroon <chainsaw@gentoo.org>
Wed, 1 Feb 2017 14:41:53 +0000 (14:41 +0000)
committerTony Vroon <chainsaw@gentoo.org>
Wed, 1 Feb 2017 14:41:53 +0000 (14:41 +0000)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

sys-libs/libcap/files/libcap-2.25-gperf.patch [new file with mode: 0644]
sys-libs/libcap/libcap-2.25.ebuild

diff --git a/sys-libs/libcap/files/libcap-2.25-gperf.patch b/sys-libs/libcap/files/libcap-2.25-gperf.patch
new file mode 100644 (file)
index 0000000..aa67a19
--- /dev/null
@@ -0,0 +1,17 @@
+diff -uNr libcap-2.25.ORIG/libcap/Makefile libcap-2.25/libcap/Makefile
+--- libcap-2.25.ORIG/libcap/Makefile   2017-02-01 09:58:34.966642226 +0000
++++ libcap-2.25/libcap/Makefile        2017-02-01 10:01:49.943651936 +0000
+@@ -44,11 +44,12 @@
+       ./_makenames > cap_names.h
+ $(GPERF_OUTPUT): cap_names.list.h
+-      (printf "%b" "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"; \
++      (printf "%b" "struct __cap_token_s { const char *name; int index; };\n%%\n"; \
+       $(SED) -e 's:["{}]::g' -e 's:,$$::' $<) | \
+       gperf \
+               --ignore-case \
+               --language=ANSI-C \
++              --includes \
+               --readonly \
+               --null-strings \
+               --global-table \
index f523bd168f1abbe2233b0452e262c18d56b3f5ee..ad5bb12955db87ded2e56a7a70a5adc2a42007a9 100644 (file)
@@ -26,6 +26,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-2.22-no-perl.patch
        "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
        "${FILESDIR}"/${PN}-2.21-include.patch
+       "${FILESDIR}"/${PN}-2.25-gperf.patch
 )
 
 src_prepare() {