From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH] libcap: add patch to fix build with gperf 3.1
Date: Fri, 31 Mar 2017 16:44:29 +0200 [thread overview]
Message-ID: <20170331144429.13776-1-clemens.gruber@pqgruber.com> (raw)
Patch the Makefile of libcap to work with the newest gperf 3.1, until
an upstream fix is available.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
.../0002-Make-compatible-with-gperf-3.1.patch | 22 ++++++++++++++++++++++
patches/libcap-2.25/series | 3 ++-
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 patches/libcap-2.25/0002-Make-compatible-with-gperf-3.1.patch
diff --git a/patches/libcap-2.25/0002-Make-compatible-with-gperf-3.1.patch b/patches/libcap-2.25/0002-Make-compatible-with-gperf-3.1.patch
new file mode 100644
index 000000000..93ef47364
--- /dev/null
+++ b/patches/libcap-2.25/0002-Make-compatible-with-gperf-3.1.patch
@@ -0,0 +1,22 @@
+From: Clemens Gruber <clemens.gruber@pqgruber.com>
+Date: Fri, 31 Mar 2017 16:25:26 +0200
+Subject: [PATCH] Make compatible with gperf 3.1
+
+Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
+---
+ libcap/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libcap/Makefile b/libcap/Makefile
+index d189777baa0f..b7939dd30c11 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"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --includes --readonly-tables --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"
diff --git a/patches/libcap-2.25/series b/patches/libcap-2.25/series
index 4f7f7421b..60633953b 100644
--- a/patches/libcap-2.25/series
+++ b/patches/libcap-2.25/series
@@ -1,4 +1,5 @@
# generated by git-ptx-patches
#tag:base --start-number 1
0001-Fix-build-on-non-Linux-host.patch
-# 69b7a8db215659ad00eab9b8ed2ab43e - git-ptx-patches magic
+0002-Make-compatible-with-gperf-3.1.patch
+# 84f6c460166806b31adde9353aa78a88 - git-ptx-patches magic
--
2.12.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2017-03-31 14:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170331144429.13776-1-clemens.gruber@pqgruber.com \
--to=clemens.gruber@pqgruber.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox