From 2e84bb1971d1b9511f26d5ff885fdb5f5c09a788 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 27 Apr 2023 09:35:28 +0200 Subject: perl: patch out build paths from native binaries (From OE-Core rev: 9ea0f850928b3e7d7a2eb280b8b3ed0c9f977cd6) Signed-off-by: Alexander Kanavin Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- meta/recipes-devtools/perl/perl_5.36.0.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/perl/perl_5.36.0.bb b/meta/recipes-devtools/perl/perl_5.36.0.bb index 4d8a919d1e..b8dba00f18 100644 --- a/meta/recipes-devtools/perl/perl_5.36.0.bb +++ b/meta/recipes-devtools/perl/perl_5.36.0.bb @@ -109,6 +109,10 @@ do_configure:class-native() { -Ui_xlocale \ -Alddlflags=' ${LDFLAGS}' \ ${PACKAGECONFIG_CONFARGS} + + # This prevents leakage of build paths into perl-native binaries, which + # causes non-deterministic troubles when those paths no longer exist or aren't accessible. + sed -i -e "s,${STAGING_LIBDIR},/completelyboguspath,g" config.h } do_configure:append() { -- cgit v1.2.3-54-g00ecf