diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-23 12:10:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 14:56:45 +0100 |
commit | 845df01345e166b9f9921514cea3a4f1274023a1 (patch) | |
tree | 772fd8823bdb10878c5b090aee3168cee3e704ce /meta/recipes-devtools | |
parent | 2e2a6d0c4e54eda550294d9394ed77315886b8ac (diff) | |
download | poky-845df01345e166b9f9921514cea3a4f1274023a1.tar.gz |
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.
(From OE-Core rev: 24d5b449e5f4d91119f0d8e13c457618811aadfc)
(From OE-Core rev: 330c3085317a0b0981163ff5c41c54596e0d127d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/libtool/libtool-native_2.4.2.bb | 1 |
2 files changed, 3 insertions, 0 deletions
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 34aae0bf13..72fad37eaf 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 () { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | SSTATE_SCAN_FILES += "libtoolize *-libtool" | 41 | SSTATE_SCAN_FILES += "libtoolize *-libtool" |
42 | |||
43 | 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 df73f08e99..f1051d84f3 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 () { | |||
22 | install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool | 22 | install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool |
23 | } | 23 | } |
24 | 24 | ||
25 | export CONFIG_SHELL="/bin/bash" | ||