summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/quilt/quilt/patch-version-detection.patch
blob: 8b84f812b590c853e4f56ecca89cc8dcfded8494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Jean Delvare
Subject: [Quilt-dev] [PACH] Fix patch version detection
Date: Mon, 21 Jun 2010 13:49:50 +0200

New versions of GNU patch present themselves as "GNU patch" instead
of just "patch".
---
 configure.ac |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/configure.ac
+++ b/configure.ac
@@ -262,7 +262,11 @@ fi
 AC_MSG_CHECKING([the version of $PATCH])
 if $PATCH --version 2> /dev/null | grep GNU >/dev/null; then
   set -- `$PATCH --version 2> /dev/null`
-  patch_version=$2
+  if test x$1 = xGNU ; then
+    patch_version=$3
+  else
+    patch_version=$2
+  fi
   AC_MSG_RESULT($patch_version)
   saved_IFS=$IFS; IFS='.'
   set -- $patch_version

-- 
Jean Delvare
Suse L3