Hide-private-symbols.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. From: Christian Kastner <ckk@debian.org>
  2. Date: Thu, 30 Jul 2015 11:46:37 +0200
  3. Subject: Hide private symbols
  4. Hide a symbol which is clearly meant to be private. This resolves a FTBFS in
  5. combination with the new build dependency gperf.
  6. Also update the signature of __cap_lookup_name for gperf 3.1.
  7. Closes: #793311
  8. Closes: #869588
  9. Bug-Debian: https://bugs.debian.org/793311
  10. Bug-Debian: https://bugs.debian.org/869588
  11. Last-Update: 2017-07-24
  12. ---
  13. libcap/Makefile | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/libcap/Makefile b/libcap/Makefile
  16. index ce327c5..460be44 100644
  17. --- a/libcap/Makefile
  18. +++ b/libcap/Makefile
  19. @@ -41,7 +41,7 @@ cap_names.h: _makenames
  20. ./_makenames > cap_names.h
  21. $(GPERF_OUTPUT): cap_names.list.h
  22. - 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) > $@
  23. + 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) > $@
  24. cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h
  25. @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h"