From: Oleh Matiusha Date: Wed, 27 Mar 2024 17:16:16 +0000 (+0000) Subject: gmp: improve reproducibility X-Git-Tag: 2024-04-scarthgap~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b072b46bd0d0442066189ecf098b56e50ea77b1;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git gmp: improve reproducibility nativesdk-gmp package contains host references in output packages. remove them. Signed-off-by: Oleh Matiusha Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/gmp/gmp_6.3.0.bb b/meta/recipes-support/gmp/gmp_6.3.0.bb index 3dbcd68b5c1..fd4aec92fdb 100644 --- a/meta/recipes-support/gmp/gmp_6.3.0.bb +++ b/meta/recipes-support/gmp/gmp_6.3.0.bb @@ -29,13 +29,21 @@ do_install:append() { oe_multilib_header gmp.h } -do_install:prepend:class-target() { +fix_absolute_paths () { sed -i \ -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ -e "s|${DEBUG_PREFIX_MAP}||g" \ ${B}/gmp.h } +do_install:prepend:class-target() { + fix_absolute_paths +} + +do_install:prepend:class-nativesdk() { + fix_absolute_paths +} + SSTATE_SCAN_FILES += "gmp.h" # Doesn't compile in MIPS16e mode due to use of hand-written