summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix.patch
blob: cc4236b308c5acf5578a9e2e0cb9d445749e2916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# quilt's configure tosses an error with patch @ GNU patch 2.6.1.81-5b68
#
# Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
--- quilt-0.48/configure	2010-11-03 11:50:55.280329802 -0700
+++ quilt-0.48/configure	2010-11-03 11:52:43.705354080 -0700
@@ -5896,7 +5896,12 @@
 echo $ECHO_N "checking the version of $PATCH... $ECHO_C" >&6; }
 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
   { echo "$as_me:$LINENO: result: $patch_version" >&5
 echo "${ECHO_T}$patch_version" >&6; }
   saved_IFS=$IFS; IFS='.'
OpenPOWER on IntegriCloud