mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 16:02:55 +02:00
libcap-pam: fix for gperf-3.1.
This commit is contained in:
parent
14f782942e
commit
51d9c02bc6
2 changed files with 12 additions and 1 deletions
11
srcpkgs/libcap-pam/patches/gperf-3.1.patch
Normal file
11
srcpkgs/libcap-pam/patches/gperf-3.1.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- libcap/Makefile.orig
|
||||
+++ libcap/Makefile
|
||||
@@ -41,7 +41,7 @@
|
||||
./_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"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --includes --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"
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libcap-pam'
|
||||
pkgname=libcap-pam
|
||||
version=2.25
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="libcap-${version}"
|
||||
hostmakedepends="gperf perl pam-devel"
|
||||
makedepends="pam-devel attr-devel"
|
||||
|
|
Loading…
Add table
Reference in a new issue