]> code.ossystems Code Review - openembedded-core.git/commitdiff
python.inc: Fix python2/3 hosttools path references
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 May 2017 10:58:05 +0000 (11:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 May 2017 12:17:18 +0000 (13:17 +0100)
Both native and target versions of this file reference mkdir and install
in hosttools paths. Use the version from PATH instead.

(From OE-Core rev: 080197bf3bdf612da8104c2ae7f0b2c8dea32a0b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python.inc

index b9ec69275a5ca8feef3c64df18f8fa20c1f8f876..b4bce24edb11d5d9ca265bd063cbc762ca7578df 100644 (file)
@@ -30,3 +30,9 @@ EXTRA_OECONF = "\
   ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \
   ${PYTHONLSBOPTS} \
 "
+
+do_install_append () {
+       sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
+               -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \
+               ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
+}