summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2013-02-12 13:36:44 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-13 16:52:30 +0000
commit80d0081d42f579d5ea7fab43bce6f6a54d96934a (patch)
tree1a6281cae85cafca832f9e980d3e175bdafc7adb /meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
parent4c548f17b0e03ca0d7e78a11c5f0df3fd92d6d71 (diff)
downloadpoky-80d0081d42f579d5ea7fab43bce6f6a54d96934a.tar.gz
libtool-native_2.4.2.bb: Always use /bin/sed for SED
If you never use sstate and always build everything from scratch you will never see this problem. However, if you use sstate and build directories that last a long time eventually you can end up with the scenario where libtool gets a hard coded path in it for sed, and sed may not exist. The reason you don't see this problem to often if you generally build from scratch is that libtool builds before sed and will pickup the host's /bin/sed. The way to reproduce the issue is: bitbake some_image bitbake -c cleansstate libtool-native bitbake sed-native bitbake libtool-native bitbake -c clean sed-native bitbake ANY_PACKAGE_THAT_USES_LIBTOOL_NATIVE In my case I used modphp, which doesn't exist in the oe-core. You will end up with a strange looking error like: | make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1 | /opt/build/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool: line 981: /opt/build/bitbake_build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory The solution is to always use /bin/sed for libtool-native. (From OE-Core rev: 605e4484840e70c64acddb4aa1a3c9fec4078d9d) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool-native_2.4.2.bb')
-rw-r--r--meta/recipes-devtools/libtool/libtool-native_2.4.2.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
index f12e6a15ea..18188ef7f3 100644
--- a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
+++ b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
@@ -2,12 +2,13 @@ require libtool-${PV}.inc
2 2
3DEPENDS = "" 3DEPENDS = ""
4 4
5PR = "${INC_PR}.0" 5PR = "${INC_PR}.1"
6SRC_URI += "file://prefix.patch" 6SRC_URI += "file://prefix.patch"
7 7
8inherit native 8inherit native
9 9
10EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}" 10EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}"
11CACHED_CONFIGUREVARS += "ac_cv_path_SED=/bin/sed"
11 12
12do_configure_prepend () { 13do_configure_prepend () {
13 # Remove any existing libtool m4 since old stale versions would break 14 # Remove any existing libtool m4 since old stale versions would break