Skip to contentSkip to conversation

curl: improve reproducibility

PATCH Superseded Oleh Matiusha 2 participants 2 messages Feb 26, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 curl: improve reproducibility

Nativesdk package contains host references in output packages. Remove them.

---
 meta/recipes-support/curl/curl_7.85.0.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/recipes-support/curl/curl_7.85.0.bb +10 -0
index 1e71ed821e..2d60f9aba1 100644
@@ -110,6 +110,16 @@ do_install:append:class-target() {
 	    ${D}${bindir}/curl-config
 }
 
+do_install:append:class-nativesdk() {
+	# cleanup buildpaths from curl-config
+	sed -i \
+	    -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
+	    -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
+	    -e 's|${DEBUG_PREFIX_MAP}||g' \
+	    -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \
+	    ${D}${bindir}/curl-config
+}
+
 do_compile_ptest() {
 	oe_runmake test
 	oe_runmake -C ${B}/tests/server
Signature · 1 line
2.33.0
#1 lore raw

It’s better to separate the processing into its own function so you don’t have to copy paste it from target install.

Alex

Quoted 45 lines · Oleh Matiusha via lists.openembedded.org

Nativesdk package contains host references in output packages. Remove them.

---
 meta/recipes-support/curl/curl_7.85.0.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/recipes-support/curl/curl_7.85.0.bb +10 -1
index 1e71ed821e..2d60f9aba1 100644
@@ -110,6 +110,16 @@ do_install:append:class-target() {
            ${D}${bindir}/curl-config
 }
 
+do_install:append:class-nativesdk() {
+       # cleanup buildpaths from curl-config
+       sed -i \
+           -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
+           -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
+           -e 's|${DEBUG_PREFIX_MAP}||g' \
+           -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \
+           ${D}${bindir}/curl-config
+}
+
 do_compile_ptest() {
        oe_runmake test
        oe_runmake -C ${B}/tests/server
--

2.33.0

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