linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / gnupg2 / 0001-fix-pth-config-usage.patch
blob756d3513978506ad0cdc14a49d8eb9460157c7eb
1 Fix usage of PTH_CONFIG to work with pthsem
3 The pthsem re-implement of pth provides a compatibility layer for pth,
4 but its pth-config script behaves slightly differently than the
5 original one when reporting the version number. This patch to gnupg2's
6 configure script adjusts the version checking to support this
7 difference, since Buildroot uses pth-config from pthsem.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 [yann.morin.1998@free.fr: adapt to patch m4 macro for autoreconfiguring]
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
13 diff -durN gnupg2-2.0.29.orig/m4/gnupg-pth.m4 gnupg2-2.0.29/m4/gnupg-pth.m4
14 --- gnupg2-2.0.29.orig/m4/gnupg-pth.m4 2015-09-08 14:39:24.000000000 +0200
15 +++ gnupg2-2.0.29/m4/gnupg-pth.m4 2015-12-16 18:30:54.336513493 +0100
16 @@ -17,7 +17,7 @@
17 # Taken and modified from the m4 macros which come with Pth.
18 AC_DEFUN([GNUPG_PTH_VERSION_CHECK],
20 - _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print [$]3}'`
21 + _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print [$]2}'`
22 _req_version="ifelse([$1],,1.2.0,$1)"
24 AC_MSG_CHECKING(for PTH - version >= $_req_version)