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(-)

diff --git a/meta/recipes-support/curl/curl_8.6.0.bb 
b/meta/recipes-support/curl/curl_8.6.0.bb
index ea69164d76..49ba0cb4a7 100644
--- a/meta/recipes-support/curl/curl_8.6.0.bb
+++ b/meta/recipes-support/curl/curl_8.6.0.bb
@@ -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
 }
-- 
2.33.0

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

Reply via email to