]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3: manipulate all of the config*/Makefile files, not just config/Makefile
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Fri, 29 Apr 2016 11:04:43 +0000 (14:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2016 07:04:11 +0000 (08:04 +0100)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
meta/recipes-devtools/python/python3_3.5.1.bb

index 26d05c76b0a49a5262f517625f05748e470939ee..62e7b650835335bc9e226d772e53f1fe0c179773 100644 (file)
@@ -164,6 +164,7 @@ do_install() {
        rm -f ${D}/${bindir}/2to3
 
        install -m 0644 Makefile.sysroot ${D}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
+       install -m 0644 Makefile.sysroot ${D}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile
 
        if [ -e ${WORKDIR}/sitecustomize.py ]; then
                install -m 0644 ${WORKDIR}/sitecustomize.py ${D}/${libdir}/python${PYTHON_MAJMIN}
@@ -182,9 +183,11 @@ PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
 py_package_preprocess () {
        # copy back the old Makefile to fix target package
        install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
+       install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile
        # Remove references to buildmachine paths in target Makefile and _sysconfigdata
        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 \
+               ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \
                ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
 }