After building core-image-sato, I see there is Makefile in /usr/lib/python3.5/config-3.5m This Makefile contains numerous references to the actual host build system: Some of them (there's more): abs_srcdir=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0/build/../Python-3.5 abs_builddir=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0/build #·Portable·install·script·(configure·doesn't·always·guess·right) INSTALL= /data/master-master/poky/build-repro-new/tmp/hosttools/install·-c MKDIR_P= /data/master-master/poky/build-repro-new/tmp/hosttools/mkdir·-p CONFIGURE_CFLAGS=·-O2·-pipe·-g·-feliminate-unused-debug-types·-fdebug-prefix-map=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0=/usr/src/debug/python3/3.5.2-r1.0·-fdebug-prefix-map=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0/recipe-sysroot-native=·-fdebug-prefix-map=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0/recipe-sysroot=· CONFIG_ARGS=» ·'--build=x86_64-linux'·'--host=i586-poky-linux'·'--target=i586-poky-linux'·'--prefix=/usr'·'--exec_prefix=/usr'·'--bindir=/usr/bin'·'--sbindir=/usr/sbin'·'--libexecdir=/usr/libexec'·'--datadir=/usr/share'·'--sysconfdir=/etc'·'--sharedstatedir=/com'·'--localstatedir=/var'·'--libdir=/usr/lib'·'--includedir=/usr/include'·'--oldincludedir=/usr/include'·'--infodir=/usr/share/info'·'--mandir=/usr/share/man'·'--disable-silent-rules'·'--disable-dependency-tracking'·''·'--with-system-ffi'·'--with-threads'·'--with-pymalloc'·'--without-cxx-main'·'--with-signal-module'·'--enable-shared'·'--enable-ipv6=yes'·'ac_cv_header_bluetooth_bluetooth_h=no'·'ac_cv_header_bluetooth_h=no'·'CROSSPYTHONPATH=/data/master-master/poky/build-repro-new/tmp/work/i586-poky-linux/python3/3.5.2-r1.0/recipe-sysroot-native/usr/lib/python3.5/lib-dynload/'·'--without-ensurepip'·'--disable-static'·'build_alias=x86_64-linux'·'host_alias=i586-poky-linux'·'target_alias=i586-poky-linux'·'CC=i586-poky-linux-gcc··-m32·-march=i586·-DNDEBUG·-fn·✂
RP has a patch which should solve a lot of this.
(In reply to comment #1) > RP has a patch which should solve a lot of this. Unfortunately it does not. The patch does, however, solve a similar problem in _sysconfigdata.py.
There's a patch on the list.
Reassigning to Alejandro. This *might* be fixed in master.
Not fixed as of Aug 28, 2017.
This fixes the issue: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=jurob/reproducible_binaries_4&id=6da0b45df53ba2cb0df0a879b220e3722c081e2d The patch: diff --git a/meta/recipes-devtools/python/python3_3.5.3.bb b/meta/recipes-devtools/python/python3_3.5.3.bb index 13df12f..2ea9e13 100644 --- a/meta/recipes-devtools/python/python3_3.5.3.bb +++ b/meta/recipes-devtools/python/python3_3.5.3.bb @@ -188,6 +188,11 @@ py_package_preprocess () { 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 \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + -e 's:${HOSTTOOLS_DIR}/::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}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
Fixed: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=100cf0849e3c8d355a38be525bf3cea903106f22