Skip to contentSkip to conversation

libmodule-build-perl: Fix build arch contamination

PATCH New Richard Purdie 1 participant 2 messages Sep 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libmodule-build-perl: Fix build arch contamination

Ensure BUILD_ARCH doesn't leak into the ptest output package causing reproducibility to break cross build architecture.

---
 meta/recipes-devtools/perl/libmodule-build-perl_0.4234.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/perl/libmodule-build-perl_0.4234.bb +1 -0
index 3ec712cb8e6..5eebe3c38d2 100644
@@ -53,6 +53,7 @@ do_install_ptest() {
                -e "s,${STAGING_BINDIR_NATIVE}/perl-native/\.\.,${bindir}/,g" \
                -e "s,${S},,g" \
                -e "s,${D},,g" \
+               -e "s,/${BUILD_ARCH}-${BUILD_OS}',\',g" \
                ${D}${PTEST_PATH}/_build/build_params \
                ${D}${PTEST_PATH}/_build/runtime_params
         rm -rf ${D}${PTEST_PATH}/blib/libhtml/site/lib/Module/
#1 lore raw

PATCH 2/2 openssl: Fix build arch contamination

Ensure BUILD_ARCH doesn't leak into the ptest output package causing reproducibility to break cross build architecture.

---
 meta/recipes-connectivity/openssl/openssl_4.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl_4.0.2.bb +1 -1
index 740a2fc66e4..bb58c27fbc8 100644
@@ -245,7 +245,7 @@ do_install_ptest() {
 	install -m755 ${S}/test/smcont*.txt ${D}${PTEST_PATH}/test/
 	install -m755 ${S}/test/ssl_test.tmpl ${D}${PTEST_PATH}/test/
 
-	sed 's|${S}|${PTEST_PATH}|g' -i ${D}${PTEST_PATH}/configdata.pm ${D}${PTEST_PATH}/util/wrap.pl
+	sed -e 's|${S}|${PTEST_PATH}|g' -e 's|${BUILD_ARCH}-${BUILD_OS}|${TARGET_SYS}|g' -i ${D}${PTEST_PATH}/configdata.pm ${D}${PTEST_PATH}/util/wrap.pl
 
 	ln -s ${libdir}/ossl-modules/ ${D}${PTEST_PATH}/providers
 }