e58aad3f7498a15d07ab215bc64cb0ca0bceb6c7
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gnupg2 / 0001-fix-pth-config-usage.patch
1 Fix usage of PTH_CONFIG to work with pthsem
2
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.
8
9 We patch directly the configure script, because triggering the entire
10 autoreconf dance for just a one byte change in the configure script
11 seems a bit silly.
12
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14
15 Index: b/configure
16 ===================================================================
17 --- a/configure
18 +++ b/configure
19 @@ -8346,7 +8346,7 @@
20    tmp=1.3.7
21    if test "$PTH_CONFIG" != "no"; then
22  
23 -    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
24 +    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $2}'`
25      _req_version="$tmp"
26  
27      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5