tcl: Rework mips-tclstrtod.patch
authorTom Rini <tom_rini@mentor.com>
Wed, 16 Mar 2011 15:43:42 +0000 (08:43 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 16 Mar 2011 15:45:43 +0000 (08:45 -0700)
We can't portably use .. in paths in patches so we stop applying this
in do_patch and instead apply it at the start of do_configure.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
recipes/tcltk/tcl_8.5.8.bb

index b846d0f..c7ac8cb 100644 (file)
@@ -1,7 +1,7 @@
 http://sourceforge.net/tracker/index.php?func=detail&aid=2902010&group_id=10894&atid=110894
 
---- ../generic/tclStrToD.c.orig
-+++ ../generic/tclStrToD.c
+--- generic/tclStrToD.c.orig
++++ generic/tclStrToD.c
 @@ -71,9 +71,10 @@
  
  /*
index e98b98d..e088b91 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI = "\
   file://tcllibrary.diff;striplevel=2 \
   file://tclpackagepath.diff;striplevel=2 \
   file://tclprivate.diff;striplevel=2 \
-  file://mips-tclstrtod.patch;striplevel=0 \
+  file://mips-tclstrtod.patch;apply=false \
 "
 SRC_URI[md5sum] = "7f123e53b3daaaba2478d3af5a0752e3"
 SRC_URI[sha256sum] = "6b090c1024038d0381e1ccfbd6d5c0f0e6ef205269ceb9d28bd7bd7ac5bbf4a7"
@@ -27,6 +27,7 @@ EXTRA_OECONF = "--enable-threads"
 
 do_configure_append() {
         echo > ../compat/fixstrtod.c
+        (cd .. ; patch -p0 -i ${WORKDIR}/mips-tclstrtod.patch)
 }
 
 do_compile_prepend_pn-tcl () {