Skip to contentSkip to conversation

curl: improve reproducibility

PATCH Superseded Oleh Matiusha 2 participants 3 messages Mar 27, 2024 – Apr 3, 2024

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 curl: improve reproducibility

nativesdk-curl package contains host references in output files. remove them.

---
v2
- moved common code to separate function
---

---
 meta/recipes-support/curl/curl_8.6.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
meta/recipes-support/curl/curl_8.6.0.bb +9 -1
index ea69164d76..49ba0cb4a7 100644
@@ -79,7 +79,7 @@ EXTRA_OECONF = " \
     ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \
 "
 
-do_install:append:class-target() {
+fix_absolute_paths () {
 	# cleanup buildpaths from curl-config
 	sed -i \
 	    -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
@@ -89,6 +89,14 @@ do_install:append:class-target() {
 	    ${D}${bindir}/curl-config
 }
 
+do_install:append:class-target() {
+	fix_absolute_paths
+}
+
+do_install:append:class-nativesdk() {
+	fix_absolute_paths
+}
+
 do_compile_ptest() {
 	oe_runmake -C ${B}/tests
 }
Signature · 1 line
2.33.0
#1 lore raw

meta/recipes-support/curl/curl_8.6.0.bb do_install:append:class-target() { · line 98

Quoted 7 lines · Oleh Matiusha via lists.openembedded.org
meta/recipes-support/curl/curl_8.6.0.bb +7 -0
+do_install:append:class-target() {
+ fix_absolute_paths
+}
+
+do_install:append:class-nativesdk() {
+ fix_absolute_paths
+}

Would it be best to just always do this sed? A native build won’t have a —sysroot anyway.

(or even better, stop curl-config from embedding the sysroot in the first place)

Ross

#2 lore raw

What about --with-libtool-sysroot and DEBUG_PREFIX_MAP?

Oleh