* [meta-darwin][PATCH 1/5] file: disable lzlib
@ 2026-11-16 20:22 ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 2/5] darwin-common: disable debuginfod ecordonnier
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ecordonnier @ 2026-11-16 20:22 UTC (permalink / raw)
To: yocto-patches; +Cc: Etienne Cordonnier
From: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
recipes-devtools/file/file_%.bbappend | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 recipes-devtools/file/file_%.bbappend
diff --git a/recipes-devtools/file/file_%.bbappend b/recipes-devtools/file/file_%.bbappend
new file mode 100644
index 0000000..7324ecd
--- /dev/null
+++ b/recipes-devtools/file/file_%.bbappend
@@ -0,0 +1,5 @@
+# lzlib does not support Darwin: its build system hardcodes ELF shared library
+# naming (liblz.so.N), which doesn't match SOLIBS=".dylib" and makes
+# nativesdk-lzlib fail do_package with [installed-vs-shipped]. Disable the
+# optional lzlib support (lzip decompression for "file -z") on darwin21.
+PACKAGECONFIG:remove:darwin21 = "lzlib"
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [meta-darwin][PATCH 2/5] darwin-common: disable debuginfod
2026-11-16 20:22 [meta-darwin][PATCH 1/5] file: disable lzlib ecordonnier
@ 2026-11-16 20:22 ` ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 3/5] libgpg-error: install lock-obj-pub header for the darwin21 triplet ecordonnier
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ecordonnier @ 2026-11-16 20:22 UTC (permalink / raw)
To: yocto-patches; +Cc: Etienne Cordonnier
From: Etienne Cordonnier <ecordonnier@snap.com>
debuginfod needs elfutils, which doesn't compile for darwin at the moment.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
conf/machine-sdk/darwin-common.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/conf/machine-sdk/darwin-common.inc b/conf/machine-sdk/darwin-common.inc
index a23c605..6c8a85a 100644
--- a/conf/machine-sdk/darwin-common.inc
+++ b/conf/machine-sdk/darwin-common.inc
@@ -44,6 +44,12 @@ BUILDSDK_LDFLAGS = " \
MACHINEOVERRIDES .= ":darwinsdk"
+# debuginfod needs elfutils (libdebuginfod/libelf), which upstream only supports
+# on Linux/glibc hosts: its configure fails on Darwin (e.g. the linker has no
+# --build-id and there is no readelf). Don't let the distro's debuginfod feature
+# reach nativesdk recipes until elfutils is ported.
+DISTRO_FEATURES_FILTER_NATIVESDK:remove:darwin21 = "debuginfod"
+
TOOLCHAIN_SHAR_EXT_TMPL ?= "${DARWINBASE}/conf/files/darwin-toolchain-shar-extract.sh"
SDK_POSTPROCESS_COMMAND:append = "${@bb.utils.contains('DARWIN_INSTALLER_PKG', '1', ' create_macos_pkg', '', d)}"
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [meta-darwin][PATCH 3/5] libgpg-error: install lock-obj-pub header for the darwin21 triplet
2026-11-16 20:22 [meta-darwin][PATCH 1/5] file: disable lzlib ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 2/5] darwin-common: disable debuginfod ecordonnier
@ 2026-11-16 20:22 ` ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 4/5] curl: pass -F for the Apple frameworks on Darwin nativesdk ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 5/5] gnutls: " ecordonnier
3 siblings, 0 replies; 5+ messages in thread
From: ecordonnier @ 2026-11-16 20:22 UTC (permalink / raw)
To: yocto-patches; +Cc: Etienne Cordonnier
From: Etienne Cordonnier <ecordonnier@snap.com>
mkheader includes src/syscfg/lock-obj-pub.<host triplet>.h, but upstream only
ships <cpu>-apple-darwin names, so do_compile fails on darwin21. Install the
upstream header under the name mkheader expects.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
recipes-support/libgpg-error/libgpg-error_%.bbappend | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 recipes-support/libgpg-error/libgpg-error_%.bbappend
diff --git a/recipes-support/libgpg-error/libgpg-error_%.bbappend b/recipes-support/libgpg-error/libgpg-error_%.bbappend
new file mode 100644
index 0000000..ee3d6ad
--- /dev/null
+++ b/recipes-support/libgpg-error/libgpg-error_%.bbappend
@@ -0,0 +1,8 @@
+# mkheader looks for src/syscfg/lock-obj-pub.<host triplet>.h, but upstream only
+# ships <cpu>-apple-darwin names, which never match <cpu>-<vendor>-darwin21.
+# The header describes Apple's pthread_mutex_t, identical across Darwin versions
+# for a given CPU, so install the upstream one under the name mkheader expects.
+do_configure:prepend:darwin21 () {
+ cp ${S}/src/syscfg/lock-obj-pub.${HOST_ARCH}-apple-darwin.h \
+ ${S}/src/syscfg/lock-obj-pub.${HOST_SYS}.h
+}
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [meta-darwin][PATCH 4/5] curl: pass -F for the Apple frameworks on Darwin nativesdk
2026-11-16 20:22 [meta-darwin][PATCH 1/5] file: disable lzlib ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 2/5] darwin-common: disable debuginfod ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 3/5] libgpg-error: install lock-obj-pub header for the darwin21 triplet ecordonnier
@ 2026-11-16 20:22 ` ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 5/5] gnutls: " ecordonnier
3 siblings, 0 replies; 5+ messages in thread
From: ecordonnier @ 2026-11-16 20:22 UTC (permalink / raw)
To: yocto-patches; +Cc: Etienne Cordonnier
From: Etienne Cordonnier <ecordonnier@snap.com>
lib/macos.c uses the SystemConfiguration and CoreFoundation frameworks, which
are in the SDK runtime tree but need -F.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
recipes-support/curl/curl_%.bbappend | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 recipes-support/curl/curl_%.bbappend
diff --git a/recipes-support/curl/curl_%.bbappend b/recipes-support/curl/curl_%.bbappend
new file mode 100644
index 0000000..3e5ad39
--- /dev/null
+++ b/recipes-support/curl/curl_%.bbappend
@@ -0,0 +1,5 @@
+# curl (lib/macos.c) uses the SystemConfiguration/CoreFoundation frameworks.
+# They are in the SDK runtime tree but need -F, which nothing adds by default.
+OSXSDK:class-nativesdk:darwin21 = "${STAGING_DIR_TARGET}${SDKPATHNATIVE}/runtime"
+CPPFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"
+LDFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [meta-darwin][PATCH 5/5] gnutls: pass -F for the Apple frameworks on Darwin nativesdk
2026-11-16 20:22 [meta-darwin][PATCH 1/5] file: disable lzlib ecordonnier
` (2 preceding siblings ...)
2026-11-16 20:22 ` [meta-darwin][PATCH 4/5] curl: pass -F for the Apple frameworks on Darwin nativesdk ecordonnier
@ 2026-11-16 20:22 ` ecordonnier
3 siblings, 0 replies; 5+ messages in thread
From: ecordonnier @ 2026-11-16 20:22 UTC (permalink / raw)
To: yocto-patches; +Cc: Etienne Cordonnier
From: Etienne Cordonnier <ecordonnier@snap.com>
lib/system/certs.c uses the Security and CoreFoundation frameworks, which are
in the SDK runtime tree but need -F.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
recipes-support/gnutls/gnutls_%.bbappend | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 recipes-support/gnutls/gnutls_%.bbappend
diff --git a/recipes-support/gnutls/gnutls_%.bbappend b/recipes-support/gnutls/gnutls_%.bbappend
new file mode 100644
index 0000000..4b1ad1a
--- /dev/null
+++ b/recipes-support/gnutls/gnutls_%.bbappend
@@ -0,0 +1,5 @@
+# gnutls (lib/system/certs.c) uses the Security/CoreFoundation frameworks.
+# They are in the SDK runtime tree but need -F, which nothing adds by default.
+OSXSDK:class-nativesdk:darwin21 = "${STAGING_DIR_TARGET}${SDKPATHNATIVE}/runtime"
+CPPFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"
+LDFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-16 20:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 20:22 [meta-darwin][PATCH 1/5] file: disable lzlib ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 2/5] darwin-common: disable debuginfod ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 3/5] libgpg-error: install lock-obj-pub header for the darwin21 triplet ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 4/5] curl: pass -F for the Apple frameworks on Darwin nativesdk ecordonnier
2026-11-16 20:22 ` [meta-darwin][PATCH 5/5] gnutls: " ecordonnier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.