diff mbox series

[meta-darwin,10/21] libgcrypt: drop libcap capabilities support for Darwin nativesdk

Message ID 20261014141209.488034-10-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>

Linux capability dropping has no Darwin equivalent, and libcap itself
can't build there (Linux-only headers, priority-numbered
constructor/destructor attributes unsupported on Mach-O). libgcrypt's
capabilities PACKAGECONFIG defaults on and pulls in nativesdk-libcap
transitively for the macOS NDK build, which fails do_compile.

AI-Generated: Claude Sonnet 5

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 recipes-support/libgcrypt/libgcrypt_%.bbappend | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 recipes-support/libgcrypt/libgcrypt_%.bbappend
diff mbox series

Patch

diff --git a/recipes-support/libgcrypt/libgcrypt_%.bbappend b/recipes-support/libgcrypt/libgcrypt_%.bbappend
new file mode 100644
index 0000000..2435dbb
--- /dev/null
+++ b/recipes-support/libgcrypt/libgcrypt_%.bbappend
@@ -0,0 +1,4 @@ 
+# Capability dropping is a Linux-only concept; libcap has no Darwin port
+# and can't build for it (uses sys/prctl.h, byteswap.h, priority-numbered
+# constructors, none of which exist on Mach-O/Darwin).
+PACKAGECONFIG:remove:class-nativesdk:darwin21 = "capabilities"