summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorSerhii Popovych <spopovyc@cisco.com>2017-03-28 19:32:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-31 10:09:58 +0100
commit49772e1a1f291d1cacce27b381009dbb441c483e (patch)
treed81ca2b970c126e35d7bc3569f7e29d15d2cce45 /meta
parent2a83c22a510e10b169015ce936eb51a6fc959ec1 (diff)
downloadopenembedded-core-49772e1a1f291d1cacce27b381009dbb441c483e.tar.gz
openembedded-core-49772e1a1f291d1cacce27b381009dbb441c483e.tar.bz2
openembedded-core-49772e1a1f291d1cacce27b381009dbb441c483e.zip
distutils3.bbclass: Fix path to python for scripts
This change is similar to the recently introduced change to the distutils.bbclass fixing shebang line in python scripts for nativesdk class builds. v2: Rebased on top of new head. Cc: XE-Linux <xe-linux-external@cisco.com> Signed-off-by: Serhii Popovych <spopovyc@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/distutils3.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass
index 01ef72a987..6c30306882 100644
--- a/meta/classes/distutils3.bbclass
+++ b/meta/classes/distutils3.bbclass
@@ -47,14 +47,14 @@ distutils3_do_install() {
if test -e ${D}${bindir} ; then
for i in ${D}${bindir}/* ; do \
- sed -i -e s:${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}:${bindir}/env\ ${PYTHON_PN}:g $i
+ sed -i -e s:${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}:${USRBINPATH}/env\ ${PYTHON_PN}:g $i
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi
if test -e ${D}${sbindir}; then
for i in ${D}${sbindir}/* ; do \
- sed -i -e s:${STAGING_BINDIR_NATIVE}/python-${PYTHON_PN}/${PYTHON_PN}:${bindir}/env\ ${PYTHON_PN}:g $i
+ sed -i -e s:${STAGING_BINDIR_NATIVE}/python-${PYTHON_PN}/${PYTHON_PN}:${USRBINPATH}/env\ ${PYTHON_PN}:g $i
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi