summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-02-04 20:28:02 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:39 +0000
commitfc73574d8d6d39886ad21007c311606958a0b255 (patch)
tree7f6d4e2ec6b0347f13150316190973dab5c1c3dc
parentc427ed474cfe0ff6acc309ffefe61751d0875e59 (diff)
downloadpoky-fc73574d8d6d39886ad21007c311606958a0b255.tar.gz
python-core/python-dev: improve reproducibility
- Remove remaining build host references from packaged files. (sync with python3) - Use relative path to recompile _sysconfigdata.py (From OE-Core rev: 40a899544c9c7255aff92fea52fae4b32485fd75) 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/python_2.7.14.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.14.bb b/meta/recipes-devtools/python/python_2.7.14.bb
index 7d03bc8a64..0a09926dfb 100644
--- a/meta/recipes-devtools/python/python_2.7.14.bb
+++ b/meta/recipes-devtools/python/python_2.7.14.bb
@@ -141,9 +141,14 @@ py_package_preprocess () {
141 141
142 # Remove references to buildmachine paths in target Makefile and _sysconfigdata 142 # Remove references to buildmachine paths in target Makefile and _sysconfigdata
143 sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ 143 sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
144 -e 's|${DEBUG_PREFIX_MAP}||g' \
145 -e 's:${HOSTTOOLS_DIR}/::g' \
146 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
147 -e 's:${RECIPE_SYSROOT}::g' \
148 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
144 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ 149 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \
145 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py 150 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
146 python -m py_compile ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py 151 (cd ${PKGD}; python -m py_compile ./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py)
147} 152}
148 153
149 154