gnupg2-0001-fix-pth-config-usage.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. Fix usage of PTH_CONFIG to work with pthsem
  2. The pthsem re-implement of pth provides a compatibility layer for pth,
  3. but its pth-config script behaves slightly differently than the
  4. original one when reporting the version number. This patch to gnupg2's
  5. configure script adjusts the version checking to support this
  6. difference, since Buildroot uses pth-config from pthsem.
  7. We patch directly the configure script, because triggering the entire
  8. autoreconf dance for just a one byte change in the configure script
  9. seems a bit silly.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. Index: b/configure
  12. ===================================================================
  13. --- a/configure
  14. +++ b/configure
  15. @@ -8346,7 +8346,7 @@
  16. tmp=1.3.7
  17. if test "$PTH_CONFIG" != "no"; then
  18. - _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
  19. + _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $2}'`
  20. _req_version="$tmp"
  21. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5