[oe-commits] Tom Rini : tcl: Rework mips-tclstrtod.patch

git version control git at git.openembedded.org
Wed Mar 16 15:48:36 UTC 2011


Module: openembedded.git
Branch: master
Commit: 736cfe81f8a1b17b972d70bf01ca64c3e208f2f8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=736cfe81f8a1b17b972d70bf01ca64c3e208f2f8

Author: Tom Rini <tom_rini at mentor.com>
Date:   Wed Mar 16 08:43:42 2011 -0700

tcl: Rework mips-tclstrtod.patch

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 at mentor.com>

---

 recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch |    4 ++--
 recipes/tcltk/tcl_8.5.8.bb                   |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch b/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
index b846d0f..c7ac8cb 100644
--- a/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
+++ b/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
@@ -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 @@
  
  /*
diff --git a/recipes/tcltk/tcl_8.5.8.bb b/recipes/tcltk/tcl_8.5.8.bb
index e98b98d..e088b91 100644
--- a/recipes/tcltk/tcl_8.5.8.bb
+++ b/recipes/tcltk/tcl_8.5.8.bb
@@ -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 () {





More information about the Openembedded-commits mailing list