From d31bee70dd328ba3a5fc54fca6230a9925bfca9d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 4 May 2017 11:58:05 +0100 Subject: 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. (From OE-Core rev: 080197bf3bdf612da8104c2ae7f0b2c8dea32a0b) (From OE-Core rev: 8e3134953edfc88bf3d135b5dc00d361f84b5f37) Signed-off-by: Richard Purdie Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-devtools/python/python.inc b/meta/recipes-devtools/python/python.inc index b9ec69275a..b4bce24edb 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 +} -- cgit v1.2.3-54-g00ecf