summaryrefslogtreecommitdiffstats
path: root/package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-06-06 14:44:27 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 23:32:05 +0200
commitbeb49d882e03d4596d40dafad21e50460a6f1ef0 (patch)
tree28918af8776f790f59fa77821fd3a0e231506f54 /package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch
parentf0592c9f6581d4446d12acfd9a27b5cf18875625 (diff)
downloadbuildroot-beb49d882e03d4596d40dafad21e50460a6f1ef0.tar.gz
buildroot-beb49d882e03d4596d40dafad21e50460a6f1ef0.zip
gnupg2: new package
[Thomas: use libpthsem instead of pth, remove !uclibc dependency, minor formatting fixes in the .mk file.] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch')
-rw-r--r--package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch b/package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch
new file mode 100644
index 0000000000..e58aad3f74
--- /dev/null
+++ b/package/gnupg2/gnupg2-0001-fix-pth-config-usage.patch
@@ -0,0 +1,27 @@
+Fix usage of PTH_CONFIG to work with pthsem
+
+The pthsem re-implement of pth provides a compatibility layer for pth,
+but its pth-config script behaves slightly differently than the
+original one when reporting the version number. This patch to gnupg2's
+configure script adjusts the version checking to support this
+difference, since Buildroot uses pth-config from pthsem.
+
+We patch directly the configure script, because triggering the entire
+autoreconf dance for just a one byte change in the configure script
+seems a bit silly.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -8346,7 +8346,7 @@
+ tmp=1.3.7
+ if test "$PTH_CONFIG" != "no"; then
+
+- _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
++ _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $2}'`
+ _req_version="$tmp"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
OpenPOWER on IntegriCloud