curl: improve reproducibility
PATCH v2 1/1 curl: improve reproducibility
nativesdk-curl package contains host references in output files. remove them.
Signed-off-by Oleh Matiusha <[email protected]>
---
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
@@ -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
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
What about --with-libtool-sysroot and DEBUG_PREFIX_MAP?
Oleh