python 2.7: fix multilib patch to accept multiarch style paths

Using 'basename' to strip the prefix fails when using multiarch style paths.

(From OE-Core rev: c61c416a6504f7e8885df3c94c839d1031920a1c)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Koen Kooi
2018-04-16 15:00:21 +02:00
committed by Richard Purdie
parent 2c9c4a406a
commit f03dccc7ec
2 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,12 @@ EXTRA_OECONF = "\
${PYTHONLSBOPTS} \
"
do_configure_prepend() {
libdirleaf="$(echo ${libdir} | sed -e 's:${prefix}/::')"
sed -i -e "s:SEDMELIBLEAF:${libdirleaf}:g" \
${S}/configure.ac
}
do_install_append () {
sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
-e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \