diff mbox series

[meta-darwin,16/21] darwin-common: don't treat buildpaths QA as an error for the SDK

Message ID 20261014141209.488034-16-ecordonnier@snap.com
State New
Headers show
Series [meta-darwin,01/21] meta-darwin: bump layer series to wrynose (6.0.3) | expand

Commit Message

Etienne Cordonnier Oct. 14, 2026, 2:10 p.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

OSX_TOOLCHAIN_OPTIONS adds absolute -L paths below TMPDIR to the
compiler command lines, which then end up in headers (gmp.h's
__GMP_CC), libraries and binaries across most nativesdk and
cross-canadian packages. Handling this per recipe doesn't scale.

Tested: nativesdk-gmp and nativesdk-ninja do_package_qa.

AI-Generated: Claude Sonnet 5.5

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 conf/machine-sdk/darwin-common.inc | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/conf/machine-sdk/darwin-common.inc b/conf/machine-sdk/darwin-common.inc
index 632c6b0..1e3f03b 100644
--- a/conf/machine-sdk/darwin-common.inc
+++ b/conf/machine-sdk/darwin-common.inc
@@ -86,3 +86,8 @@  fakeroot create_macos_img() {
    bzip2 "${sdk_img}"
    ls -lh "${sdk_img}.bz2"
 }
+
+# OSX_TOOLCHAIN_OPTIONS puts absolute -L paths into the sysroot under TMPDIR on
+# every nativesdk/cross-canadian compiler command line, and those end up in
+# headers (e.g. gmp.h's __GMP_CC), libraries and binaries.
+ERROR_QA:remove = "buildpaths"