From: Richard Purdie Date: Thu, 23 Jan 2014 12:10:01 +0000 (+0000) Subject: libtool-cross/native: Force usage of bash due to sstate inconsistencies X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~34787 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d5b449e5f4d91119f0d8e13c457618811aadfc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git libtool-cross/native: Force usage of bash due to sstate inconsistencies Scenario: a) libtool script is built on system with bash as /bin/sh b) machine B installs sstate from build a) c) machine B has dash as /bin/sh In this scenario, the script fails to work properly since its expecting /bin/sh to have bash like syntax and it no longer does have it. This patch forces the configure process to use /bin/bash, not /bin/sh and hence allows the scripts to work correctly when used from sstate. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb index 34aae0bf139..72fad37eaf3 100644 --- a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb +++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb @@ -39,3 +39,5 @@ libtoolcross_sysroot_preprocess () { } SSTATE_SCAN_FILES += "libtoolize *-libtool" + +export CONFIG_SHELL="/bin/bash" 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 df73f08e99e..f1051d84f3b 100644 --- a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb +++ b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb @@ -22,3 +22,4 @@ do_install () { install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool } +export CONFIG_SHELL="/bin/bash"