diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-02-04 20:28:01 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-16 17:56:32 +0000 |
commit | 49403dde0b69ee624c2dce7c60cf3a3962e83c54 (patch) | |
tree | 4281b51e09b62996797a17e6a03f7982e8911a66 | |
parent | bf79355d2834a387f94978fe9650bee43244a40e (diff) | |
download | openembedded-core-49403dde0b69ee624c2dce7c60cf3a3962e83c54.tar.gz openembedded-core-49403dde0b69ee624c2dce7c60cf3a3962e83c54.tar.bz2 openembedded-core-49403dde0b69ee624c2dce7c60cf3a3962e83c54.zip |
python3-core: improve reproducibility
Since modify _sysconfigdata.py to improve reproducibility,
its pyo files should be recompiled.
Remove remaining build host references of python3.5m-config
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/recipes-devtools/python/python3_3.5.4.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.4.bb b/meta/recipes-devtools/python/python3_3.5.4.bb index 4c7a22527c..a94d0096f1 100644 --- a/meta/recipes-devtools/python/python3_3.5.4.bb +++ b/meta/recipes-devtools/python/python3_3.5.4.bb @@ -192,7 +192,18 @@ py_package_preprocess () { -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::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 + ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py \ + ${PKGD}/${bindir}/python${PYTHON_BINABI}-config + + # Recompile _sysconfigdata after modifying it + cd ${PKGD} + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ + -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py')" + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ + -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=1)" + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ + -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=2)" + cd - } # manual dependency additions |