From: Richard Purdie Date: Thu, 4 May 2017 10:58:05 +0000 (+0100) Subject: python.inc: Fix python2/3 hosttools path references X-Git-Tag: yocto-4.0~17049 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=080197bf3bdf612da8104c2ae7f0b2c8dea32a0b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python.inc: Fix python2/3 hosttools path references Both native and target versions of this file reference mkdir and install in hosttools paths. Use the version from PATH instead. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python.inc b/meta/recipes-devtools/python/python.inc index b9ec69275a5..b4bce24edb1 100644 --- a/meta/recipes-devtools/python/python.inc +++ b/meta/recipes-devtools/python/python.inc @@ -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 +}