From: Alejandro Hernandez Samaniego Date: Tue, 4 Aug 2026 22:04:53 +0000 (+0000) Subject: libtool: strip build system triplet from installed libtool script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1295627cb97d4451e28be388f6854f5ccdad0f5a;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git libtool: strip build system triplet from installed libtool script The installed /usr/bin/libtool script sourced by any recipe that inherits libtool contains build_alias=, build= and build_os= lines populated by config.status with the *build machine's* triplet (e.g. build=x86_64-pc-linux-gnu, build_alias=x86_64-linux). Those values vary between autobuilder workers whose config.guess reports different vendors or OS strings, which makes libtool.rpm non- reproducible across the autobuilder pool and shows up as a diff in the reproducibility selftest. Extend the sanitising sed in remove-buildpaths.inc to blank those three lines the same way the existing rules blank sysroot and build-path references. Verified locally: before this change the installed libtool contained `build_alias=x86_64-linux`, `build=x86_64-pc-linux-gnu` and `build_os=linux-gnu`; after this change all three lines are empty. Assisted-by: AI - OpenAI Signed-off-by: Alejandro Hernandez Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/libtool/remove-buildpaths.inc b/meta/recipes-devtools/libtool/remove-buildpaths.inc index 1ca95aeace..31bae6fb62 100644 --- a/meta/recipes-devtools/libtool/remove-buildpaths.inc +++ b/meta/recipes-devtools/libtool/remove-buildpaths.inc @@ -9,5 +9,8 @@ do_install:append () { -e 's@^\(predep_objects="\).*@\1"@' \ -e 's@^\(postdep_objects="\).*@\1"@' \ -e "s@${HOSTTOOLS_DIR}/@@g" \ + -e 's@^build_alias=.*@build_alias=@' \ + -e 's@^build=.*@build=@' \ + -e 's@^build_os=.*@build_os=@' \ -i ${D}${bindir}/libtool }