From 3882cab93735fb91e2a04fd3b093fe2ff77673ec Mon Sep 17 00:00:00 2001 From: Rajendra Desai Date: Fri, 14 Feb 2025 19:27:38 +0530 Subject: [PATCH] perl-ptest: copy xconfig data from perl source directory Some of the ExtUtils ptests were failing due to the missing xconfig.h file that was supposed to be present under perl/ptest directory. Used a part of the logic to copy the missing file from perl source from the commit f90922c (perl: update 5.36.1 -> 5.38.0) Signed-off-by: Rajendra Desai --- meta/recipes-devtools/perl/perl-ptest.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc index e07355d3f54..a4e034da6bd 100644 --- a/meta/recipes-devtools/perl/perl-ptest.inc +++ b/meta/recipes-devtools/perl/perl-ptest.inc @@ -43,8 +43,10 @@ do_install_ptest () { # Remove a useless timestamp... sed -i -e '/Autogenerated starting on/d' ${D}${PTEST_PATH}/lib/unicore/mktables.lst - # Remove files with host-specific configuration for building native binaries - rm ${D}${PTEST_PATH}/Makefile.config ${D}${PTEST_PATH}/xconfig.h ${D}${PTEST_PATH}/xconfig.sh + # xconfig.h contains references to build host architecture, and yet is included from various other places. + # To make it reproducible let's make it a copy of config.h patch that is specific to the target architecture. + # It is believed that the original header is the product of building miniperl (a helper executable built with host compiler). + cp ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h ${D}${PTEST_PATH}/xconfig.h } python populate_packages:prepend() {