diff mbox series

curl: strip the build machine triplet from curl-config

Message ID 20260927153504.1126797-1-sunilkumar.dora@windriver.com
State New
Headers show
Series curl: strip the build machine triplet from curl-config | expand

Commit Message

Dora, Sunil Kumar Sept. 27, 2026, 3:35 p.m. UTC
From: Sunil Dora <sunilkumar.dora@windriver.com>

curl-config echoes the configure arguments, which include
--build=${BUILD_SYS} and build_alias=${BUILD_SYS}. That is the machine
the package was built on, so curl-dev differs between the x86_64 and
aarch64 autobuilder workers. Drop both tokens in fix_absolute_paths,
which already scrubs this file; an empty --build= would not be valid,
so they are removed rather than blanked.

[YOCTO #16376]

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
---
 meta/recipes-support/curl/curl_8.22.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb
index 3ccfcf7f2d..96f889165e 100644
--- a/meta/recipes-support/curl/curl_8.22.0.bb
+++ b/meta/recipes-support/curl/curl_8.22.0.bb
@@ -92,12 +92,14 @@  EXTRA_OECONF = " \
 "
 
 fix_absolute_paths () {
-	# cleanup buildpaths from curl-config
+	# cleanup buildpaths and the build host triple 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' \
+	    -e "s,'--build=${BUILD_SYS}' ,,g" \
+	    -e "s,'build_alias=${BUILD_SYS}' ,,g" \
 	    ${D}${bindir}/curl-config
 }