Skip to contentSkip to conversation

gmp: improve reproducibility

PATCH Superseded Oleh Matiusha 1 participant 1 message Feb 26, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gmp: improve reproducibility

nativesdk-gmp package contains host references in output packages. Remove them.

---
 meta/recipes-support/gmp/gmp_6.2.1.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-support/gmp/gmp_6.2.1.bb +7 -0
index 29055492c2..3128350e5f 100644
@@ -38,6 +38,13 @@ do_install:prepend:class-target() {
          ${B}/gmp.h
 }
 
+do_install:prepend:class-nativesdk() {
+        sed -i \
+        -e "s|--sysroot=${STAGING_DIR_HOST}||g" \
+        -e "s|${DEBUG_PREFIX_MAP}||g" \
+         ${B}/gmp.h
+}
+
 SSTATE_SCAN_FILES += "gmp.h"
 
 # Doesn't compile in MIPS16e mode due to use of hand-written
Signature · 1 line
2.33.0