libtool: avoid absolute pathnames of general utils

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>
This commit is contained in:
Nitin A Kamble
2011-02-18 10:13:48 -08:00
committed by Richard Purdie
parent 3c314b9b2a
commit 489465b82b
6 changed files with 43 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
require libtool-${PV}.inc
PR = "r1"
PR = "r2"
PACKAGES = ""
SRC_URI += "file://prefix.patch"

View File

@@ -2,7 +2,7 @@ require libtool-${PV}.inc
DEPENDS = ""
PR = "r1"
PR = "r2"
SRC_URI += "file://prefix.patch"
inherit native

View File

@@ -1,6 +1,6 @@
require libtool-${PV}.inc
PR = "r1"
PR = "r2"
SRC_URI += "file://prefix.patch"
inherit nativesdk

View 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

View File

@@ -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//"}

View 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.