file: disable lzlib
PATCH 1/5 file: disable lzlib
From: Etienne Cordonnier <[email protected]>
--- recipes-devtools/file/file_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 recipes-devtools/file/file_%.bbappend
recipes-devtools/file/file_%.bbappend new file +5 -0
@@ -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"
Signature · 1 line
2.43.0
PATCH 2/5 darwin-common: disable debuginfod
From: Etienne Cordonnier <[email protected]>
debuginfod needs elfutils, which doesn't compile for darwin at the moment.
--- conf/machine-sdk/darwin-common.inc | 6 ++++++ 1 file changed, 6 insertions(+)
conf/machine-sdk/darwin-common.inc +6 -0
@@ -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)}"
Signature · 1 line
2.43.0
PATCH 3/5 libgpg-error: install lock-obj-pub header for the darwin21 triplet
In reply to [email protected]From: Etienne Cordonnier <[email protected]>
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.
--- recipes-support/libgpg-error/libgpg-error_%.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-support/libgpg-error/libgpg-error_%.bbappend
recipes-support/libgpg-error/libgpg-error_%.bbappend new file +8 -0
@@ -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 +}
Signature · 1 line
2.43.0
PATCH 4/5 curl: pass -F for the Apple frameworks on Darwin nativesdk
In reply to [email protected]From: Etienne Cordonnier <[email protected]>
lib/macos.c uses the SystemConfiguration and CoreFoundation frameworks, which are in the SDK runtime tree but need -F.
--- recipes-support/curl/curl_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 recipes-support/curl/curl_%.bbappend
recipes-support/curl/curl_%.bbappend new file +5 -0
@@ -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"
Signature · 1 line
2.43.0
PATCH 5/5 gnutls: pass -F for the Apple frameworks on Darwin nativesdk
In reply to [email protected]From: Etienne Cordonnier <[email protected]>
lib/system/certs.c uses the Security and CoreFoundation frameworks, which are in the SDK runtime tree but need -F.
--- recipes-support/gnutls/gnutls_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 recipes-support/gnutls/gnutls_%.bbappend
recipes-support/gnutls/gnutls_%.bbappend new file +5 -0
@@ -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"
Signature · 1 line
2.43.0