[OE-core] [PATCH 1/1] python2-dev: improve reproducibility

Hongxu Jia hongxu.jia at windriver.com
Thu Jan 18 05:58:05 UTC 2018


On 2018年01月18日 11:48, Dengke Du wrote:
> oe-core has fixed it for python3, we can apply it to python2, the origin
> commit id:
>
>      e21723bb9b6035714268eeab5f43e2d1cb798a0d
>
> We can check it here:
>
>     http://git.openembedded.org/openembedded-core/commit/?id=e21723bb9b6035714268eeab5f43e2d1cb798a0d
>
> Signed-off-by: Dengke Du <dengke.du at windriver.com>
> ---
>   meta/recipes-devtools/python/python_2.7.13.bb | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-devtools/python/python_2.7.13.bb b/meta/recipes-devtools/python/python_2.7.13.bb
> index 754c029..8075204 100644
> --- a/meta/recipes-devtools/python/python_2.7.13.bb
> +++ b/meta/recipes-devtools/python/python_2.7.13.bb
> @@ -140,6 +140,10 @@ py_package_preprocess () {
>   
>   	# 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 \
> +		-e 's|${DEBUG_PREFIX_MAP}||g' \
> +		-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
> +		-e 's:${RECIPE_SYSROOT}::g' \
> +		-e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
>   		${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \
>   		${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
>       python -m py_compile ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py

There still build path issue,  use relative path to
recompile _sysconfigdata.py

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=hongxu/reproduce&id=8c1fe6eb54d88b7dd3081b57e98f8cf3b5298045

//Hongxu





More information about the Openembedded-core mailing list