libcap-2.25-gperf.patch 620 B

123456789101112131415161718192021
  1. update gperf call to work with gperf-3.1
  2. https://bugs.gentoo.org/604802
  3. --- a/libcap/Makefile
  4. +++ b/libcap/Makefile
  5. @@ -44,11 +44,12 @@
  6. ./_makenames > cap_names.h
  7. $(GPERF_OUTPUT): cap_names.list.h
  8. - (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"; \
  9. + (printf "%b" "struct __cap_token_s { const char *name; int index; };\n%%\n"; \
  10. $(SED) -e 's:["{}]::g' -e 's:,$$::' $<) | \
  11. gperf \
  12. --ignore-case \
  13. --language=ANSI-C \
  14. + --includes \
  15. --readonly \
  16. --null-strings \
  17. --global-table \