Skip to contentSkip to conversation

gmp: improve reproducibility

PATCH Superseded Oleh Matiusha 2 participants 2 messages Mar 27, 2024

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gmp: improve reproducibility

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

---
v2
- move common code to separate function
---

---
 meta/recipes-support/gmp/gmp_6.3.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
meta/recipes-support/gmp/gmp_6.3.0.bb +9 -1
index 3dbcd68b5c..fd4aec92fd 100644
@@ -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
Signature · 1 line
2.33.0
#1 lore raw
Quoted 27 lines · Oleh Matiusha via lists.openembedded.org

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

---
v2
- move common code to separate function
---

---
 meta/recipes-support/gmp/gmp_6.3.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
meta/recipes-support/gmp/gmp_6.3.0.bb +1 -1
index 3dbcd68b5c..fd4aec92fd 100644
@@ -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

meta/recipes-support/gmp/gmp_6.3.0.bb do_install:append() { · line 46

Quoted 10 lines
meta/recipes-support/gmp/gmp_6.3.0.bb +8 -0
 }
 
+do_install:prepend:class-target() {
+    fix_absolute_paths
+}
+
+do_install:prepend:class-nativesdk() {
+    fix_absolute_paths
+}
+

why can't we have it in common do_install shared across all variants of recipes.

Quoted 15 lines
meta/recipes-support/gmp/gmp_6.3.0.bb +0 -1
 SSTATE_SCAN_FILES += "gmp.h"
 
 # Doesn't compile in MIPS16e mode due to use of hand-written
--

2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197565): https://lists.openembedded.org/g/openembedded-core/message/197565
Mute This Topic: https://lists.openembedded.org/mt/105181617/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-