]> code.ossystems Code Review - openembedded-core.git/commitdiff
libtool: avoid absolute pathnames of general utils
authorNitin A Kamble <nitin.a.kamble@intel.com>
Fri, 18 Feb 2011 18:13:48 +0000 (10:13 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Feb 2011 17:53:51 +0000 (17:53 +0000)
addded a new patch:
libtool/avoid_absolute_paths_for_general_utils.patch

This fixes [BUGID #154]
This fixes [BUGID #734]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/recipes-devtools/libtool/libtool-cross_2.4.bb
meta/recipes-devtools/libtool/libtool-native_2.4.bb
meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb
meta/recipes-devtools/libtool/libtool.inc
meta/recipes-devtools/libtool/libtool/avoid_absolute_paths_for_general_utils.patch [new file with mode: 0644]
meta/recipes-devtools/libtool/libtool_2.4.bb

index e3b40f2560e4ab2c206e3c50d8e0a364a9c5c1f1..25ac580e4afa91f5515a641099b233c981565a3e 100644 (file)
@@ -1,6 +1,6 @@
 require libtool-${PV}.inc
 
-PR = "r1"
+PR = "r2"
 PACKAGES = ""
 SRC_URI += "file://prefix.patch"
 
index 4163e8972a1e7c10106c1e1a400a80727b5c733c..423622fa2e6451a30102e3fcc927801a48508ea3 100644 (file)
@@ -2,7 +2,7 @@ require libtool-${PV}.inc
 
 DEPENDS = ""
 
-PR = "r1"
+PR = "r2"
 SRC_URI += "file://prefix.patch"
 
 inherit native
index 45c9af66c68ed33a292e05b8cc844e89bf093355..4f67fed44560f18302917536326ff99e397d95e7 100644 (file)
@@ -1,6 +1,6 @@
 require libtool-${PV}.inc
 
-PR = "r1"
+PR = "r2"
 SRC_URI += "file://prefix.patch"
 
 inherit nativesdk
index 8701c820d2b5d679a7f8b82bfca77c8c73ea349d..e066ffa386dde57b207bf73ce6030d64fc21ccc0 100644 (file)
@@ -14,7 +14,8 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \
            file://rename-with-sysroot.patch \
            file://resolve-sysroot.patch \
            file://use-sysroot-in-libpath.patch \
-           file://fix-final-rpath.patch"
+           file://fix-final-rpath.patch \
+           file://avoid_absolute_paths_for_general_utils.patch "
 
 do_compile_prepend () {
        # Sometimes this file doesn't get rebuilt, force the issue
diff --git a/meta/recipes-devtools/libtool/libtool/avoid_absolute_paths_for_general_utils.patch b/meta/recipes-devtools/libtool/libtool/avoid_absolute_paths_for_general_utils.patch
new file mode 100644 (file)
index 0000000..f158171
--- /dev/null
@@ -0,0 +1,37 @@
+On some distro the path of utils like sed, grep etc are different than the
+buildhost system.
+ This was causing runtime issue while running libtoolize from the 
+libtool-nativesdk package.
+  This patch takes out the absolute paths of these utils, and put 
+responsibility on the end-user to set correct paths for these utilities to be 
+found out.
+
+Nitin A Kamble <nitin.a.kamble@intel.com>
+2011/02/18
+
+
+Index: libtool-2.4/libltdl/config/general.m4sh
+===================================================================
+--- libtool-2.4.orig/libltdl/config/general.m4sh       2010-08-31 23:02:45.000000000 -0700
++++ libtool-2.4/libltdl/config/general.m4sh    2011-02-18 09:59:09.482038240 -0800
+@@ -45,15 +45,15 @@
+ M4SH_VERBATIM([[
+ : ${CP="cp -f"}
+ test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
+-: ${EGREP="@EGREP@"}
+-: ${FGREP="@FGREP@"}
+-: ${GREP="@GREP@"}
+-: ${LN_S="@LN_S@"}
++: ${EGREP="egrep"}
++: ${FGREP="fgrep"}
++: ${GREP="grep"}
++: ${LN_S="ln -s"}
+ : ${MAKE="make"}
+ : ${MKDIR="mkdir"}
+ : ${MV="mv -f"}
+ : ${RM="rm -f"}
+-: ${SED="@SED@"}
++: ${SED="sed"}
+ : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+ : ${Xsed="$SED -e 1s/^X//"}
index a820bed0dd342eb10fe3213c9f56aa0d15984bc7..e1a9a10ffd040289aa1d07a60d7c389a80449117 100644 (file)
@@ -1,6 +1,6 @@
 require libtool-${PV}.inc
 
-PR = "r1"
+PR = "r2"
 
 #
 # We want the results of libtool-cross preserved - don't stage anything ourselves.