summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-02-04 20:28:01 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:39 +0000
commitbed1fb22ecfe3d280670571530d6d52a02fed677 (patch)
treeda43ed20dbd7eb3c4d91ab1c9dd8ea4aae237bdb
parent0f613f82c48e9964c25f292636839d8ba6fdfb98 (diff)
downloadpoky-bed1fb22ecfe3d280670571530d6d52a02fed677.tar.gz
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 (From OE-Core rev: 49403dde0b69ee624c2dce7c60cf3a3962e83c54) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3_3.5.4.bb13
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 () {
192 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ 192 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
193 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ 193 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \
194 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \ 194 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \
195 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py 195 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py \
196 ${PKGD}/${bindir}/python${PYTHON_BINABI}-config
197
198 # Recompile _sysconfigdata after modifying it
199 cd ${PKGD}
200 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
201 -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py')"
202 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
203 -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=1)"
204 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
205 -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=2)"
206 cd -
196} 207}
197 208
198# manual dependency additions 209# manual dependency additions