]> code.ossystems Code Review - openembedded-core.git/commitdiff
quilt: Fixed configure test for patch --version.
authorBeth Flanagan <elizabeth.flanagan@intel.com>
Thu, 4 Nov 2010 00:20:00 +0000 (17:20 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 10 Nov 2010 13:22:26 +0000 (21:22 +0800)
OpenSuSE 11.3 uses GNU patch 2.6.1.81-5b68 which breaks quilt's
configure test for patch version.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
meta/recipes-devtools/quilt/quilt.inc
meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix.patch [new file with mode: 0644]

index e5e0a4feca15a2913faab3cc16629d5c79eee136..77d1bcf55ee41b39efce4fd71f6b7ada783cbbec 100644 (file)
@@ -5,7 +5,8 @@ LICENSE = "GPLv2"
 LIC_CHKSUM_FILES = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz \
-        file://install.patch"
+        file://install.patch \
+        file://gnu_patch_test_fix.patch"
 
 inherit autotools
 
diff --git a/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix.patch b/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix.patch
new file mode 100644 (file)
index 0000000..cc4236b
--- /dev/null
@@ -0,0 +1,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='.'