]> code.ossystems Code Review - openembedded-core.git/commitdiff
python: add explicit directories in py_package_preprocess
authorRoss Burton <ross.burton@intel.com>
Tue, 7 Jul 2015 22:55:15 +0000 (23:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jul 2015 14:08:44 +0000 (15:08 +0100)
py_package_preprocess() was using relative paths which mean it depends on
exactly what directory it starts in.  To clarify the code, always use absolute
paths.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python3_3.4.3.bb
meta/recipes-devtools/python/python_2.7.9.bb

index 3efa7deec4b9af9639f19cb697738f6fbb2e5f83..dce778a5935bd0a761e399bfb136a801c825a7b3 100644 (file)
@@ -180,7 +180,7 @@ PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
 
 py_package_preprocess () {
        # copy back the old Makefile to fix target package
-       install -m 0644 Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
+       install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
        # Remove references to buildmachine paths in target Makefile
        sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
 }
index 19190c3042be762228804c24c6dedbbbd00634b5..803a1fc7497b7c3c832bda96f2e7e66426dd9ffe 100644 (file)
@@ -135,7 +135,7 @@ PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
 
 py_package_preprocess () {
        # copy back the old Makefile to fix target package
-       install -m 0644 Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
+       install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
 
        # Remove references to buildmachine paths in target Makefile
        sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile