From e6da241f294ea0e5ecd7fb22def149fb5af1b356 Mon Sep 17 00:00:00 2001 From: Oleh Matiusha Date: Wed, 27 Mar 2024 17:16:16 +0000 Subject: gmp: improve reproducibility nativesdk-gmp package contains host references in output packages. remove them. (From OE-Core rev: 7b072b46bd0d0442066189ecf098b56e50ea77b1) Signed-off-by: Oleh Matiusha Signed-off-by: Richard Purdie --- meta/recipes-support/gmp/gmp_6.3.0.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/gmp/gmp_6.3.0.bb b/meta/recipes-support/gmp/gmp_6.3.0.bb index 3dbcd68b5c..fd4aec92fd 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 -- cgit v1.2.3-54-g00ecf