mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 01:06:37 +01:00
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) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
546 B
BlitzBasic
26 lines
546 B
BlitzBasic
require libtool-${PV}.inc
|
|
|
|
DEPENDS = ""
|
|
|
|
PR = "${INC_PR}.1"
|
|
SRC_URI += "file://prefix.patch"
|
|
|
|
inherit native
|
|
|
|
EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}"
|
|
|
|
do_configure_prepend () {
|
|
# Remove any existing libtool m4 since old stale versions would break
|
|
# any upgrade
|
|
rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
|
|
rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
|
|
}
|
|
|
|
do_install () {
|
|
autotools_do_install
|
|
install -d ${D}${bindir}/
|
|
install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
|
|
}
|
|
|
|
export CONFIG_SHELL="/bin/bash"
|