diff options
author | Serhii Popovych <spopovyc@cisco.com> | 2017-03-28 19:32:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-31 10:10:30 +0100 |
commit | 5156cdc36bf939d9e9c1c2e28366af781b1094fb (patch) | |
tree | 7a15182c4a75ca41e34f48bb1bf62f5ec6827b50 | |
parent | 253ce5d6c00d9b9806d6ac4f8e41f7dad33ede02 (diff) | |
download | poky-5156cdc36bf939d9e9c1c2e28366af781b1094fb.tar.gz |
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>
(From OE-Core rev: 49772e1a1f291d1cacce27b381009dbb441c483e)
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/distutils3.bbclass | 4 |
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() { | |||
47 | 47 | ||
48 | if test -e ${D}${bindir} ; then | 48 | if test -e ${D}${bindir} ; then |
49 | for i in ${D}${bindir}/* ; do \ | 49 | for i in ${D}${bindir}/* ; do \ |
50 | sed -i -e s:${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}:${bindir}/env\ ${PYTHON_PN}:g $i | 50 | sed -i -e s:${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}:${USRBINPATH}/env\ ${PYTHON_PN}:g $i |
51 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | 51 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i |
52 | done | 52 | done |
53 | fi | 53 | fi |
54 | 54 | ||
55 | if test -e ${D}${sbindir}; then | 55 | if test -e ${D}${sbindir}; then |
56 | for i in ${D}${sbindir}/* ; do \ | 56 | for i in ${D}${sbindir}/* ; do \ |
57 | sed -i -e s:${STAGING_BINDIR_NATIVE}/python-${PYTHON_PN}/${PYTHON_PN}:${bindir}/env\ ${PYTHON_PN}:g $i | 57 | sed -i -e s:${STAGING_BINDIR_NATIVE}/python-${PYTHON_PN}/${PYTHON_PN}:${USRBINPATH}/env\ ${PYTHON_PN}:g $i |
58 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | 58 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i |
59 | done | 59 | done |
60 | fi | 60 | fi |