123456789101112131415161718192021222324252627282930313233 |
- From: Christian Kastner <ckk@debian.org>
- Date: Thu, 30 Jul 2015 11:46:37 +0200
- Subject: Hide private symbols
- Hide a symbol which is clearly meant to be private. This resolves a FTBFS in
- combination with the new build dependency gperf.
- Also update the signature of __cap_lookup_name for gperf 3.1.
- Closes: #793311
- Closes: #869588
- Bug-Debian: https://bugs.debian.org/793311
- Bug-Debian: https://bugs.debian.org/869588
- Last-Update: 2017-07-24
- ---
- libcap/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/libcap/Makefile b/libcap/Makefile
- index ce327c5..460be44 100644
- --- a/libcap/Makefile
- +++ b/libcap/Makefile
- @@ -41,7 +41,7 @@ cap_names.h: _makenames
- ./_makenames > cap_names.h
-
- $(GPERF_OUTPUT): cap_names.list.h
- - 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) > $@
- + perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\n#include <stdlib.h>\nstatic const struct __cap_token_s *__cap_lookup_name(const char *, size_t);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --includes --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) > $@
-
- cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h
- @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h"
|