]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
curl: improve reproducibility
authorOleh Matiusha <omatiush@cisco.com>
Wed, 27 Mar 2024 17:14:34 +0000 (17:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Apr 2024 13:02:24 +0000 (14:02 +0100)
nativesdk-curl package contains host references in output files.
remove them.

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/curl/curl_8.6.0.bb

index ea69164d765245b9a5db27a3eeb55e21af7b5006..49ba0cb4a7e27f87acee4c3c2be0f20ec81bfdc5 100644 (file)
@@ -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
 }