From patchwork Wed Oct 14 14:10:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCE6DCC6B1A for ; Wed, 14 Oct 2026 14:12:32 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14763.1791987143352147844 for ; Wed, 14 Oct 2026 07:12:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=eLx19VlH; spf=pass (domain: snapchat.com, ip: 209.85.128.54, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a180fbeef5so38072575e9.1 for ; Wed, 14 Oct 2026 07:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987141; x=1792591941; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Gq++ZxTkOerj6T+MnmkCNW2urA31JUWWKfFwVpv8xPI=; b=eLx19VlHVQuIswHsAhYOA8hUr7fFRgmJge3szv6EF2sH5g1tR+63aIv1mE2lcvi4Mp LrJ6R7DkIgMExNW54vcuqhfXFdKsfNt9T8Tdn50r8wDQbpzeM2s49wExJs1xC4tzG/Tx v69irOIaFkQGLzARb53RWFN/ry89Jdwv6g7S0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987141; x=1792591941; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Gq++ZxTkOerj6T+MnmkCNW2urA31JUWWKfFwVpv8xPI=; b=pdZzqPJEHWTyY6AMANGMU0XQlRe1n9Gmq7x2pmNZhUrYkFnryavDNDWfwWGLx8ydGV b3i7xqpAKo0FlH73jfQDCpY7fZyGGwNWugXcEEyyzJaMh3QX/vB+/hiUJzkqSiWsS/wE 2ap2UkcJ1+7jzy3NUIL/0pKNQtJ/yG0PGyZe92s53gSeivssuc47jShdjKTGWQ8g+Ccz pr4Vt/R1AAEaUaTaQCDMYW+AWVnjImxuskv8poG7e/gXs5pVuN1azbqO/70tYX1uRQQR pUxWI7uFyO3O9hqIT2cH2Hz9OGVz63eWpb3OwnQvkd7mW/YsrjljzpJDiMZLxSYw8Wqt ZDyw== X-Gm-Message-State: AFq9FYJiwIl2VbtkhMkMx+vULoWmPGjnUGTZEfGvlI/wtHoUGg4pdNEk UxSmII4cJFOuB8rGeRJnEYLUrfG+DqZx/jIexNbUdxBNvSGpZvae9dklj6XM05crbZgRrhy3EtW 6V39KQBc= X-Gm-Gg: AYBFou0U9SXWM1WQmg7ZsIbvTRp2bJSicZec4BMx4mAUwmzKkOlmKY+MjLrDHiIVc1B Cl8nxv8Ezs7I9bFPfPFmwVIBXVQRl8jCPN9Rllq60sL7Qiao93dJolMhaOrRVBRh3eiflf+n/z+ ywtmsB4PjowWjbjMKvJrNJmjMs6Q9+MypggjRaZDG3gurFlKs2P70uybISf0Ggr5dFFs8hjkBFv qJHnydSzDz+DHONArR8xx1w7AIujh3dn4rC5DasSeldIOTYOJH0cdkueFLKV2XcyCcSKGOXA60w caXGfGwVLXrbby7gPE0JQcLHHR7tC2kDUfafPkpQfr6B/8fdv93deVHHrobdse7d8yjSqeZqI84 j6+gPbDkZMM5NYoLPVIG+Cc26xZl2drHQgjoNTeoiROAJzw66xH+nfeVtoOQz5Noc+yIVFFM7y/ GAq8XiMjp2b8YKutAIjglA9/vPhxNIa/a/gMsQ8iiGL07pODQFdSV/4o64g3DJiPHjfSkD06qX3 iyM+6r3aOBCCz0jbzpwTQ1eSJ42mRxR+BaTlJTY5w== X-Received: by 2002:a05:600c:3f0c:b0:4a1:85d9:13be with SMTP id 5b1f17b1804b1-4a18e498471mr342128435e9.20.1791987141246; Wed, 14 Oct 2026 07:12:21 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:20 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 01/21] meta-darwin: bump layer series to wrynose (6.0.3) Date: Wed, 14 Oct 2026 16:10:22 +0200 Message-ID: <20261014141209.488034-1-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:32 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5006 From: Etienne Cordonnier AI-Generated: Composer 2.5 Signed-off-by: Etienne Cordonnier --- README | 4 ++-- conf/layer.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README b/README index e04aa6e..ef2fec0 100644 --- a/README +++ b/README @@ -12,11 +12,11 @@ This layer depends on: URI: git://git.openembedded.org/openembedded-core layers: meta - branch: scarthgap + branch: wrynose URI: https://github.com/kraj/meta-clang.git layers: meta-clang - branch: scarthgap + branch: wrynose Layer Maintainers: Richard Purdie Dominik Schnitzer diff --git a/conf/layer.conf b/conf/layer.conf index 6730f3b..1c00994 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -1,7 +1,7 @@ # We have a conf and classes directory, add to BBPATH BBPATH := "${BBPATH}:${LAYERDIR}" -LAYERSERIES_COMPAT_meta-darwin = "scarthgap" +LAYERSERIES_COMPAT_meta-darwin = "wrynose" # We have a packages directory, add to BBFILES BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" From patchwork Wed Oct 14 14:10:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 740D0CC6B2C for ; Wed, 14 Oct 2026 14:12:33 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14667.1791987149217321856 for ; Wed, 14 Oct 2026 07:12:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=OASKb/zC; spf=pass (domain: snapchat.com, ip: 209.85.128.51, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4a0213948d3so25730085e9.2 for ; Wed, 14 Oct 2026 07:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987147; x=1792591947; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KXcc+l5ZSuy9bhSFre0Ay7LNkABotU66BOYmRsU5fnM=; b=OASKb/zC758q6tAXesmVyMCaymgyQUux7Ax7+gqYwL8nY0U4vTyfdsDt8FQGNWmUgt vkR33a+zLkXCMV8izooraI8LnAFT6fV4mJc6Ohu5zAy2XYh/nTOc20qyawgva9tlaVB3 u3g63pLYMbb7P53e97JPAV90gcWEkeUj7RBuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987147; x=1792591947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=KXcc+l5ZSuy9bhSFre0Ay7LNkABotU66BOYmRsU5fnM=; b=pAwBVknFRUvJhDAmMCL3vjQJUpR8uYoMik6M3ls57Q3wiG9a+8fxtdVF1cJE/71Cq/ xqoGwyxDGGcgYTUzTk6TnTq9ji5U4PeyLbU6G7MN+H1SEyEw1xljfxiBwH57xhSq1em2 eIVaHUN+oB2BzG0yNK6ts5wTc2S/gwVyZCd3AS/SCYL05zOV0JE92aIAz3yLpJ2W3YeV i6pvpPt/aA6NADGF7rungLylzx/SFS2aHtpnL3erFvmlMco6IcXPoeBvld2MsQkudKAQ Oh+VGdHC7PF/80ZTkDY2kfcU8dTh1QfIIW+nqcxH9RMbmuocJ4PHngIFlbMp2xC38y1v 5NJA== X-Gm-Message-State: AFq9FYLS8Y0jqWauvw61+Mzd1+vB3Fpt+NF8rlt1IHePHk2R+CzLb8rR CEaqHGodww4CxgCKB7urJTqJpY7lA0f4PaOVi8GAq979V+lhmp2kh8BzNLvv47rZXak6yEOxgTC ooPGmhVI= X-Gm-Gg: AYBFou12C/4ke/9EBEU1X7Me5etHKuAgWSFCiU+u/r7/o1QbnlfxM9yQ4z7ig8rE37P NyDVFEcxsWBAxSYw35qNTjk+GZc1DnPRGoO7KHGIcf4Rgwqdmz0zNWPxMHWNtiTd83AS8bbOE+9 NVUBo9Cd7PJN7xDz046OHHgEx3xq74XTfo96DrondPdfL1cQ0DNt/EQpEFsxJnm8bB40MbaO6Ce imqbJSDjlejRWmysG12sMh9WW24uJ9I5O0PQAhmu5WiHnKODPGR3iDtDdwqfytbJwFSNJYDGncj XGR3tgN+rDQMZugWfN6nuC7nZg4ig2o3jZedZioc4c5xe61xes4Q8pkBLiBXRhpXSWZHnEP8/uB pv4ptPUtPjxSJmOOB6k18L9Vmn0MfFECzh7kHllFtggj92bg9OJqfa1Tn8lxmGgdGX7L2o5l36e 4T2D6IUHT2F2In46Ga5uWl+mcZh0szZ4Jn9YeKqxdG/NWf4pu+FbAG2rjbTFI1vAsM1iouawHc6 pRrKBmg0/1fgsYBLl8iH4ZovVNBdijugVGiz5ld8w== X-Received: by 2002:a05:600c:548c:b0:4a1:a7f8:c11f with SMTP id 5b1f17b1804b1-4a1a7f8c1cfmr122930235e9.9.1791987147330; Wed, 14 Oct 2026 07:12:27 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:26 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 03/21] clang: regenerate Darwin SDK fixes patch for the wrynose base Date: Wed, 14 Oct 2026 16:10:24 +0200 Message-ID: <20261014141209.488034-3-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5007 From: Etienne Cordonnier Rebase 0037-Fixes_for_Darwin_SDKs.patch onto the new llvm-project source tree pulled in by the wrynose layer bump. AI-Generated: Composer 2.5 Signed-off-by: Etienne Cordonnier --- .../clang/0037-Fixes_for_Darwin_SDKs.patch | 135 +++++++++--------- 1 file changed, 70 insertions(+), 65 deletions(-) diff --git a/recipes-devtools/clang/clang/0037-Fixes_for_Darwin_SDKs.patch b/recipes-devtools/clang/clang/0037-Fixes_for_Darwin_SDKs.patch index ba2bf9c..c1b551a 100644 --- a/recipes-devtools/clang/clang/0037-Fixes_for_Darwin_SDKs.patch +++ b/recipes-devtools/clang/clang/0037-Fixes_for_Darwin_SDKs.patch @@ -1,83 +1,88 @@ -From cb9b87097803b4444ec9aa52b5054ba88e4da01e Mon Sep 17 00:00:00 2001 -From: Dominik Schnitzer -Date: Wed, 27 Apr 2022 11:22:17 +0000 +From a9dce54a18db2f12c6964edf649872ac3b50889a Mon Sep 17 00:00:00 2001 +From: Etienne Cordonnier +Date: Fri, 16 Jan 2026 16:11:28 +0100 Subject: [PATCH] Fixes for Darwin SDKs Upstream-Status: Inappropriate [OE specific] Signed-off-by: Dominik Schnitzer -Index: llvm-project-18.1.5.src/clang/lib/Driver/ToolChains/Darwin.cpp -=================================================================== ---- llvm-project-18.1.5.src.orig/clang/lib/Driver/ToolChains/Darwin.cpp -+++ llvm-project-18.1.5.src/clang/lib/Driver/ToolChains/Darwin.cpp -@@ -2583,12 +2583,19 @@ void DarwinClang::AddClangCXXStdlibInclu - case llvm::Triple::x86: - case llvm::Triple::x86_64: - IsBaseFound = AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, -- "4.2.1", -- "i686-apple-darwin10", -- arch == llvm::Triple::x86_64 ? "x86_64" : ""); -+ "13.4.0", -+ "x86_64#SDK_VENDOR#-darwin21", -+ ""); - IsBaseFound |= AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, -- "4.0.0", "i686-apple-darwin8", -- ""); -+ "13.4.0", "", ""); -+ { -+ const char *S = ::getenv("YOCTO_SDKPATH"); -+ if (S && (S[0] != '\0')) { -+ llvm::SmallString<128> Runtime; -+ llvm::sys::path::append(Runtime, S); -+ addSystemInclude(DriverArgs, CC1Args, Runtime); -+ } -+ } - break; +--- + clang/lib/Driver/ToolChains/Darwin.cpp | 28 +++++++++++++++++++++----- + llvm/cmake/modules/AddLLVM.cmake | 1 - + llvm/cmake/modules/CrossCompile.cmake | 2 +- + 3 files changed, 24 insertions(+), 7 deletions(-) + +diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp +index 234683f2f..9aa9e1036 100644 +--- a/clang/lib/Driver/ToolChains/Darwin.cpp ++++ b/clang/lib/Driver/ToolChains/Darwin.cpp +@@ -2808,10 +2808,18 @@ void DarwinClang::AddGnuCPlusPlusIncludePaths( + case llvm::Triple::x86: + case llvm::Triple::x86_64: + IsBaseFound = AddGnuCPlusPlusIncludePaths( +- DriverArgs, CC1Args, UsrIncludeCxx, "4.2.1", "i686-apple-darwin10", +- arch == llvm::Triple::x86_64 ? "x86_64" : ""); ++ DriverArgs, CC1Args, UsrIncludeCxx, "15.3.0", "x86_64#SDK_VENDOR#-darwin21", ++ ""); + IsBaseFound |= AddGnuCPlusPlusIncludePaths( +- DriverArgs, CC1Args, UsrIncludeCxx, "4.0.0", "i686-apple-darwin8", ""); ++ DriverArgs, CC1Args, UsrIncludeCxx, "15.3.0", "", ""); ++ { ++ const char *S = ::getenv("YOCTO_SDKPATH"); ++ if (S && (S[0] != '\0')) { ++ llvm::SmallString<128> Runtime; ++ llvm::sys::path::append(Runtime, S); ++ addSystemInclude(DriverArgs, CC1Args, Runtime); ++ } ++ } + break; - case llvm::Triple::arm: -@@ -2605,9 +2612,19 @@ + case llvm::Triple::arm: +@@ -2826,8 +2834,18 @@ void DarwinClang::AddGnuCPlusPlusIncludePaths( - case llvm::Triple::aarch64: - IsBaseFound = AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, -- "4.2.1", -- "arm64-apple-darwin10", -+ "13.4.0", -+ "aarch64#SDK_VENDOR#-darwin21", - ""); -+ IsBaseFound |= AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, -+ "13.4.0", "", ""); -+ { -+ const char *S = ::getenv("YOCTO_SDKPATH"); -+ if (S && (S[0] != '\0')) { -+ llvm::SmallString<128> Runtime; -+ llvm::sys::path::append(Runtime, S); -+ addSystemInclude(DriverArgs, CC1Args, Runtime); -+ } -+ } - break; - } + case llvm::Triple::aarch64: + IsBaseFound = +- AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, "4.2.1", +- "arm64-apple-darwin10", ""); ++ AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, "15.3.0", ++ "aarch64#SDK_VENDOR#-darwin21", ""); ++ IsBaseFound |= ++ AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx, "15.3.0", "", ""); ++ { ++ const char *S = ::getenv("YOCTO_SDKPATH"); ++ if (S && (S[0] != '\0')) { ++ llvm::SmallString<128> Runtime; ++ llvm::sys::path::append(Runtime, S); ++ addSystemInclude(DriverArgs, CC1Args, Runtime); ++ } ++ } + break; + } -Index: llvm-project-18.1.5.src/llvm/cmake/modules/AddLLVM.cmake -=================================================================== ---- llvm-project-18.1.5.src.orig/llvm/cmake/modules/AddLLVM.cmake -+++ llvm-project-18.1.5.src/llvm/cmake/modules/AddLLVM.cmake -@@ -2368,7 +2368,6 @@ function(llvm_setup_rpath name) +diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake +index 1d184b8d6..bb8e34a66 100644 +--- a/llvm/cmake/modules/AddLLVM.cmake ++++ b/llvm/cmake/modules/AddLLVM.cmake +@@ -2549,7 +2549,6 @@ function(llvm_setup_rpath name) endif() if (APPLE) - set(_install_name_dir INSTALL_NAME_DIR "@rpath") set(_install_rpath "@loader_path/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir}) - elseif(${CMAKE_SYSTEM_NAME} MATCHES "AIX" AND BUILD_SHARED_LIBS) + elseif("${CMAKE_SYSTEM_NAME}" MATCHES "AIX" AND BUILD_SHARED_LIBS) # $ORIGIN is not interpreted at link time by aix ld. -Index: llvm-project-18.1.5.src/llvm/cmake/modules/CrossCompile.cmake -=================================================================== ---- llvm-project-18.1.5.src.orig/llvm/cmake/modules/CrossCompile.cmake -+++ llvm-project-18.1.5.src/llvm/cmake/modules/CrossCompile.cmake -@@ -72,7 +72,7 @@ function(llvm_create_cross_target projec +diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake +index 2a69c5133..a6578a763 100644 +--- a/llvm/cmake/modules/CrossCompile.cmake ++++ b/llvm/cmake/modules/CrossCompile.cmake +@@ -82,7 +82,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) endif() add_custom_command(OUTPUT ${${project_name}_${target_name}_BUILD}/CMakeCache.txt - COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" + COMMAND ${CMAKE_COMMAND} -E env --unset=LDFLAGS --unset=CFLAGS --unset=CXXFLAGS --unset=CC --unset=LD --unset=CXX ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" - -DCMAKE_MAKE_PROGRAM="${CMAKE_MAKE_PROGRAM}" - -DCMAKE_C_COMPILER_LAUNCHER="${CMAKE_C_COMPILER_LAUNCHER}" - -DCMAKE_CXX_COMPILER_LAUNCHER="${CMAKE_CXX_COMPILER_LAUNCHER}" + "-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}" + "-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER}" + "-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}" +-- +2.43.0 + From patchwork Wed Oct 14 14:10:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD1FDCC6B2A for ; Wed, 14 Oct 2026 14:12:32 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14668.1791987150420807605 for ; Wed, 14 Oct 2026 07:12:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=V9UVJLwu; spf=pass (domain: snapchat.com, ip: 209.85.221.54, mailfrom: ecordonnier@snapchat.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-48c45111bebso2570801f8f.0 for ; Wed, 14 Oct 2026 07:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987148; x=1792591948; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hvxa7TQz62dHobAm0nrVApA/uBl/bdWPYfchBOwW+C8=; b=V9UVJLwuxdgpN2QGcupuyVdTqs4yO7y0ON2CJ/W4QZVMjSwkOCKxI5gT7niBcebzdE UeGwbWWZTV8Ba5BIHqsQnVkIjHfgM+OhDvdnQwfWVNtlbv/nGUI/joDPkH5H05RGnzYT M6XnDnRnMk/VZTjx+Cl/pFCCsUWuCmqSnoa+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987148; x=1792591948; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hvxa7TQz62dHobAm0nrVApA/uBl/bdWPYfchBOwW+C8=; b=DPCz3J+rSU2cOtOJNGcCEWKbSb6pQr7mgeGViMCUXBIkJfdcebGl0qcayd5TddkMnd VmAacRLEzLQx7yHLgYkUYbX3pZlUY1DeZ5RwNdbeo+canj/exUr73cHGwJc9xO7wtzCo M/cxW7jJsYb9GYPdInJ1CS1brd94fd1qGKDzoPAVsoXFVq5wXrsyQ1UpMUOJJnkJw4ow 1ezg606xcxfPMKkHQJXpz0RCCdCD6l28AoGvKscXZXDQpmTHQ7kFsCpt2IdoyJS9EAlk JphaxlVdXCpccowimTp2KzpnjvzKBe3yhk0SjL3jNu9URkKwQsHXbVxfjnxZAbi7sHa1 kgHQ== X-Gm-Message-State: AFq9FYIH+0hQ/FCo7Wizr5SJArPPNpRzzD+IEmYBkGL6ts3LKtC8+iLp qcXs8J0PtuqsymZj8FOHugQ/GLh6yh+zam2R93KWMCO4aNxYYai7VNsvrijpSlMrMukq811fECU mSZZJ0do= X-Gm-Gg: AYBFou1RwbP0VCb9X0gYVjdN6Cg38Jj3coWUcZZob5asOf5aiMx0pXLm+ne7rc41fvc 0AlZm1+FS7qbSzcXFJDExdRHu/HWeDaXfbPPJBFs0pVitxQ5Whukd04jyFj9UGD58quELcuhAnW a9xfvOZg5rXzNwvxmOt0ZA3RsbODmHAW5HtLDN3y24+u/QpMBOTjSTVMbpGxwyQtrlAFqhAZP2K 9WpcFUx86h0zOtwcm5bApOA6Ti3KpmPqVg+3crvDjmWwMPx/fGPLl0LwXdRjgxbySJLjJJXF8lQ 1tKfGnGtuwzZik/2p0Rlbx3Qcvyvbv9tIIoxyGSarpEwZvhmtFJLQ4tInmPrA7br/s5uz6gw0R/ tp+Jm6DyJKqTmiylZLVXSBzkTq7nNjze4mTShLL9yDs6UItYFA7kM6lvJqGHlelyH+g503yB8Xc /1ALQhY/nj3va/sbAaiDApbTzGHC8MkzKh4W2JjUnFinm32mV0S7ZtGE+7WwuuXX7MBMzTFIYUe JS6OAqGhQV49qH4WCLh2tqsDbmhl0qjmlmoBoH1pQ== X-Received: by 2002:a05:600c:8b70:b0:49f:e701:51c8 with SMTP id 5b1f17b1804b1-4a18e4a01acmr331108465e9.9.1791987148264; Wed, 14 Oct 2026 07:12:28 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:27 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 04/21] automake: drop obsolete Darwin bbappend Date: Wed, 14 Oct 2026 16:10:25 +0200 Message-ID: <20261014141209.488034-4-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:32 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5008 From: Etienne Cordonnier OE-core dropped the equivalent 0001-Drop-ar-u-argument.patch upstream (ar no longer takes crD there), making our own copy of the same fix redundant. AI-Generated: Composer 2.5 Signed-off-by: Etienne Cordonnier --- .../automake/0001-Remove-ar-D-argument.patch | 30 ------------------- recipes-devtools/automake/automake_%.bbappend | 5 ---- 2 files changed, 35 deletions(-) delete mode 100644 recipes-devtools/automake/automake/0001-Remove-ar-D-argument.patch delete mode 100644 recipes-devtools/automake/automake_%.bbappend diff --git a/recipes-devtools/automake/automake/0001-Remove-ar-D-argument.patch b/recipes-devtools/automake/automake/0001-Remove-ar-D-argument.patch deleted file mode 100644 index 6e27448..0000000 --- a/recipes-devtools/automake/automake/0001-Remove-ar-D-argument.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 862a7ca3269b54a595051454c6fbb3c45688d929 Mon Sep 17 00:00:00 2001 -From: Etienne Cordonnier -Date: Sat, 8 Jun 2024 22:39:08 +0200 -Subject: [PATCH] Remove ar 'D' argument - -Poky patch "automake/0001-Drop-ar-u-argument.patch" adds the argument 'D' (deterministic mode), -however this option does not exist on MacOS. - -Upstream-Status: Inappropriate [OE specific] -Signed-off-by: Etienne Cordonnier ---- - bin/automake.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/bin/automake.in b/bin/automake.in -index dbcf47c..0f2b84b 100644 ---- a/bin/automake.in -+++ b/bin/automake.in -@@ -2678,7 +2678,7 @@ sub handle_libraries () - } - - define_variable ('AR', 'ar', INTERNAL); -- define_variable ('ARFLAGS', 'crD', INTERNAL); -+ define_variable ('ARFLAGS', 'cr', INTERNAL); - define_verbose_tagvar ('AR'); - - foreach my $pair (@liblist) --- -2.34.1 - diff --git a/recipes-devtools/automake/automake_%.bbappend b/recipes-devtools/automake/automake_%.bbappend deleted file mode 100644 index 4820dd9..0000000 --- a/recipes-devtools/automake/automake_%.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" - -SRC_URI:append = " \ - file://0001-Remove-ar-D-argument.patch \ - " From patchwork Wed Oct 14 14:10:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100672 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E3ECC6B1D for ; Wed, 14 Oct 2026 14:12:33 +0000 (UTC) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14764.1791987151273144159 for ; Wed, 14 Oct 2026 07:12:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=dVFuMOQN; spf=pass (domain: snapchat.com, ip: 209.85.128.49, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4a16bc2278aso30030995e9.1 for ; Wed, 14 Oct 2026 07:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987149; x=1792591949; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=m8dRK9O/nqxRypKTiO//AuAnbPFMDe/00xj5Y0MmGkE=; b=dVFuMOQNy9v9oVSuklw/12+hMfNrOoOgxHIAeBlaKyWag3zgSqvCFjzTxJ2FqmCSwr zXMh6wCj7UCXd/qf3I6qama1cHO5xdoIWIgjm5DHkgGSoPSoRv49ZzqkMURMRAAWyZvl a7ljvpmsWKtcb+OtKRPlaICRnLv3hdOr1RYyc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987149; x=1792591949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=m8dRK9O/nqxRypKTiO//AuAnbPFMDe/00xj5Y0MmGkE=; b=PnRmxiZFze2Iw4U1p45gWQbCzzNHPKCjVu9xeF7RrDoIdo+DmCPn3cZGMH+kTyRHeE MZgGbvcibGlmE8bwAC+VLsdr5E02za0VOaGJUPiPvy48FsWjR9l0kr9wpiqdkJPS/CmD Av1UYwywsJUtVZUqjTao0UhQUTHPcn2t0xoVAkpgR2Vz9MuzmNPR7M1+L/xbYDttYxmk aMOPvFFT6ELBhNK+bxHwOy1zWyKu+BL71lHFunvgZP9Li6HTPKv9YFNnV0l/OsvEEjsP xmb7qCXyDsaXMWXrqN+dgpZdMFrjwnEcku2Z0Ptmj3EEsU0/UKKDwBzP63lKRk4/979A /1AQ== X-Gm-Message-State: AFq9FYL3AXVHCGY3SpASY/KKRDPHg+HCLnj3SBufxL+ACVojzGKujO5H t8thaNCCi0QD+AoSan6lQfEyf8pG1VG5gX3lmA7XeripyJg9oml9qMMDtk4xutvp0zAcItDu5zv hbIUWdZY= X-Gm-Gg: AYBFou1XC8qxdv8DWQfLMzY4yGUw072FP+daa3OIFkWh1aOm7O3B9LJo1jpK6jgQUzi tpMxg2MVpNQy7+wX9AwGAicKXMR4DS0m5MzbO17KsKVKEg8qNhV6c3cXaUkzZ5DxPLN7Z/oAbY/ wF3Ku3gQE4pQQ8/bQ2LwBg34a19UXvsdEwO9CfNRUWE93h66dfZl6iCQQESQyqGn1bekR+Y1kHB xK5bm/G/gQ9cUeE0R18m6e8RIYthLkft5MjRSjFS7MrjJJ/aLVHfmZEKfDm4VFLwFvGtAoydWMr sJKxs4v3hBf0CUU1J9hwCz37awOYwCwyGzFOPNtTWtub5DWtjOkveM2WbYfmvHRWuJ9YloZtRCS mLq98GtmwoI9+76Bg3bE38xoIHEXm/3XlxUQJYC8MaB4xIauNxCFFELFF+SarDS5Z+K2hKVhey7 IwXxQzsAvcbheP0dGlaUQSZht8W0s43adzniJEmQtG/hats7kXhwbJsWANoKOD8JtVwZficsNRe VbiPWK7VzR1/wcwfgLIxQN3msawKU+/kCWGHDTY/Q== X-Received: by 2002:a05:600c:6990:b0:4a0:1ea1:477a with SMTP id 5b1f17b1804b1-4a18e4d8bbamr279532175e9.27.1791987149483; Wed, 14 Oct 2026 07:12:29 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:28 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 05/21] zstd: rebase LC_RPATH patch for upstream's new zstdmt guard, scope to darwin21 Date: Wed, 14 Oct 2026 16:10:26 +0200 Message-ID: <20261014141209.488034-5-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5009 From: Etienne Cordonnier Upstream zstd 1.5.7 inserted a new "if ... zstdmt ... exit 1; fi" safety check into the libzstd-nomt target, shifting hunk #2's context enough that it no longer applies (hunk #1 already applied with a 6-line offset, a symptom of the same drift). The underlying duplicate -LDFLAGS bug this patch fixes is unchanged in 1.5.7 (the same "$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS)" line is still there verbatim), so rebase rather than drop it. Also scope SRC_URI:append from class-nativesdk to darwin21: LC_RPATH is a Mach-O/macOS linker concept, and class-nativesdk also covers other SDK hosts (e.g. mingw32) where this patch has no business being applied at all. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- .../zstd/0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch | 8 ++++---- recipes-extended/zstd/zstd_%.bbappend | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/recipes-extended/zstd/zstd/0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch b/recipes-extended/zstd/zstd/0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch index b765082..5b6d675 100644 --- a/recipes-extended/zstd/zstd/0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch +++ b/recipes-extended/zstd/zstd/0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch @@ -34,10 +34,10 @@ index a4cf61ab..e1ffba91 100644 @echo creating versioned links ln -sf $@ libzstd.$(SHARED_EXT_MAJOR) ln -sf $@ libzstd.$(SHARED_EXT) -@@ -236,7 +236,7 @@ libzstd-nomt: LDFLAGS += -shared - libzstd-nomt: $(ZSTD_NOMT_FILES) - @echo compiling single-thread dynamic library $(LIBVER) - @echo files : $(ZSTD_NOMT_FILES) +@@ -255,7 +255,7 @@ libzstd-nomt: $(ZSTD_NOMT_FILES) + echo "Error: Found zstdmt in list."; \ + exit 1; \ + fi - $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@ + $(CC) $(FLAGS) $^ $(SONAME_FLAGS) -o $@ diff --git a/recipes-extended/zstd/zstd_%.bbappend b/recipes-extended/zstd/zstd_%.bbappend index 8572d37..2d6b5d5 100644 --- a/recipes-extended/zstd/zstd_%.bbappend +++ b/recipes-extended/zstd/zstd_%.bbappend @@ -2,4 +2,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" EXTRA_OEMAKE:append:darwin21 = " UNAME='Darwin'" -SRC_URI:append:class-nativesdk = " file://0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch" +# LC_RPATH is a Mach-O/macOS linker concept; class-nativesdk also covers +# other SDK hosts (e.g. mingw32), where this patch doesn't apply. Scope to +# darwin21 like EXTRA_OEMAKE above. +SRC_URI:append:darwin21 = " file://0001-Fix-duplicate-LC_RPATH-error-on-MacOS.patch" From patchwork Wed Oct 14 14:10:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96670CC6B2D for ; Wed, 14 Oct 2026 14:12:33 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14671.1791987152500044137 for ; Wed, 14 Oct 2026 07:12:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=LWOBMTu2; spf=pass (domain: snapchat.com, ip: 209.85.128.53, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4a1880e1bf1so9352025e9.1 for ; Wed, 14 Oct 2026 07:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987151; x=1792591951; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ppozSKgOMH6aUP/vwDUiPR92XKcVpGL3FXSjVIyHBKc=; b=LWOBMTu2ORtStM3slk0JlBsGcLbGDyyvhyx7r+0H+MzkNig/Zy+eyz8+Qy2oE7h3eO BIv0URUCtzTsW/V50Dj1mxeZn7uEKm9bSAqtdkeGLYjS1nX3tKIcM1SWWiQpX9t7FZmU kNIJ6pgt4FpzFizfcgCp4DM2LjXo5iPlyBtbM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987151; x=1792591951; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ppozSKgOMH6aUP/vwDUiPR92XKcVpGL3FXSjVIyHBKc=; b=134mNG5y7ejMHVht6qGmIDWKFtpKN5sCAE+u5TZQvcVahs5ciKcxl8yMOEV8pJKL1B TBcxckKNYZ0MVKyAw+AoC5N24BfOd1ACIVMPUmrfzTFl3uDzHjV9uLBdKwXpM7kg8F07 uUBOgZzHJ1IBbQwbjl3+O6FJmafAqj21qQ2itZOHhhSz0PL5MebxLfpk1ItNKUIfiOeq 3Qo4B00NZ+QUiSLm1tUmR9BwPUZgIGawWGcip/bg0NhvRTr1dH/Y1UgvxGnW2k6WiNAX /7SR1daS6xr5xex6bci1It5+MZ/Mfgz1zfnIM+pnvVbCKpMrqrvFUOrrySZlHAzamZSY E2FQ== X-Gm-Message-State: AFq9FYK5cjvYgfm+SEjqxnUVedWvZm3Q+1xdl/48Hy/n7poRhEFGMigM NOOKCE1+LMAwTj/OGjc/VAr3B3e9Wvd7rrkdoDGrq+6xxvMHBKgdVexDFffuOdOrce4Pl26VNzk 3hPL+UvA= X-Gm-Gg: AYBFou0dWiVdb/lpg8g5stEGy/DhOBF9ZJ8eBvFA1Tug7ezfakFpKUHSwK83bR5JtMF pLZY0S3vUr8511E3t0nGsyZYkdI7NscZaB844rgOCMBvowt3zfhuitnimWRhxf1yCRzgtrhOibz DddYik016kEoVwYrpAD7I4ZdXKluWdCzkxUczEMAtPqhetL3RgKXo8/sk8kMP7DBpLyS65vynnG 2dp0DePAwwXNYbRDem4e8lFvGzh0HIf9uk3HhVYphU0oAhQjvFGfBCslPl6dTbQJMxbM2qUbpoG 1RFHLVfLfkwFjkyuce21hYC/YyP7ZkKmr4K/bzZ+QoE0rp6c0LxknokOXKEE/3TfoAWKSg1HC8x YC/rRtg1CL7bqYko8VMnpHGWUbIBcW0wTQv0KLz0v/GsoFs9JSt5QQb/Qmy7R9vF4soHaYML5M0 4AC4JRR8cjdsNHGYkrDctiJdMj7eeDwSbGZzOzlrELpwOZG2rxqJCZNalfUNLTb0XDAD4T66Wb8 dn7m8+ndu+32O670GBrhWbydjOUt4/VxCeRj0pRXQ== X-Received: by 2002:a05:600c:8106:b0:4a0:c02:938c with SMTP id 5b1f17b1804b1-4a18e4d683dmr309873225e9.25.1791987150627; Wed, 14 Oct 2026 07:12:30 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:29 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 06/21] darwin recipes: fix S/WORKDIR/destsuffix breakage from git-fetcher UNPACKDIR relocation Date: Wed, 14 Oct 2026 16:10:27 +0200 Message-ID: <20261014141209.488034-6-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5010 From: Etienne Cordonnier Two related upstream bitbake.conf changes broke several Darwin recipes' S assignments: - The git fetcher's checkout destination moved from ${WORKDIR}/git to ${UNPACKDIR}/${destsuffix or BP}, and oe-core's do_qa_unpack now fatally rejects any S literally containing "${WORKDIR}"/"git" or matching the old default. Drop the now-redundant/forbidden S = "${WORKDIR}/git" assignments (cctools-port-crosssdk, libdispatch-native, libtapi-native, xar, bomutils, hfsprogs, libdmg-hfsplus) and update any LIC_FILES_CHKSUM/CXXFLAGS/B that hardcoded the old path to use ${S}/${UNPACKDIR} instead. Also drop B = "${WORKDIR}/build" overrides exactly duplicating the autotools/cmake class default. - Two recipes' real unpack destination still diverges from the new default (${UNPACKDIR}/${BP}): - nativesdk-osx-runtime explicitly overrode destsuffix to the now-banned literal "git" (and has a subpath, which would otherwise pick a different default destsuffix). Renamed the destsuffix to "osx-sdk" and pointed S there explicitly, and fixed LIC_FILES_CHKSUM's local LICENSE path, which never resolved to WORKDIR either. - libtapi-native has a single git fetch with no subpath/destsuffix override, so its default destsuffix (${BP}) already matches the new S default - no override needed. Fixed S/LIC_FILES_CHKSUM to point at the existing ${BP}-named checkout dir instead of introducing an unnecessary explicit destsuffix. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- .../cctools-port/cctools-port-crosssdk_1010.6.bb | 3 --- recipes-devtools/libdispatch/libdispatch-native_git.bb | 6 +----- recipes-devtools/libtapi/libtapi-native_1300.6.5.bb | 7 +++---- recipes-devtools/osx-runtime/nativesdk-osx-runtime_14.5.bb | 6 +++--- recipes-devtools/xar/xar_git.bb | 5 +---- recipes-support/bomutils/bomutils_git.bb | 5 ++--- recipes-support/hfsprogs/hfsprogs_git.bb | 2 -- recipes-support/libdmg-hfsplus/libdmg-hfsplus_git.bb | 4 +--- 8 files changed, 11 insertions(+), 27 deletions(-) diff --git a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb index 4d2625a..0053585 100644 --- a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb +++ b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb @@ -36,9 +36,6 @@ EXTRA_OECONF:append = " \ --with-libtapi=${STAGING_DIR_NATIVE}/usr \ " -S = "${WORKDIR}/git" -B = "${WORKDIR}/build" - AUTOTOOLS_SCRIPT_PATH = "${S}/cctools" do_configure:prepend() { diff --git a/recipes-devtools/libdispatch/libdispatch-native_git.bb b/recipes-devtools/libdispatch/libdispatch-native_git.bb index 07f3c78..c7dadd0 100644 --- a/recipes-devtools/libdispatch/libdispatch-native_git.bb +++ b/recipes-devtools/libdispatch/libdispatch-native_git.bb @@ -4,7 +4,7 @@ SUMMARY = "Apple Grand Central Dispatch (libdispatch)" HOMEPAGE = "https://github.com/tpoechtrager/apple-libdispatch" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=1cd73afe3fb82e8d5c899b9d926451d0" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=1cd73afe3fb82e8d5c899b9d926451d0" SECTION = "devel" @@ -13,10 +13,6 @@ SRC_URI = "git://github.com/swiftlang/swift-corelibs-libdispatch.git;nobranch=1; inherit cmake native -S = "${WORKDIR}/git" -B = "${WORKDIR}/build" - - DEPENDS += " \ clang-native \ libcxx-native \ diff --git a/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb b/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb index 66fd29d..5442f39 100644 --- a/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb +++ b/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb @@ -6,7 +6,7 @@ TAPI_VERSION = "1300.6.5" SUMMARY = "Apple libtapi for tdb support" HOMEPAGE = "https://github.com/tpoechtrager/apple-libtapi" LICENSE = "NCSA" -LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE.APPLE-LIBTAPI.txt;md5=ecd05d65aa93d096452d196dcd233f1e" +LIC_FILES_CHKSUM = "file://${UNPACKDIR}/${BP}/LICENSE.APPLE-LIBTAPI.txt;md5=ecd05d65aa93d096452d196dcd233f1e" SECTION = "devel" @@ -17,8 +17,7 @@ PACKAGES = "${PN}-dbg ${PN} ${PN}-dev" inherit cmake native -S = "${WORKDIR}/git/src/llvm" -B = "${WORKDIR}/build" +S = "${UNPACKDIR}/${BP}/src/llvm" DEPENDS += " \ clang-native \ @@ -30,7 +29,7 @@ COMPILER_RT:class-native = "-rtlib=libgcc --unwindlib=libgcc" LIBCPLUSPLUS:class-native = "-stdlib=libc++ -lc++abi" CXXFLAGS += " \ - -I${WORKDIR}/git/src/llvm/projects/clang/include \ + -I${S}/projects/clang/include \ -I${B}/projects/clang/include \ " diff --git a/recipes-devtools/osx-runtime/nativesdk-osx-runtime_14.5.bb b/recipes-devtools/osx-runtime/nativesdk-osx-runtime_14.5.bb index a7421cf..06865d8 100644 --- a/recipes-devtools/osx-runtime/nativesdk-osx-runtime_14.5.bb +++ b/recipes-devtools/osx-runtime/nativesdk-osx-runtime_14.5.bb @@ -3,7 +3,7 @@ LICENSE = "Proprietary" COMPATIBLE_HOST = ".*-darwin.*" -OSX_SDK ?= "git://github.com/alexey-lysiuk/macos-sdk.git;nobranch=1;protocol=https;subpath=MacOSX14.5.sdk;destsuffix=git" +OSX_SDK ?= "git://github.com/alexey-lysiuk/macos-sdk.git;nobranch=1;protocol=https;subpath=MacOSX14.5.sdk;destsuffix=osx-sdk" SRCREV = "69ddec41e6224afebd5f19bb24764305ac3e828a" SRC_URI = " \ @@ -12,11 +12,11 @@ SRC_URI = " \ file://LICENSE \ " -LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=03fe683ef28b9ddfe7f658a0f4b3b80e" +LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE;md5=03fe683ef28b9ddfe7f658a0f4b3b80e" PR = "1" -S = "${WORKDIR}/git" +S = "${UNPACKDIR}/osx-sdk" inherit nativesdk diff --git a/recipes-devtools/xar/xar_git.bb b/recipes-devtools/xar/xar_git.bb index 19930b5..9941920 100644 --- a/recipes-devtools/xar/xar_git.bb +++ b/recipes-devtools/xar/xar_git.bb @@ -11,15 +11,12 @@ SRC_URI = " \ inherit autotools pkgconfig -LIC_FILES_CHKSUM = "file://${WORKDIR}/git/xar/LICENSE;md5=64becc7b238f5b2d599c009ab19c2c27" +LIC_FILES_CHKSUM = "file://${S}/xar/LICENSE;md5=64becc7b238f5b2d599c009ab19c2c27" DEPENDS = "libxml2" BBCLASSEXTEND = "native" -S = "${WORKDIR}/git" -B = "${WORKDIR}/build" - do_configure() { ${S}/xar/configure --enable-autogen --prefix=${STAGING_EXECPREFIXDIR} } diff --git a/recipes-support/bomutils/bomutils_git.bb b/recipes-support/bomutils/bomutils_git.bb index 4c76f26..5d29675 100644 --- a/recipes-support/bomutils/bomutils_git.bb +++ b/recipes-support/bomutils/bomutils_git.bb @@ -7,12 +7,11 @@ SRC_URI = " \ git://github.com/elhernes/bomutils.git;branch=master;protocol=https \ " -LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=55d923cdeef7e46b4d6415cb173b345a" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=55d923cdeef7e46b4d6415cb173b345a" BBCLASSEXTEND = "native" -S = "${WORKDIR}/git" -B = "${WORKDIR}/git/build" +B = "${S}/build" do_compile() { make -C ${S} diff --git a/recipes-support/hfsprogs/hfsprogs_git.bb b/recipes-support/hfsprogs/hfsprogs_git.bb index 550888d..5572435 100644 --- a/recipes-support/hfsprogs/hfsprogs_git.bb +++ b/recipes-support/hfsprogs/hfsprogs_git.bb @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://README.md;md5=ea27fd14a7e575753270cc5527d29023" SRCREV = "064b7fece00d069f206fd2d4a9a4493dd2777d9f" SRC_URI = "git://github.com/elhernes/hfsprogs.git;branch=master;protocol=https" -S = "${WORKDIR}/git" - DEPENDS = "openssl libbsd" inherit cmake native diff --git a/recipes-support/libdmg-hfsplus/libdmg-hfsplus_git.bb b/recipes-support/libdmg-hfsplus/libdmg-hfsplus_git.bb index 98ff652..1ee9fff 100644 --- a/recipes-support/libdmg-hfsplus/libdmg-hfsplus_git.bb +++ b/recipes-support/libdmg-hfsplus/libdmg-hfsplus_git.bb @@ -7,9 +7,7 @@ LICENSE = "GPL-3.0-only" SRC_URI = "git://github.com/elhernes/libdmg-hfsplus.git;branch=master;protocol=https" SRCREV = "3c3ce87a7e2f036f771f81147f9e125a2bb207f1" -LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=d32239bcb673463ab874e80d47fae504" - -S = "${WORKDIR}/git" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=d32239bcb673463ab874e80d47fae504" inherit cmake From patchwork Wed Oct 14 14:10:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87A11CC6B1A for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14672.1791987153628209928 for ; Wed, 14 Oct 2026 07:12:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=EO1Dxkkv; spf=pass (domain: snapchat.com, ip: 209.85.128.44, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a0213948d3so25730865e9.2 for ; Wed, 14 Oct 2026 07:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987152; x=1792591952; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=r+Hqw8AXLhClCOz5PmSTsx88ITnL+KobmWm6ONCsFaU=; b=EO1Dxkkv3M3P1YxKLshQQ5dlknTiRA8yCFPK40+6EavBcVOfUZiAKH8mH0FY+PKHqo NnRXrS8QS4zcGlVpvwpeh4afITEouAuN5OkwGqEYKTXn10xpqNUmUuboV2oAejEWVscQ POJ7uVasTHMc14LFZYKBwzsEd41KdGJOAGXW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987152; x=1792591952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=r+Hqw8AXLhClCOz5PmSTsx88ITnL+KobmWm6ONCsFaU=; b=1SR1NF4hOx6irgY8LQsB0XoGXL2JN0MkHnPoxbMBiXL3f7uwAnYxoB+7NaaTYjl6/X bLVcicbAxi2Ef2ad/rmRDbGXTqr+9xgTW5RKVQK5riOCs3ZDR3Ah5vicB/plEV7mKEaD hDuX8gk0HxaQKlYDPFcBnR7vurS2ODZURWSVyoeAum9X4/NZICSCu78xsv0o7jOVL+rE zEEk48kuPdra0qRHmHenErE9B3HVEs4JDvhKzgsX85lzNn6r+nlBdBVRNZtI1cZhwaAp D+qYVTpLmDbxVHnQ16G1rg3gkT2pSc07MBvl13W2ZUOrbSX7r9SOB/PlCN5Uf/NUOHWg NigQ== X-Gm-Message-State: AFq9FYI8ccyx1liZFxjn8cy+bDfrqM/J0D2+5AmsLIN6j43JRtJgc5yp sUcQ+MUmbo6xBDTp4iD0bnR0PANgB+yKtyc52bMAi2WjsWRFpHxIgZ96uPITnqpqlyU+/yO1hKE CMTmLYZs= X-Gm-Gg: AYBFou2PO4YvXBeqjvXEf7c5ifM2CEExvgOqSR5J4sX1TqB00DqPlkTjTDYxTERp36R m3nADauuPwi+T6VCRB8hVUIf1+4qHMAsK+NYKxQdbDJL6X+jhnfKX42NHcPqDP0W+cC7mfQRPnA p4rFsep1zUNscEdy5okIjNCFZZLqj5UGcIiS0qtArI24axol4DFqfTqlRH7oec3tTeC+R85kHp2 y+meKiS6TfHZBoBSuT5nbkHk4BuTZ6Mhn5mNiRKsjHnlDxntdq3hbtz4tBwuAOlw9pSRSFjSirS djCQ9G1QbhJxdjsyFGIdWHIJOW++upkZr9kf0VNkWBPJ4wvHKMo8D892qVzB091ya9IktfY0CuC M4xPwfo8tM9Ub2hIY45evTor18doDPGldFw7B8je/VRnbrhpl8rFSi2qsdpFMZTcSh4MN4JsfzP R5hJmH8Ik79ezo7NmKv/0uChVtUO3VUI53YZDmYddab2wx2uUNBP2Gi6bADSLCcE2qzt2POocrw FN5p7pfoEUJ7l8j0qwICuigsBKg23JPagc7OADbnQ== X-Received: by 2002:a05:600c:3e0a:b0:49e:6050:9fbe with SMTP id 5b1f17b1804b1-4a18e49c52bmr308168835e9.15.1791987151788; Wed, 14 Oct 2026 07:12:31 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:30 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 07/21] cctools-port-crosssdk: fix stale virtual/binutils provider name Date: Wed, 14 Oct 2026 16:10:28 +0200 Message-ID: <20261014141209.488034-7-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5012 From: Etienne Cordonnier Upstream OE-core commit 4ccc3bc826 ("classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)", Jan 2025) renamed the parameterized virtual/${TARGET_PREFIX}binutils and virtual/${SDK_PREFIX}binutils to fixed literals virtual/cross-binutils and virtual/nativesdk-cross-binutils. binutils-crosssdk and gcc-crosssdk.inc were updated upstream to the new name, but cctools-port-crosssdk's own PROVIDES and the darwin-common.inc PREFERRED_PROVIDER override still used the old, now-unmatched name, so cctools-port-crosssdk silently stopped being selected as the binutils/as/ld provider for the darwin crosssdk toolchain (gcc, clang, go). Builds fell back to plain GNU binutils-crosssdk instead, which has no working Mach-O assembler/linker, causing gcc-crosssdk's target-libgcc configure to fail with "as: $original is unset". Confirmed against hawaii/sources/yocto-docs's own migration-5.2.rst, which documents this exact rename. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- conf/machine-sdk/darwin-common.inc | 2 +- recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/machine-sdk/darwin-common.inc b/conf/machine-sdk/darwin-common.inc index 3dec2b4..632c6b0 100644 --- a/conf/machine-sdk/darwin-common.inc +++ b/conf/machine-sdk/darwin-common.inc @@ -5,7 +5,7 @@ SOLIBSDEV:darwin21 = ".dylibbroken" PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc = "nativesdk-osx-runtime" PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial = "nativesdk-osx-runtime" -PREFERRED_PROVIDER_virtual/${SDK_PREFIX}binutils = "cctools-port-crosssdk" +PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils = "cctools-port-crosssdk" PREFERRED_PROVIDER_virtual/nativesdk-libc = "nativesdk-osx-runtime" PREFERRED_PROVIDER_virtual/nativesdk-libintl = "nativesdk-osx-runtime" PREFERRED_PROVIDER_virtual/nativesdk-libiconv = "nativesdk-osx-runtime" diff --git a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb index 0053585..3abeb02 100644 --- a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb +++ b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb @@ -16,7 +16,7 @@ DEPENDS += " \ libdispatch-native \ " -PROVIDES = "virtual/${TARGET_PREFIX}binutils" +PROVIDES = "virtual/nativesdk-cross-binutils" DEPENDS += " \ clang-native \ From patchwork Wed Oct 14 14:10:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100680 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8838CC6B2C for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14673.1791987154384483234 for ; Wed, 14 Oct 2026 07:12:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=SDD2zUDg; spf=pass (domain: snapchat.com, ip: 209.85.128.54, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a018792ab3so34508625e9.0 for ; Wed, 14 Oct 2026 07:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987153; x=1792591953; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=EbSMSyIhuZGM4ySkJn/+6xatpwomzPmePNQa9BKNhtQ=; b=SDD2zUDg2b/Dr0lUw9dw6tsNfeBYvkmZaorfoL4ZFvgEJbMiweF+BVpm40mciIrEBS Vom9a4+U96ik4sIrQgBmzyzgO8KivRH+hRPTu1v8X59XBICHCMgV4Q5f4I2zzbhYVpiN Wp2wXdl5neIHsUsKo/kf0xxWUdAKgRm2Wi8QY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987153; x=1792591953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=EbSMSyIhuZGM4ySkJn/+6xatpwomzPmePNQa9BKNhtQ=; b=F5wn7CNcQTlY6L8ZUUn9oYTdERpRIL1VDmfAJsyIZhD6iHbb1LDVX+FHosWap/0rFg 4Cfq2OdY6ZfUc3oKQeWzacaGdDFqE1unDTGaTiPVz67iBL+TEgWmWH4BG7SgVf3ZFmHn 2xeftD7MYg9f5it/hKS/Re9LpLOyvQeut+uEUNen960qpNNeTNQfYkGDThjFDH7+TeOP RB/E3lqHCahpMpDqnBrvWR57TK9ZDFWl35edkc8iAhEToRpUHlqil9KAtiby04ZooWHe wLtAx9T9D/BQafjRu0JKR4mdJD07SHP2+5zKw6ES9XEWLp2wqz5q4DQ+w5pypKRdBwF7 epEA== X-Gm-Message-State: AFq9FYI7Fw+Y+GKZ0Um1EjKlDXTibgc4NMRX0YrOK7OUnn7AbyB8v4Z3 27qxgdOCeDQT8HF1hlzzKiPgvczK9B79WSXNf76b5OB1hc+RVrE/kLnfZ3rgVmIXtbie/JDi2Ny aTx5XVpE= X-Gm-Gg: AYBFou3yk4HzVK5Mmaeq/oXAas7FnNxXGfuOhIbyuW8wMWOWk46K3m5Xxs1iXIS7sus 7ukrcytEYgQb/3sMCkKl7wyh5xUm3w4WCejfFh0VwMW4og86gqjyOIfTkyVGQ8BRqMnBreByoeq hlSeLDWLza4AGLnBFHQEUeyBMJ2vDSWqwNPgziqLXVI4FGsCC6LzRGaWz/peMDtUy+fnH1MYgZO qoZcgebM+tdwWXQk34vgLjgrIXMYep1R5tmJn9H1aB98C15EWn1vq2PGwSgfur03I5LUuz4cruY VACbUrXt6I67Jeh9t4Mm3nmPYDJEIFwTGMEyRkqpzef8rRIX8xXcoz9BxfVqQeoZTCtOGPJ94fT Sxi+JqpZ7rHLF/E0mumA0mS9J3u80vTTBkSq9Lckce5jaSPnAaGvfOusabl9CAjG568Ph5Ogr3n N0EVoZWS5BMEzsY8hEjj8CSzP/9Gni5zxc3srepaoPTc/rB0il4N6Gj9vvx1GrVoZoJH5oDrsu6 VB4sGAunug5UGkNt+nYl2NrfIbgdSsrYtjL037tvg== X-Received: by 2002:a05:600c:6207:b0:49f:ff73:9971 with SMTP id 5b1f17b1804b1-4a18e4aff66mr308693255e9.18.1791987152471; Wed, 14 Oct 2026 07:12:32 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:32 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 08/21] libdispatch-native, libtapi-native, cctools-port-crosssdk: fix ineffective clang selection Date: Wed, 14 Oct 2026 16:10:29 +0200 Message-ID: <20261014141209.488034-8-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5013 From: Etienne Cordonnier TOOLCHAIN:class-native / TOOLCHAIN:class-crosssdk never actually selects clang for these recipes: native.bbclass (and cross.bbclass, inherited by crosssdk.bbclass) unconditionally set CC/AR/AS to ${BUILD_CC}/${BUILD_AR}/ ${BUILD_AS}, which come from TOOLCHAIN_NATIVE, not TOOLCHAIN. As a result these recipes were silently compiling with plain host gcc and rejecting all the clang-specific -W flags/module maps in their build systems. Matches an existing fix already applied for meta-hawaii's spk-cli recipe (see its TOOLCHAIN_NATIVE comment). COMPILER_RT:class-* and LIBCPLUSPLUS:class-* are also not real variables consumed anywhere in OE-core - dead code left over from the same misunderstanding. clang-native.bbclass already unconditionally forces --rtlib=libgcc --unwindlib=libgcc, but nothing turns on -stdlib=libc++ automatically, so libtapi-native and cctools-port-crosssdk (both C++) need it set directly via CXXFLAGS/LDFLAGS. Keep only the short, non-obvious warning in the recipe comments (TOOLCHAIN:class-* has no effect, use TOOLCHAIN_NATIVE); the full mechanism explanation belongs here, not in comments that will drift as the toolchain evolves. Actually exercising clang for these recipes for the first time surfaces two more build breaks, fixed here too: - libdispatch-native's src/event/event_epoll.c does "dmn->dmn_events & ~dmn->dmn_disarmed_events" returning uint32_t; harmless under -Wsign-conversion but fatal under this recipe's -Werror. - cctools/include/stuff/bool.h declares "enum bool { FALSE, TRUE };", which fails to parse under C23 (bool is a reserved keyword there, not a macro). clang's default C dialect defaults to gnu23 absent an explicit -std=, which is what surfaces this now that cctools-port-crosssdk actually builds with clang. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- .../cctools-port/cctools-port-crosssdk_1010.6.bb | 14 +++++++++++--- .../libdispatch/libdispatch-native_git.bb | 9 ++++++++- .../libtapi/libtapi-native_1300.6.5.bb | 8 +++++--- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb index 3abeb02..dcd5d01 100644 --- a/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb +++ b/recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb @@ -23,9 +23,17 @@ DEPENDS += " \ libcxx-native \ " -TOOLCHAIN:class-crosssdk = "clang" -COMPILER_RT:class-crosssdk = "-rtlib=libgcc --unwindlib=libgcc" -LIBCPLUSPLUS:class-crosssdk = "-stdlib=libc++ -lc++abi" +# Selects clang for the native build; TOOLCHAIN:class-crosssdk has no effect here. +# -stdlib=libc++ isn't added automatically, so this is C++ and needs it set directly. +TOOLCHAIN_NATIVE = "clang" +CXXFLAGS:append:class-crosssdk = " -stdlib=libc++" +LDFLAGS:append:class-crosssdk = " -stdlib=libc++" + +# cctools' own include/stuff/bool.h declares "enum bool { FALSE, TRUE };", +# which is a hard syntax error under C23, where bool is a reserved keyword +# rather than a macro. Pin the C dialect to a pre-C23 standard rather than +# relying on clang's default (gnu23 as of this clang version). +CFLAGS:append:class-crosssdk = " -std=gnu17" EXTRA_OECONF:append = " \ --with-llvm-config=${STAGING_DIR_NATIVE}/usr/bin/llvm-config \ diff --git a/recipes-devtools/libdispatch/libdispatch-native_git.bb b/recipes-devtools/libdispatch/libdispatch-native_git.bb index c7dadd0..a3a1b2e 100644 --- a/recipes-devtools/libdispatch/libdispatch-native_git.bb +++ b/recipes-devtools/libdispatch/libdispatch-native_git.bb @@ -19,4 +19,11 @@ DEPENDS += " \ " TC_CXX_RUNTIME:class-native = "llvm" -TOOLCHAIN:class-native = "clang" + +# Selects clang for the native build; TOOLCHAIN:class-native has no effect here. +TOOLCHAIN_NATIVE = "clang" + +# src/event/event_epoll.c (the Linux epoll port) hits a benign sign-conversion +# warning on a plain bitmask op; upstream's own -Werror -Wsign-conversion +# combo doesn't exempt it. +CFLAGS:append:class-native = " -Wno-error=sign-conversion" diff --git a/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb b/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb index 5442f39..545aa59 100644 --- a/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb +++ b/recipes-devtools/libtapi/libtapi-native_1300.6.5.bb @@ -24,9 +24,11 @@ DEPENDS += " \ libcxx-native \ " -TOOLCHAIN:class-native = "clang" -COMPILER_RT:class-native = "-rtlib=libgcc --unwindlib=libgcc" -LIBCPLUSPLUS:class-native = "-stdlib=libc++ -lc++abi" +# Selects clang for the native build; TOOLCHAIN:class-native has no effect here. +# -stdlib=libc++ isn't added automatically, so this is C++ and needs it set directly. +TOOLCHAIN_NATIVE = "clang" +CXXFLAGS:append:class-native = " -stdlib=libc++" +LDFLAGS:append:class-native = " -stdlib=libc++" CXXFLAGS += " \ -I${S}/projects/clang/include \ From patchwork Wed Oct 14 14:10:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43304CC6B30 for ; Wed, 14 Oct 2026 14:12:44 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14674.1791987155170819177 for ; Wed, 14 Oct 2026 07:12:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=fzKbbVDw; spf=pass (domain: snapchat.com, ip: 209.85.128.53, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-49d0da752ffso9236475e9.3 for ; Wed, 14 Oct 2026 07:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987153; x=1792591953; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Uu1hE4dd0B8MsScdJS1U9jVL+n0L2uMptmEOFQmJIf0=; b=fzKbbVDwWPT2CuNUN4Yh4FkGR+zbzUH3mmeh+WPpJXB6eeLuV8YRdPtsFHcFIBqf5w ippoxJAK1AAjLUT4Nr69a4WFu/VQgguIRcZAvFeBj0SnLhGNekqTAeA4oFR6th3LsCH2 0Tzauapq2vPrzR/eWt2ctZpLbJFhtSjVDxJ1A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987153; x=1792591953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Uu1hE4dd0B8MsScdJS1U9jVL+n0L2uMptmEOFQmJIf0=; b=T3J6oHImBF51X3MURTeg7qNdGMd+v06U9h5mMyWs4ka9tGUJK9UOG6T1EwhwzO461O g74YQQX2YMs1NmttiTj2W4/44ZNFxRJMNt3PmDUxRZaSApe181S/2IV35bHP/Bs252rg xDLr6YYdOuaejlsczRxIrEMWGjzzyrXdVjpuWVDuM3sIsOR06fzP6QXm6qHpvLE4pXwD MaM3fWzP4kkwkThgQBj1LXJezRUJMRKPnw5riGhh4DuHeEOHcRR95pS3bXO4bpZtavgD FI9dFqeSHHvIJeD6aFEn7JpFXFk9pZAB9H7NrhLFpzBXu8SPh0hzfqLeF42APAVCAc13 jAeQ== X-Gm-Message-State: AFq9FYKziLYM/zNtenamo73Avt6KRPm5ItCIMIhuRFa8QiVwAMvtB7LQ 3i8R9koylUqyt/VG7r5iLhsmU8bCXtwgFfflkSPSJ/b6xyBntLfhgoFDLPc1Pj9os+9XEyq2OUl cd997E3w= X-Gm-Gg: AYBFou0qR/UTyO58cf0adWDaeJJNADrsx82OKZT2FafXRNIOR5m3ik8mn1GrrE7HV4V yyaQB6km03jdtqHSSB31GTc5UrmOe62niZ600hDpSmZf1ewi6W4mahE49TiarzAmJIilohYUdyB rHzGJjzMlL43OWYZhbSBCSkb5qUP+w7rV7HrKJ5GHquIO4AxiKeLbTAD+KdV4HAx/iJ+OeFQE37 wy04CZtXGEJlCWr9SjtGtkWRa4ThBptHkOrgYOnwAS+NXiwF7uIL5hNhDTMjxzoJSKItl2Pxpks kx2GbfePWoqp3jcJHo8WhkLfPCo3FCw82oNIArblXEzhBmfNescDw8D0d5R8lg+PUxF7XtGo9N9 m+QJqynl4JHIIKUOSvHIiKebl+/+TS9PJpIIDxYlNZmIJ9FyPeNdF5dkLBhRAtAXTrKgTZ+zkvs MykHbZ1UqQ3m4nPvP/LrixC+SZjzEtHoko2yyn8d2zcWpYT2h4SWZrb6YoomcV+7rmRj8mDNjX3 pd9ytgaY09COg2uIdSepxDMD2MYr3U9RyOqF+Qnrw== X-Received: by 2002:a05:600c:8716:b0:4a1:62b8:9aa1 with SMTP id 5b1f17b1804b1-4a18e44885dmr329313795e9.2.1791987153303; Wed, 14 Oct 2026 07:12:33 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:32 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 09/21] gcc: fix Darwin ICE from weak-alias __cpu_indicator_init_local Date: Wed, 14 Oct 2026 16:10:30 +0200 Message-ID: <20261014141209.488034-9-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:44 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5014 From: Etienne Cordonnier nativesdk-libgcc:do_compile fails building libgcc/config/i386/cpuinfo.c for x86_64-snapndk-darwin21 with: libgcc/config/i386/cpuinfo.c:68:3: internal compiler error: in assemble_alias, at varasm.cc:6627 OE-core's 0020-libgcc_s-Use-alias-for-__cpu_indicator_init patch (a 2015 musl-compat fix, not OS-gated) adds a weak alias definition of __cpu_indicator_init_local. GCC's Darwin/Mach-O backend cannot emit that weak+alias combination and ICEs instead of erroring out. Add a new patch (0103) via the shared gcc-source_%.bbappend that replaces the alias with a plain forwarding function body, gated on __APPLE__ so non-Darwin builds keep taking the original weak-alias path unchanged. Preserves the __cpu_indicator_init_local symbol name that gcc/config/i386/i386-expand.cc calls from __builtin_cpu_init. This surfaced now because GCC was bumped 13.3 -> 15.3 as part of the scarthgap -> wrynose migration; whether this specific Darwin-hosted libgcc + 0020-patch combination ever actually compiled under GCC 13.3 is unverified (GCC 13.3 source isn't available locally to diff varasm.cc/cpuinfo.c against). AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- ...-i386-cpuinfo-avoid-darwin-alias-ice.patch | 44 +++++++++++++++++++ recipes-devtools/gcc/gcc-source_%.bbappend | 7 +++ 2 files changed, 51 insertions(+) create mode 100644 recipes-devtools/gcc/files/0103-libgcc-i386-cpuinfo-avoid-darwin-alias-ice.patch diff --git a/recipes-devtools/gcc/files/0103-libgcc-i386-cpuinfo-avoid-darwin-alias-ice.patch b/recipes-devtools/gcc/files/0103-libgcc-i386-cpuinfo-avoid-darwin-alias-ice.patch new file mode 100644 index 0000000..3e9bb9b --- /dev/null +++ b/recipes-devtools/gcc/files/0103-libgcc-i386-cpuinfo-avoid-darwin-alias-ice.patch @@ -0,0 +1,44 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Etienne Cordonnier +Date: Thu, 18 Sep 2026 12:00:00 +0200 +Subject: [PATCH] libgcc/i386: avoid weak alias for __cpu_indicator_init_local + on Darwin + +0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch +(carried from OE-core) adds a weak alias definition of +__cpu_indicator_init_local in libgcc/config/i386/cpuinfo.c. GCC's +assemble_alias (gcc/varasm.cc) cannot emit this weak+alias combination +for the Darwin/Mach-O backend and ICEs instead of erroring out: + + libgcc/config/i386/cpuinfo.c:68:3: internal compiler error: in + assemble_alias, at varasm.cc:6627 + +Use a plain forwarding function body on Darwin instead of the +weak alias. This keeps the same externally visible symbol name that +gcc/config/i386/i386-expand.cc calls from __builtin_cpu_init, so +non-Darwin targets (which take the weak-alias branch below unchanged) +are unaffected. + +Upstream-Status: Inappropriate [OE specific] +--- + libgcc/config/i386/cpuinfo.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c +index e980030ef23..a1b2c3d4e5f 100644 +--- a/libgcc/config/i386/cpuinfo.c ++++ b/libgcc/config/i386/cpuinfo.c +@@ -64,6 +64,11 @@ + } + + #ifndef SHARED ++#if defined(__APPLE__) ++/* weak+alias here ICEs GCC's assemble_alias for Mach-O (gcc/varasm.cc). */ ++int __cpu_indicator_init_local (void) { return __cpu_indicator_init (); } ++#else + int __cpu_indicator_init_local (void) + __attribute__ ((weak, alias ("__cpu_indicator_init"))); + #endif ++#endif +-- +2.43.0 diff --git a/recipes-devtools/gcc/gcc-source_%.bbappend b/recipes-devtools/gcc/gcc-source_%.bbappend index 0f05b8e..de18cff 100644 --- a/recipes-devtools/gcc/gcc-source_%.bbappend +++ b/recipes-devtools/gcc/gcc-source_%.bbappend @@ -18,6 +18,13 @@ SRC_URI:append = " \ file://0102-aarch64-on-aarch64.patch \ " +# 0020 (carried from OE-core) adds a weak alias for __cpu_indicator_init_local +# in libgcc/config/i386/cpuinfo.c; GCC ICEs emitting that for Mach-O. Guarded +# by __APPLE__, so this only changes behavior on Darwin. +SRC_URI:append = " \ + file://0103-libgcc-i386-cpuinfo-avoid-darwin-alias-ice.patch \ +" + # gcc-15.3.0 tarball ships zlib/zlib.map with CRLF; 0101 tail hunk is LF-only. python do_patch:prepend() { import pathlib From patchwork Wed Oct 14 14:10:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21A16CC6B2F for ; Wed, 14 Oct 2026 14:12:44 +0000 (UTC) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14769.1791987155829411668 for ; Wed, 14 Oct 2026 07:12:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=LxsU93Q8; spf=pass (domain: snapchat.com, ip: 209.85.128.47, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4a1635f7c89so10470365e9.2 for ; Wed, 14 Oct 2026 07:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987154; x=1792591954; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=q8Wjqhazi2jlR3w/1/1mqqVC9XFa05FKWhLUz/O8rWA=; b=LxsU93Q8Ueg5ilBK7k1gYp4HZn/5bMhRGJW8F7h3waj24EEkU5Fmb8Q7yMuaz8beLN 9GfHzKwImv7dfwZeqegf2GzXQVuILtO1VnBDtTEsqPK7P/K88w2Y6ogqThLbKj9XvTgY 3/QVbM3NwrbYE8+X7Rhln9TvNfw1L9V/8cOm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987154; x=1792591954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=q8Wjqhazi2jlR3w/1/1mqqVC9XFa05FKWhLUz/O8rWA=; b=UhzQEDEn0QDsSm/72F0xd/IdZnfaub/jp9+n4ewtsHccsMJbovI5c5Mkc9N2fT4aez /uaiv6D5SW5YrCkbjycSIjAoLZksJXZC3MvNu7kt+DAixGCvfDhmJ9Zk5jTrunklb4WW XKvrFVqxJhsi6DaY5rV0n2ZemnZJiexRIsWomDmCQBbFC+yVYG9QCujRx6toDsyGlC1z QGFc3MQB9+FExg9Js5+RqXXhhQ5ILnU0slmzp7Fm7nJzVcToNYoiIlldio2AlVQsCXMv IZvw5aW0vtGrXhy37ThJ0Cvo/h+wBncWnNg6ybLvwv5ivbS+OiXVhHo5+HatjKFqXahb 9jxg== X-Gm-Message-State: AFq9FYL3EabXbp85uJnqo+ME/qf1cd7xISWFml3RMLphDceJadxTGaC+ h+XV3g6AcdiqfLF+9k4Twfmwr5jK0rg5EpGsUc1U7HAoq6S3J2+kRKG9NlV6Hv5BZvR+ut9DSjw mFPyTzZs= X-Gm-Gg: AYBFou02zPnx9S4li+JKd9UxlXLvRg8/nOMXv9XnzcVTNL73v0DdN1ZSY7Q2xJuZlr/ kMD1mJYm7281PKLEhG4g1H6ulY2qHH6NcK/Qv/um/LrTEfgf9fBUdTmvGWJ8Y5FvpLG2341MHVv eSYuClADf9870GHQ9TWQ5oLQnWrZgWzCv0nR/fbYQZc6Y3j+Nb1jeWYkrNDL2mLc7CuTzPcNYjt b2pqXrNcwj3irT3aEpsiDp87U4XKiH1Mt2UXpUjYc0eKEWLNW2yGAbyiJgraDhbyvSCRPcbnS/z 4boIvSfr+L2kvhLZ2TTLh1pdcWjHNCX68476jf326eLoFLiFu5GP5bYUAC7P6EsAIbDE80Q8PfY wg/6ejeGemmPtztcdi76g2Ipg7em3jBgcjwUnwvW30CzA7J24yqGTkMHtuFORodF4sodzKmnq5t KSPfy8Hl+B5xwmncTtlXa89kEQnXIjoxc14f2v5MPtbr0K0FxXqcND3v8SfN9F2DM7vxuAu5GcM KqwuXnqi8IUNmQ2zqGzEGCpt2xnHnfO5y0dseO4n2uObUoQtCwS X-Received: by 2002:a05:600c:3f0f:b0:49c:ffab:551f with SMTP id 5b1f17b1804b1-4a18e4cd231mr325380805e9.22.1791987154011; Wed, 14 Oct 2026 07:12:34 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:33 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 10/21] libgcrypt: drop libcap capabilities support for Darwin nativesdk Date: Wed, 14 Oct 2026 16:10:31 +0200 Message-ID: <20261014141209.488034-10-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:44 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5015 From: Etienne Cordonnier 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 --- recipes-support/libgcrypt/libgcrypt_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 recipes-support/libgcrypt/libgcrypt_%.bbappend 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" From patchwork Wed Oct 14 14:10:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B093DCC6B32 for ; Wed, 14 Oct 2026 14:12:44 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14770.1791987157664292812 for ; Wed, 14 Oct 2026 07:12:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=KHw6mvCc; spf=pass (domain: snapchat.com, ip: 209.85.128.44, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a1af482519so15183885e9.1 for ; Wed, 14 Oct 2026 07:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987156; x=1792591956; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qHvZ1Kbkic6JbOMdL30tAfiBbPqa3U8RShO7LlmRs7o=; b=KHw6mvCcWQzoozGelAxIrsBoiKpRCsV3sDa/0MxE+kr5JhYVFEOxj6hEFjrcQcEnhy s5VR78aGnvrTUwa6EUw/aTgRao7kNjmd/azFCcZ0/aSGzD36/sKbqVZ4UpTAixkcTgVh 6MHEFGcgotl4TY1gy/Z5dY607Zdn+mMyIUvrM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987156; x=1792591956; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=qHvZ1Kbkic6JbOMdL30tAfiBbPqa3U8RShO7LlmRs7o=; b=ju+9vIWw0M1fVu8oOXq3uk7ZP9CDpHKoS5h10O5bZyf5AV526NXP4O9hydIfY0oTA7 Dm8FgMP0TyNacaS/5QTkuFejFCPzzKFjynhzyZ9Dj7GdL7CrxRYmOdskcGkB/QNxCPs/ kGetNke/ENe2a/TuP5r7rXUCLTlTiNmBn6uuBs2rTSc4JCDpMBXe1UK/rP8qt//shDjW IuBHelJ00v3LoLo8m32yoZqd3051qMlmBx4NB+GtPWajg53drMknn6GGcxf05xN3nXNU SRj+RKMkVWWHcI7X8SsH4Vt++RIuVO8jF3rQVQ3v5lTDnDPLhcyFdDU09wMLUO3xEMeZ GDbA== X-Gm-Message-State: AFq9FYLWln0oeT171RBCxlT1xzhgC0xwnjZUPBsrUmrdjy/COOyJlr1K BR7/+66X8jGCNUvZKWrglKMKISsbWYJq90lP9tRjepjQ4Ou9MfI34ECVm57x0gE9aoeO0DWa2oA PLTDFuHU= X-Gm-Gg: AYBFou0eagLmfVPqeeMcPTm1u0JJkNt7IMALcaXgIjcO63Kckg+LD4f4Mhl0anXRBUH ytQcN5LbngE8qJKg2NA4To50Bwhm50gRctYCANUKDi42IVmV0ykxBJyeKgh1POlVIZVHbjL9QEW eDJ7JrJLtJhNWhiqFfUNBsGKhd1ZgGjxzTrs3Fp0bOMNlGFwhi5BP7PBGiwi8OdbNDJ0gCEZT3/ T3pFxiJCfnVM0f82exayr/eUEE1YfbrZMBdmQ+GSm1MqdqoR+MZm93kOaO7F4Eq3Utn+drDZWvl enkqPIhIunirSO0FmIgAm7QoECruzrFT2XNRjv0cp2M0xGcCYWj+tw8SDmk5KxHUl5unaYr6QZU RGto4tZ6scHoxAbzpE0AeG/ytiwWcKV6Y4lbIKaMcgNMENl9Me9F5Z5XGrxqewacMAGd+sJ99n8 Q9QvOz0KVjFK/Yo3y2CzHRuCZ7VgcoMv3b6va2CWeIv9j0YAKSHo9TWYBottJExNlkLxxogHsZA 0ySPb6FKsL3OkOxaxvYhFRG9160ZH0c7sRmZrAS0oriP6VAjbW9 X-Received: by 2002:a05:600c:c10e:b0:4a1:93fd:913 with SMTP id 5b1f17b1804b1-4a193fd0ad6mr204365255e9.10.1791987155757; Wed, 14 Oct 2026 07:12:35 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:35 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 11/21] sqlite3: fix Darwin nativesdk build (SONAME + shell link) Date: Wed, 14 Oct 2026 16:10:32 +0200 Message-ID: <20261014141209.488034-11-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:44 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5016 From: Etienne Cordonnier sqlite's autosetup configure treats an unsupported SONAME mechanism as a soft warning, but escalates to a fatal error when --soname was explicitly requested. sqlite3.inc always passes --soname=legacy, and Darwin's linker supports neither the GNU (-Wl,-soname) nor HP (-Wl,+h) flag autosetup probes for, so do_configure aborts for the macOS NDK nativesdk build. sqlite's configure already sets -install_name for Mac targets independently of this flag, so dropping it is sufficient. That gets do_configure passing but do_compile then fails linking the sqlite3 CLI shell: Undefined symbols for architecture x86_64: "_sqlite3_db_status64", "_sqlite3_enable_load_extension", "_sqlite3_load_extension" The shell links with "-L. -lsqlite3" against the dylib just built in the same directory. CC for this target always carries an extra -L for the macOS SDK's own library dir (needed for other libSystem symbols), and that same directory ships Apple's own libsqlite3 stub - missing exactly these three newer/optional APIs - ahead of "-L." on the command line, so the linker resolves -lsqlite3 against Apple's stub instead of our library. Patch Makefile.in to link the shell against $(libsqlite3.DLL) by path instead of via -l, which is unambiguous regardless of -L search order. Scoped to darwin21 only. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- ...ink-against-libsqlite3-by-path-not-l.patch | 41 +++++++++++++++++++ recipes-support/sqlite/sqlite3_%.bbappend | 17 ++++++++ 2 files changed, 58 insertions(+) create mode 100644 recipes-support/sqlite/files/0001-shell-link-against-libsqlite3-by-path-not-l.patch create mode 100644 recipes-support/sqlite/sqlite3_%.bbappend diff --git a/recipes-support/sqlite/files/0001-shell-link-against-libsqlite3-by-path-not-l.patch b/recipes-support/sqlite/files/0001-shell-link-against-libsqlite3-by-path-not-l.patch new file mode 100644 index 0000000..e11155f --- /dev/null +++ b/recipes-support/sqlite/files/0001-shell-link-against-libsqlite3-by-path-not-l.patch @@ -0,0 +1,41 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Etienne Cordonnier +Date: Fri, 19 Sep 2026 12:00:00 +0200 +Subject: [PATCH] Makefile.in: link sqlite3 shell against libsqlite3 by path, + not -l + +The shell binary links against the just-built shared library with +"-L. -lsqlite3". On Darwin, CC always carries an extra -L for the +macOS SDK's own system library directory (needed for other libSystem +symbols), and that directory also happens to ship Apple's own +libsqlite3 stub - which is missing sqlite3_load_extension, +sqlite3_enable_load_extension and sqlite3_db_status64. Since that -L +comes before "-L. -lsqlite3" on the command line, the linker resolves +-lsqlite3 against Apple's stub instead of the library this recipe just +built, and the shell fails to link with undefined symbols. + +Link directly against the just-built $(libsqlite3.DLL) by path instead +of via -l, which is unambiguous regardless of -L search order. This is +a no-op on non-Darwin targets, where "-L. -lsqlite3" and "./libsqlite3.so" +resolve to the same file. + +Upstream-Status: Inappropriate [OE/Darwin specific] +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 1111111111a..2222222222b 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -240,7 +240,7 @@ + # https://sqlite.org/forum/forumpost/d80ecdaddd + ENABLE_STATIC_SHELL = @ENABLE_STATIC_SHELL@ + sqlite3-shell-link-flags.1 = $(TOP)/sqlite3.c $(LDFLAGS) $(LDFLAGS.libsqlite3) +-sqlite3-shell-link-flags.0 = $(LDFLAGS) -L. -lsqlite3 $(LDFLAGS.zlib) $(LDFLAGS.math) ++sqlite3-shell-link-flags.0 = $(LDFLAGS) ./$(libsqlite3.DLL) $(LDFLAGS.zlib) $(LDFLAGS.math) + sqlite3-shell-deps.1 = $(TOP)/sqlite3.c + sqlite3-shell-deps.0 = $(libsqlite3.DLL) + # +-- +2.43.0 diff --git a/recipes-support/sqlite/sqlite3_%.bbappend b/recipes-support/sqlite/sqlite3_%.bbappend new file mode 100644 index 0000000..74696d0 --- /dev/null +++ b/recipes-support/sqlite/sqlite3_%.bbappend @@ -0,0 +1,17 @@ +# Darwin's linker has neither -Wl,-soname nor HP's -Wl,+h; sqlite's own +# configure already sets -install_name for Mac targets independently of +# this flag, so don't force the ELF/HP-style soname check to be fatal here. +EXTRA_OECONF:remove:darwin21 = "--soname=legacy" + +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +# The shell binary's "-L. -lsqlite3" link resolves against the macOS SDK's +# own (feature-incomplete) libsqlite3 stub instead of the library just built +# here - see the patch for details. +SRC_URI:append:darwin21 = " \ + file://0001-shell-link-against-libsqlite3-by-path-not-l.patch \ +" + +# The Darwin libraries are named libsqlite3..dylib, which the default +# "${libdir}/*.so.*" doesn't match. +FILES:lib${BPN}:append:darwin21 = " ${libdir}/libsqlite3*.dylib" From patchwork Wed Oct 14 14:10:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA8DDCC6B2D for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14771.1791987159413577903 for ; Wed, 14 Oct 2026 07:12:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=BZsOxZSb; spf=pass (domain: snapchat.com, ip: 209.85.128.41, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-49fbb2acc90so36169635e9.2 for ; Wed, 14 Oct 2026 07:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987158; x=1792591958; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/z/FNUgCGcWavIqHGPVIh5jySzCtH/ebe3apcQvu6UU=; b=BZsOxZSbApJsAsEtdjtUy30D3iZOSYeB26Prq+J+xn3BgzMrwQUrKUnzle3ibn4DqA QLUV3fx6AanLJf5QIk2LE1cK/DvMFgztYefN23MgCK/XAkfDy957UqB9IyuCR+cQz8u0 4y/wnwR413Ucjgj/Ji1vBxaNbcPvjond4GKu0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987158; x=1792591958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=/z/FNUgCGcWavIqHGPVIh5jySzCtH/ebe3apcQvu6UU=; b=xGELEf2Hm9pXZ3YvT2xlz4MDxfl59JFj8Ffte97Kb6gExUmDhnBt8i/uBPLPjnFxLh OVnv86tT9WcJ0xDjxI4CJ2/aOlMuqzheA/LZnvvX1VWygcl+efVjzq5sI5MUt2w8x6jI fdFyfx2oiGHOkln4iBSKmHA/FuxfW/deWRGqGnlNSyW78UePwDx/atdX1XwjJD4P5kb7 ZebOCvyq1nWMRNw35eGVV1yG0rjJ2r/hAB6X+1ueqkc6dNd4htiTBA+98h+XKJ4Z8Ubs vos+E6trFmKVHudYwoi7mZa2ri1w93jrICYU9TC0YG7kcHrLZn53NoIK2rg7y6nBzJ63 GpVw== X-Gm-Message-State: AFq9FYKVYh00CrHwzry81hu2GEeK+LM5Cw95izuYr9wy4NAEAUoDaFXt 9W5+zCFbJR7osuS01wJikV4wKqY76/WNPfvqlRFXrYynPpPD95NsBYl7cG0f53maB/K1NkkPeCw lWv+dEMo= X-Gm-Gg: AYBFou1b2L1F7nz4Wrg3t4lr2A1otayxj50l0zgkSGwWgCWd0u7Q5N3gGFhlcK7iZe6 YCL/RgngUR3I/lJfc9VZt24rr2j4BhdmFB8OmrO+9Khg/P9773G4hPKEWjFwu8Yjfw2db0kneDe pYmnpS+dr7isPSE/DFTVzeMeiROl69hgisC8cvnaEMciGqm36yEusmQu6oo1qdiAM7F1Q7BXj5m wpARUkGTvYEH9gn6e6h6QBVjjaFonbSWyv119E+H5xqL9LTvaNChLccsK9JNb3j24kdbPn4CW8t NJKEs6tm87JY5cg6urOILrwbp6tC2L3aucLC3oJ5g4Ys65oTLreZpYoAdAqcFbUTunm/VNhkuY2 /4Xi8Nwjq6XFzaC2utHtqgaxbr4wm0NrkdP4f4k3/bqwd040aSfOCswWQe2fdBj8sLcXOLOxX1c Zd76NkWR4gMXCkdxkCPC+UNDq2QUOV6nEdpX3C5gOORidFnWHJy6iFynEz9VvY7bpsE11uZ5LQ2 w0/1MHoziyrNWDvj4Enof4fFADWccnFffHoReJTonNzmdfR29sx X-Received: by 2002:a05:600c:3111:b0:4a0:1e87:910 with SMTP id 5b1f17b1804b1-4a18e4cb7a9mr325472245e9.20.1791987157411; Wed, 14 Oct 2026 07:12:37 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:36 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 12/21] libarchive: drop acl/xattr PACKAGECONFIGs for Darwin nativesdk Date: Wed, 14 Oct 2026 16:10:33 +0200 Message-ID: <20261014141209.488034-12-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5017 From: Etienne Cordonnier Both pull in nativesdk-attr (and nativesdk-acl also DEPENDS on it), which fails to build for Darwin: attr's libattr.c/getfattr.c/attr_copy_file.c use the GNU/Linux API unconditionally, and upstream has never grown any __APPLE__/Darwin support. Darwin's own xattr() family takes a different signature (extra position/options args) and has no lXXX-prefixed symlink variants, so attr's calls don't even parse there, let alone link. Same story for acl's libacl, which uses the POSIX.1e acl_get_file() family that Darwin doesn't implement at all. libarchive only uses these for optional xattr/ACL preservation when reading or writing archives; dropping them for the Darwin nativesdk build (which only needs libarchive to link nativesdk-elfutils' debuginfod client) loses that preservation but nothing else. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- recipes-extended/libarchive/libarchive_%.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend diff --git a/recipes-extended/libarchive/libarchive_%.bbappend b/recipes-extended/libarchive/libarchive_%.bbappend new file mode 100644 index 0000000..e3c1941 --- /dev/null +++ b/recipes-extended/libarchive/libarchive_%.bbappend @@ -0,0 +1,6 @@ +# libattr/libacl are the GNU/Linux implementations of xattr and POSIX.1e ACL +# support; Darwin's own xattr/ACL syscalls are real but have a different, +# incompatible signature/model and neither upstream library has ever grown a +# Darwin port. Drop both PACKAGECONFIGs here: libarchive still reads/writes +# archives fine without xattr/ACL preservation. +PACKAGECONFIG:remove:class-nativesdk:darwin21 = "acl xattr" From patchwork Wed Oct 14 14:10:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDC4ECC6B2E for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14772.1791987160101298802 for ; Wed, 14 Oct 2026 07:12:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=Cxrz2W/m; spf=pass (domain: snapchat.com, ip: 209.85.128.53, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4a172eb31f0so35720475e9.1 for ; Wed, 14 Oct 2026 07:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987158; x=1792591958; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GoT/nB3SMKbE6XSzoyhbYqbC/JKFDAvPVy99SZQ3/Vc=; b=Cxrz2W/meXLZC31FqZK2/SMmVezuosiakpKx0yrbJu+RbOay1q2CDyATcELJY+QYhw Ab6Sp76UYsf1vovhX2Ljw9MdInYrcR3n8zdDNKF49qsULrbloOcxwxI1U8x/nQC4vC93 4b01fguL8cA6u9p46V5GNEYamx6oQ34Se4oAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987158; x=1792591958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=GoT/nB3SMKbE6XSzoyhbYqbC/JKFDAvPVy99SZQ3/Vc=; b=TeKZkqnF4yLHeDT4v/ctn+KNq7j1opAciCy4yVs0gvckbox1SIBaaJ6WfFLBvYY6kO 4yNraSSyzn3LaYGWGK2g1UFvcX8B+mW1ZkQyl/DvSndEVB7raGfvKe1HP2vxieE9ZEqt lJBi6nXhdJWWV4susFUD798azlUkFI4rQ13fPXeSy4C9XckJdqr1QgcIredXxkIr3vPw Hp7pP4+HLvkufnqldLhuS89b++qbkK2lSTSXmlx9SOrJiCFmI0A/V4Gh11yikweeAsqR 1//MIHPnx83rytE/nF3uYisIxzNuagotMZL+Bi3Rb2TnXuTVNjUNJ9Fm3gk51LSGUEc3 jenw== X-Gm-Message-State: AFq9FYIa9gwAWx35cRZ1ltuLUPamkZjO7SOwVTyKQK7Kji+yLbJFj5GI Qws7ueHb1vawQwhWYXXy20OB/ohmxZEEpxQ586KAblPrY4+OAcGmaj37Tum/Y/krIeLi8l2f60w GkWbCTQs= X-Gm-Gg: AYBFou1VU7ZtByqbHoO9LrTskdSVNSSJl/26xGHxHtXNNm6DMFs5V0WMSKb+xThtOjH l7s7SOnRuIpXr+toK4v4Fv2Voo3SM3RLrmij4IPu+F43B6Oj3VGWev7Q6DAUxpM3wXF8aJNi0r9 OjAfBVM7k2oL/y/33Zkuz8arlqHApwesfvgcssvv68UEA+oNNDWINsUi7/8IFQXO/xcElvhm5rg Zcses25gJWLd/2ME8/rMK2KIyg44xapuBaM1p7wE4tETt0lM8d7PlaC9yr4eq403d+2KJu5MEsI O2MNltjwF1m2KaZhaeVmjhn3IOJg/z8Lk3SqDTJFdLvq7Yt7orqX51XR5omhHpFKEhZ/uiq9Ayn fLkJeAz2mvpjw08p6vG5Odl0+4zJeJDgsj82Pd1/Bu46EN31uM6DhHv4UzroYdOG6WUZ8UnllBp 7Pk+wUIx5IvcpDGL61BPfYWuYGEZF9tU5QXHsNBgUbptB8rJSy8h8abshwbCWqKEjK1rEyF4b3J eQJz+sGawwu2mtMtCfvR4Wt9sPdg8cnt5ZKI12X8qK91Z0AVZTI X-Received: by 2002:a05:600c:3111:b0:4a1:811c:8069 with SMTP id 5b1f17b1804b1-4a18e49d640mr313178985e9.8.1791987158218; Wed, 14 Oct 2026 07:12:38 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:37 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 13/21] clang: scope -femulated-tls/-Wno-elaborated-enum-base to toolchain-clang Date: Wed, 14 Oct 2026 16:10:34 +0200 Message-ID: <20261014141209.488034-13-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5018 From: Etienne Cordonnier CFLAGS:append/CXXFLAGS:append:class-nativesdk:darwin21 applied these clang-only flags unconditionally, even though nativesdk-clang on this target bootstraps with GCC by default (PREFERRED_TOOLCHAIN_SDK ??= "gcc") - the same file's own COMPILER_RT/LIBCPLUSPLUS/LDFLAGS lines already correctly gate their clang-only bits behind :toolchain-clang, this pair of lines just didn't. GCC rejects -femulated-tls outright, failing CMake's compiler-works check. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- recipes-devtools/clang/clang_%.bbappend | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/clang/clang_%.bbappend b/recipes-devtools/clang/clang_%.bbappend index 9aa2c83..6efe32d 100644 --- a/recipes-devtools/clang/clang_%.bbappend +++ b/recipes-devtools/clang/clang_%.bbappend @@ -39,19 +39,18 @@ LDFLAGS:remove:toolchain-clang:class-nativesdk:x86:darwin21 = " -Wl,-dynamic-lin LDFLAGS:remove:toolchain-clang:class-nativesdk:aarch64:darwin21 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-aarch64.so.1" CFLAGS:append:class-nativesdk:darwin21 = " \ - -femulated-tls \ -I${OSXSDK}/usr/include \ -include TargetConditionals.h \ " +CFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -femulated-tls" CXXFLAGS:append:class-nativesdk:darwin21 = " \ - -femulated-tls \ - -Wno-elaborated-enum-base \ -I${OSXSDK}/usr/include \ -include TargetConditionals.h \ -F${OSXSDK}/System/Library/Frameworks \ -F${OSXSDK}/System/Library/Frameworks/CoreServices.framework/Frameworks \ " +CXXFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -femulated-tls -Wno-elaborated-enum-base" EXTRA_OECMAKE:remove:class-nativesdk:darwin21 = "-DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" EXTRA_OECMAKE:remove:class-nativesdk:darwin21 = "-DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" From patchwork Wed Oct 14 14:10:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94D84CC6B2A for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14676.1791987160792525691 for ; Wed, 14 Oct 2026 07:12:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=fFeAnMiy; spf=pass (domain: snapchat.com, ip: 209.85.128.51, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4980fe6b3beso32401915e9.0 for ; Wed, 14 Oct 2026 07:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987159; x=1792591959; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XF1P7a6wgxPy3xegNwErPaqZnul6C/Jihhy6CKkCGkY=; b=fFeAnMiyrta3X9vaoSdpZDrmo8E6AWJOwptly9X6G0Ox9n39RGnYxF9DSK9ij4O9CA Nb+GpIC6ikYjdAhik9sumdlahaI84Cu8Gj+RdIXEgQOa232NYjtxyJrc0109QAXu3V4e 2d3zQLsjYO0/YMlp5c+XFrMJ5R48paAQfIMvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987159; x=1792591959; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=XF1P7a6wgxPy3xegNwErPaqZnul6C/Jihhy6CKkCGkY=; b=qWLSLM6t4B2BOX4LNhc4Ln7VSTVhP0pAqvUJiSwNi45MhSEvmAEK5o3MTvknAQRbPu mDsHshdzzELnTzx24tV7ms3texpfL/n9kTdgiQUY3B8GCy1VboCXx+YRxtE/A92LR57Q /2UkKrGbvgksd43jCikAmCAzaj67r6ubta59Fz9uy5Bb7fS4XqNvWrYC9Ju7+cx/cit7 LIkz5x39JbZ/gaamomM+9g4TFfd3Pv/wlgfSMj2O1JKuKQoeJ7kPnNmqWUORorLLfbhR fkTZTpUaZB2RthyS16N7bUy6xQQB0O3pWn3nJ4Z8tnw5OREn0i9Pno6PIf7N7mrP56fc hnDg== X-Gm-Message-State: AFq9FYKLSV9F1Olu2iwg5HYJG6C4Ib6rl4hUPuw8E5Y47FLDDDNzmy7t i/MBAwlKj3Fox8IXBO+ulybfoE9K/3UFTpSaVxk5o7QMU1ynzm0V2rbp0zTY587L68oy2/Lp744 vvopJoA8= X-Gm-Gg: AYBFou1vh8vOyzy+7uGHIJzQ+VQOshq/ok3V2lRwsWkHeLyYTJ9v4H3fdNqJYyMfM5W cxrslMsJxE5vDMOrN3ToySCvP2b+bh75Zp382/11ST0ZMWA11gfRTusOKijLscs61PFeEzlrKhT spJ2+OauqA6mEs7qdeJTo/qYpJPgJR8K5Y3bHlo3fzo1HMYX1TwkITcunTFX6KsUPsaDk9oobfR qUyztHWtkyMMvBL7Ht6YgtXQiL7ShNG2n+lTsNNn1DtCoISmGVYplxblHedrHuSgK3hgrqLi1iq VsQC4QevTsY6tFo9fLbLuOf466nbsLxknS1ocVcXE1omAOqHe38YNJNehmdSw0uPFxf+Sn4gAAv RmFhtSZPabAnj0F8TrlnmDm5ghRmknYZ3fXdv2AZnDvaNmRkUa1s1oWRbGSvktO3mrFyH7mH+bv HECeQ7cITb8uN2Ra1Kgn8ec65gRz8RipCX3qSenttWOu2+a/a3P0TyKMjxowV/0ouyh/RC93KQu bn5stxVJ599SVevcuAsdpibkFYlMTl3r0eWJn9hXwiVMJS1FcN+ X-Received: by 2002:a05:600c:810a:b0:4a0:ec5:46d9 with SMTP id 5b1f17b1804b1-4a18e3ef100mr300809215e9.0.1791987158936; Wed, 14 Oct 2026 07:12:38 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:38 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 14/21] clang: disable clangd's XPC transport for the Darwin nativesdk build Date: Wed, 14 Oct 2026 16:10:35 +0200 Message-ID: <20261014141209.488034-14-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5019 From: Etienne Cordonnier clangd/xpc/XPCTransport.cpp uses Apple Blocks syntax ("^{ ... }"), a Clang-only language extension with no equivalent GCC support at all (not fixable via any flag). CLANGD_BUILD_XPC defaults on whenever CMAKE_SYSTEM_NAME is Darwin, regardless of which compiler is actually doing the build. XPC is an optional IPC transport for clangd, not needed here, so disable it instead of requiring Clang to bootstrap itself. AI-Generated: Claude Sonnet 5 Signed-off-by: Etienne Cordonnier --- recipes-devtools/clang/clang_%.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-devtools/clang/clang_%.bbappend b/recipes-devtools/clang/clang_%.bbappend index 6efe32d..1947781 100644 --- a/recipes-devtools/clang/clang_%.bbappend +++ b/recipes-devtools/clang/clang_%.bbappend @@ -57,6 +57,7 @@ EXTRA_OECMAKE:remove:class-nativesdk:darwin21 = "-DPYTHON_INCLUDE_DIR=${STAGING_ EXTRA_OECMAKE:remove:class-nativesdk:darwin21 = "-DPYTHON_EXECUTABLE='${PYTHON}'" EXTRA_OECMAKE:append:class-nativesdk:darwin21 = " \ -DCMAKE_FRAMEWORK_PATH='${OSXSDK}/System/Library/Frameworks'\ + -DCLANGD_BUILD_XPC=OFF \ -DLLDB_USE_SYSTEM_DEBUGSERVER=ON \ -DLLDB_INCLUDE_TESTS=OFF \ -DLLDB_ENABLE_PYTHON=OFF \ From patchwork Wed Oct 14 14:10:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ADC7CC6B1D for ; Wed, 14 Oct 2026 14:12:43 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14677.1791987161630844934 for ; Wed, 14 Oct 2026 07:12:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=Pv+42c7y; spf=pass (domain: snapchat.com, ip: 209.85.128.42, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4a17baef589so9467745e9.0 for ; Wed, 14 Oct 2026 07:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987160; x=1792591960; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1vsFZE9naFEvn8csjubrQy0AUReUy/lcCjB4g77oHSg=; b=Pv+42c7yhAiDx6sRYk0Ud66rXeh7fmde82ruFrk828S5K9WdctK8dyrwnOHqmwbEIV l/Bax77yCTfBTKt3ftjusnb57GIoorOQl9DSvuHa2kQ+KvxaukflL1UWs1oVsfGdRsmq bJwieQBcA1fgLLX/g1HPEyxVUyGTEj+47NzPs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987160; x=1792591960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=1vsFZE9naFEvn8csjubrQy0AUReUy/lcCjB4g77oHSg=; b=qEK0zaJ7mrLUuZcAozuqfFCL2mUfZAnpsb2jUJC8z6r6ghVbz4b8IMHvGw/chIh3d8 xQYLpe45QL0tDLQvBuqKJ5ddevMjTTqw1/uhxHuaXloiw9TUddbF6TauA5nmrFaXDPvf 43OGPiXa77bQ8Q5AkOSoNAAiDkAIPRXm7ZxRMZ2OTTExBbL5PD0nAK5YKXrzTwJ4cPZF dZ2smW9K6ZP0w0cAbXSAl2Prqkm7ogX95q2AwRjo/Fu7B0/jzA6j46HP0v6wbhUAuU+N YLUXb2639RS3gP8f9PZ7KamQyMVxMMtLsE/Vx3FKcIvzssgq0iRzCDnyWnvVdlp5MQL7 KUpg== X-Gm-Message-State: AFq9FYKx14FY3d3oCyAyaJXpObrO3cKtbM1Kh7/tIeYiMOehckd/zNOs UISqIsYD3OZk+u5+MqsISCB0xc9PVS5VU0Yy7Gj2Pc39a4GH1DJMzmG17KGy4CFVxTtnqdScZtt D2f09GoY= X-Gm-Gg: AYBFou3FTilUuAXVLjqapXKXaOLCjCsw0Aj4wJJnYQNalvRa+m3a8SnmX6onDvlFMlQ 3Of2iZxkQFP+sJtJ5tZ/pcMnukbDaDytxdKSyIIsGPiMtkNBfzyOxzViYRqhMHlopQeXxCRukkj /z1UNcjnW6kqMypiR5Q9iiPcCPZZr82l4MpcPNU06jh34TA1qF+vKE8yFGAvxc4ZH+r1sSgtrH9 9fGPTsDesLFh5GOc1ZEwQl1oWQX95MXC2k3Ezb/k9haHO1PNKf1JllxVR+bDBwc55ozuUHPPudD PWyUEsb+i7utylSqJjJ8DIpIHxJgFn0VaC9keRQaLg9Z0sKWVToPo3tR211E7Ue8o28S46a6V2i ovjmyg2ENHYyKiuimPxiGYAwLZBX2ZVYOR4NICCJGm2THTopolVhlbeikmWX9/btgg7N62UYaX3 zpK4Hr5kSWvb7PoeIYGoX449aYs1mJZRmt+QpOL6X2AHFzkQi453plXOQrpQg5xUZWOo5RpQLrV 1coES09YGLCWVoeNGj0gr+VInLfMWjb3TL+QzBUzg== X-Received: by 2002:a05:600c:818d:b0:4a1:6c79:fd31 with SMTP id 5b1f17b1804b1-4a18e483231mr307637435e9.12.1791987159662; Wed, 14 Oct 2026 07:12:39 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:39 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 15/21] clang/lldb: move LLDB support to its own nativesdk-lldb recipe Date: Wed, 14 Oct 2026 16:10:36 +0200 Message-ID: <20261014141209.488034-15-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:43 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5020 From: Etienne Cordonnier The Darwin nativesdk-clang bbappend carried a set of LLDB-specific EXTRA_OECMAKE flags and a do_compile:append install_name_tool fix for lldb-dap, but LLDB was never actually attached to clang's own standalone cmake build (clang/tools/CMakeLists.txt has no lldb hookup, only clang-tools-extra) - CMake's own "manually-specified variables were not used by the project" warning listed every one of them as dead. lldb-dap was never being built at all. OE-core already ships a standalone lldb_git.bb (BBCLASSEXTEND = "native nativesdk"). Move the misplaced flags there (as lldb_%.bbappend), fix its COMPATIBLE_HOST (hardcoded to "-linux", excluding darwin), and pull nativesdk-lldb into the SDK the same way nativesdk-clang already is. Build nativesdk-lldb with clang (PREFERRED_TOOLCHAIN_SDK; TOOLCHAIN:class-nativesdk has no effect as TCOVERRIDE is resolved first), because lldb's macOS host support is Objective-C++, which the Darwin cross-GCC can't compile. Use GCC's libstdc++ and libgcc_s instead of the compiler-rt and libcxx that clang.bbclass adds to BASE_DEFAULT_DEPS, and drop the nativesdk-python3 dependency that python3targetconfig adds: Python support is disabled, and nativesdk-python3 doesn't configure for darwin21. Tested by building nativesdk-lldb for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- .../nativesdk-packagegroup-sdk-host.bbappend | 2 +- recipes-devtools/clang/clang_%.bbappend | 23 ----- recipes-devtools/clang/lldb_%.bbappend | 91 +++++++++++++++++++ 3 files changed, 92 insertions(+), 24 deletions(-) create mode 100644 recipes-devtools/clang/lldb_%.bbappend diff --git a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend index d1191e7..2ea92b5 100644 --- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend +++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend @@ -5,5 +5,5 @@ RDEPENDS:${PN}:darwin21 = "\ nativesdk-sdk-provides-dummy \ " -RDEPENDS:${PN}:darwin21 += "${@bb.utils.contains('CLANGSDK', '1', 'nativesdk-clang', '', d)}" +RDEPENDS:${PN}:darwin21 += "${@bb.utils.contains('CLANGSDK', '1', 'nativesdk-clang nativesdk-lldb', '', d)}" diff --git a/recipes-devtools/clang/clang_%.bbappend b/recipes-devtools/clang/clang_%.bbappend index 1947781..91a9226 100644 --- a/recipes-devtools/clang/clang_%.bbappend +++ b/recipes-devtools/clang/clang_%.bbappend @@ -58,33 +58,10 @@ EXTRA_OECMAKE:remove:class-nativesdk:darwin21 = "-DPYTHON_EXECUTABLE='${PYTHON}' EXTRA_OECMAKE:append:class-nativesdk:darwin21 = " \ -DCMAKE_FRAMEWORK_PATH='${OSXSDK}/System/Library/Frameworks'\ -DCLANGD_BUILD_XPC=OFF \ - -DLLDB_USE_SYSTEM_DEBUGSERVER=ON \ - -DLLDB_INCLUDE_TESTS=OFF \ - -DLLDB_ENABLE_PYTHON=OFF \ - \ - -DLLDB_ENABLE_LZMA=ON \ - \ - -DLLVM_ENABLE_LIBEDIT=ON -DLLDB_ENABLE_LIBEDIT=ON \ - -DLibEdit_LIBRARIES=${OSXSDK}/usr/lib/libedit.tbd \ - -DLibEdit_INCLUDE_DIRS=${OSXSDK}/usr/include \ - \ - -DCURSES_INCLUDE_DIRS=${OSXSDK}/usr/include \ - -DCURSES_LIBRARIES=${OSXSDK}/usr/lib/libcurses.tbd \ - -DPANEL_LIBRARIES=${OSXSDK}/usr/lib/libpanel.tbd \ - \ - -DLIBXML2_INCLUDE_DIR=${OSXSDK}/usr/include/libxml2 \ - -DLIBXML2_LIBRARY=${OSXSDK}/usr/lib/libxml2.tbd \ - \ - -DFFI_LIBRARY_PATH=${OSXSDK}/usr/lib/libffi.tbd \ - -DFFI_INCLUDE_PATH=${OSXSDK}/usr/include \ " FILES:${PN} += " \ ${libdir}/LLVMgold.dylib \ " -do_compile:append:class-nativesdk:darwin21() { - ${SDK_PREFIX}install_name_tool -change liblldb.${PV}.dylib @loader_path/../lib/liblldb.${PV}.dylib ${B}/bin/lldb-dap -} - INSANE_SKIP:${PN}:class-nativesdk:darwin21 += " file-rdeps" diff --git a/recipes-devtools/clang/lldb_%.bbappend b/recipes-devtools/clang/lldb_%.bbappend new file mode 100644 index 0000000..39734d8 --- /dev/null +++ b/recipes-devtools/clang/lldb_%.bbappend @@ -0,0 +1,91 @@ +OSXSDK:class-nativesdk:darwin21 = "${STAGING_DIR_TARGET}${SDKPATHNATIVE}/runtime" + +# The base recipe's COMPATIBLE_HOST only matches "-linux" host triples, +# filtering out this darwin21 SDK build entirely. +COMPATIBLE_HOST:class-nativesdk:darwin21 = ".*-darwin.*" + +# On darwin21 we link against the target OSX SDK's own stub (.tbd) libraries +# instead of cross-building libedit for the target, mirroring the darwin +# nativesdk-clang bbappend's own PACKAGECONFIG:remove for "libedit". +PACKAGECONFIG:remove:class-nativesdk:darwin21 = "libedit" + +CFLAGS:append:class-nativesdk:darwin21 = " \ + -I${OSXSDK}/usr/include \ + -include TargetConditionals.h \ +" +CXXFLAGS:append:class-nativesdk:darwin21 = " \ + -I${OSXSDK}/usr/include \ + -include TargetConditionals.h \ + -F${OSXSDK}/System/Library/Frameworks \ + -F${OSXSDK}/System/Library/Frameworks/CoreServices.framework/Frameworks \ +" + +EXTRA_OECMAKE:append:class-nativesdk:darwin21 = " \ + -DCMAKE_FRAMEWORK_PATH='${OSXSDK}/System/Library/Frameworks' \ + -DLLDB_USE_SYSTEM_DEBUGSERVER=ON \ + -DLLDB_INCLUDE_TESTS=OFF \ + -DLLDB_ENABLE_PYTHON=OFF \ + \ + -DLLDB_ENABLE_LZMA=ON \ + \ + -DLLVM_ENABLE_LIBEDIT=ON -DLLDB_ENABLE_LIBEDIT=ON \ + -DLibEdit_LIBRARIES=${OSXSDK}/usr/lib/libedit.tbd \ + -DLibEdit_INCLUDE_DIRS=${OSXSDK}/usr/include \ + \ + -DCURSES_INCLUDE_DIRS=${OSXSDK}/usr/include \ + -DCURSES_LIBRARIES=${OSXSDK}/usr/lib/libcurses.tbd \ + -DPANEL_LIBRARIES=${OSXSDK}/usr/lib/libpanel.tbd \ + \ + -DLIBXML2_INCLUDE_DIR=${OSXSDK}/usr/include/libxml2 \ + -DLIBXML2_LIBRARY=${OSXSDK}/usr/lib/libxml2.tbd \ + \ + -DFFI_LIBRARY_PATH=${OSXSDK}/usr/lib/libffi.tbd \ + -DFFI_INCLUDE_PATH=${OSXSDK}/usr/include \ +" + +do_compile:append:class-nativesdk:darwin21() { + ${SDK_PREFIX}install_name_tool -change liblldb.${PV}.dylib @loader_path/../lib/liblldb.${PV}.dylib ${B}/bin/lldb-dap +} + +# lldb-dap's rewritten @loader_path reference to liblldb.dylib trips the +# same file-rdeps QA check that nativesdk-clang already skips for darwin21. +INSANE_SKIP:${PN}:class-nativesdk:darwin21 += " file-rdeps" + +# Python support is disabled above (LLDB_ENABLE_PYTHON=OFF), but lldb inherits +# python3targetconfig, which adds nativesdk-python3 to DEPENDS. That recipe +# doesn't configure for darwin21 (sw_vers is missing), so drop the dependency. +EXTRA_PYTHON_DEPENDS:class-nativesdk:darwin21 = "" + +# lldb's macOS host support is Objective-C++ (Host.mm etc.), which the Darwin +# cross-GCC can't compile. Build with the clang-crosssdk compiler instead, with +# the same toolchain-clang adjustments as the nativesdk-clang bbappend. +PREFERRED_TOOLCHAIN_SDK = "clang" + +COMPILER_RT:class-nativesdk:toolchain-clang:runtime-llvm:darwin21 = "" +LIBCPLUSPLUS:class-nativesdk:toolchain-clang:darwin21 = " -stdlib=libstdc++" + +LDFLAGS:toolchain-clang:class-nativesdk:darwin21 = " \ + ${BUILDSDK_LDFLAGS} \ + -lgcc_s \ +" +LDFLAGS:remove:toolchain-clang:class-nativesdk:x86-64:darwin21 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-x86-64.so.2" +LDFLAGS:remove:toolchain-clang:class-nativesdk:aarch64:darwin21 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-aarch64.so.1" + +CFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -femulated-tls" +CXXFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -femulated-tls -Wno-elaborated-enum-base" + +# clang.bbclass adds compiler-rt and libcxx to BASE_DEFAULT_DEPS, but the +# nativesdk uses GCC's libgcc_s and libstdc++ (see LDFLAGS/LIBCPLUSPLUS above). +BASE_DEFAULT_DEPS:remove:class-nativesdk:toolchain-clang:darwin21 = " compiler-rt libcxx" + +# clang defaults to libc++, but the nativesdk ships GCC's libstdc++. The Darwin +# clang driver patch (0037) finds its headers via YOCTO_SDKPATH. +CXXFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -stdlib=libstdc++" +LDFLAGS:append:class-nativesdk:toolchain-clang:darwin21 = " -stdlib=libstdc++" + +do_configure:prepend:class-nativesdk:darwin21() { + export YOCTO_SDKPATH="${OSXSDK}/usr/include" +} +do_compile:prepend:class-nativesdk:darwin21() { + export YOCTO_SDKPATH="${OSXSDK}/usr/include" +} From patchwork Wed Oct 14 14:10:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100688 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 231DBCC6B2F for ; Wed, 14 Oct 2026 14:12:55 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14775.1791987165228611580 for ; Wed, 14 Oct 2026 07:12:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=eoLn96+y; spf=pass (domain: snapchat.com, ip: 209.85.128.50, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4956869750eso29223945e9.2 for ; Wed, 14 Oct 2026 07:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987163; x=1792591963; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lg0d7lopx1sRbQGDyk+rYGFiIm4+d8yXVKU006qTceM=; b=eoLn96+yejXYqXYagfguHK6KMjrhQIwLDNv9vUpGOLxRtCCudOXvBjydfOMdmEGOvD eRl07qxrYXu4+LAxqFLs2cd0EZvY5UGjaueLvwkv48trZQP7+6jd/m97/qQgUleyYT4Q nHMttiGb1YJbSjZdL1plOF30BbENk4bANBdB8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987163; x=1792591963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=lg0d7lopx1sRbQGDyk+rYGFiIm4+d8yXVKU006qTceM=; b=T6BQ3Dk/aW08f+Z+vH3javV7OURaVXdbbq0KJIq2OcjDL5zQ9xqIXWeCraz/dfrz3G DSCI3RkSMmeSYbjuxVuG41D7VPDjvZwxlNVdorxer0H7PoTr3JPRU4vSuXbPFT4zmoBW yungT0tj0daXe7gwKZiMcNVEHI+Z3vDDhanFSpALmzFmHsD5Uk1pz0YYITzCjlheBrMu +gkosdxx618DPuZV0YY8UvxSjNRGTrQJRsiSbyIj5c20lGiOOe3FD4sqWKf18bqbOjUK Qinrv3Ji+e/cWvMKXVFX4Mydp4TgGqYXK5JJ8ZQcqrZ9N6yzwY+HgXk7ZFKO8GITkvvF 9olw== X-Gm-Message-State: AFq9FYJgdMTdIghhLlJCl+XxvWy/wednOsjJ3ZC0PAbfmT5ff76mq5b1 P2W+2dAWW8a+2KfM7X37RvKovtk6psEIvc96FBpmuaqNno3mK6K2NpgSo5UmgNE47xsW716ylgo lAxxgO3I= X-Gm-Gg: AYBFou2aUq977TD4Z0dgAwliAvMe7Rbwdoj5zTeCPQvCODK6MV1nwI3ykrlG8wHCIyS COeX6jxengm+7XObDILCQWYuua1D8j+qYwLE327cR5WXcCHg0WePgH/pqMwPjYiA7ediM6dOphd UDoyT9ai8YfassTycBRw042a20VNVgFtByoyHml1vPSMIJydoOLIIAQJpPgGpsZSHtBtem37o3H yLV41/dH6OIHHUr5aCibvSlhrkj5qk1+QWaR+zLkPrqqlNoGElZwYR8nbl2ds1sEA0rhiKAsTiz hz9OY6F7kG8+Ohd9UVtyyxMrLO331Ot6c8xFrM397UWyxqMwIzvvZ1C1B022dQNhKAWDKEDyEq7 lRxIKcfFBdkiyCAq9noDWWUwfm+FQV1n45DMCyvXtJtWK8DWKRM+TU7kYE3lzvT2wlUfVJ1qaAN IJ5qmVBc6OV/JF165kcZKTVXEkkUmmNwKj4HhYH52efrTwcdTMeSaF4+2MsiDXdeaGuYCRJFtnc zXloBBg9RyBeRegkGZrrDRwJHz4Xbd5kvGlJBGKSQ== X-Received: by 2002:a05:600c:3e05:b0:4a0:2391:6540 with SMTP id 5b1f17b1804b1-4a18e4cdbd0mr297988205e9.25.1791987161769; Wed, 14 Oct 2026 07:12:41 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:41 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 16/21] darwin-common: don't treat buildpaths QA as an error for the SDK Date: Wed, 14 Oct 2026 16:10:37 +0200 Message-ID: <20261014141209.488034-16-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5022 From: Etienne Cordonnier 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 --- conf/machine-sdk/darwin-common.inc | 5 +++++ 1 file changed, 5 insertions(+) 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" From patchwork Wed Oct 14 14:10:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14B4FCC6B2C for ; Wed, 14 Oct 2026 14:12:55 +0000 (UTC) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14774.1791987164921090160 for ; Wed, 14 Oct 2026 07:12:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=WFKXX+ty; spf=pass (domain: snapchat.com, ip: 209.85.128.47, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4a140e7405dso10292895e9.3 for ; Wed, 14 Oct 2026 07:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987163; x=1792591963; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uk08o3CHU6owgsQDx0yh6Tdb4tGCocwP5yAPNqyTRl4=; b=WFKXX+tyBF5eKYXXk497YKf68Ja0GDy1dFZd6KFzJDXfNuwipDVbYZ+5v73ohptT5U aC1D7mNn/r+2gFheqG/yFiyICnTxZ5cj2RnfpTZlKf4D31J4DitRMqBjP8cGXonyh0Xl eL2zuCwcnv8HMunkL/iVrxw/ys3bzHzjFCEZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987163; x=1792591963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=uk08o3CHU6owgsQDx0yh6Tdb4tGCocwP5yAPNqyTRl4=; b=Dp5S2m0tRXGSM+2nu8WFJrksawHnSAnzsie4uCYQOGK4W4iX//adBiP0uaifqwztc0 bdVyOx+0CuSvyM5RFUNj4U2DzJ7Q98rrE8J97urwW4Bol7AtrKSx6AOcaRz5JyjYNC8i vdHiWockMTRwWzWyOcS23j39gykuu9Ty795Hokl/20D11XVg2jfN99TTw0FhP+8XzOmd cJERAMb+bUgNAEzdEjL1GSZHTpNfr0VjIHfZm/E+TeZPpUEhmzafj38Q31HUUsIx0STh +i9DHtfEtRdL2SR2mA90V4N+XCKl1heBy08dHYEjM7vYw6g62w++b9KqoUPN76/uzkrJ 00Aw== X-Gm-Message-State: AFq9FYInqvKlMzn+t6kL2NwFd59GOg6dG0IAFn70sLdMcmm6+fq7GA/2 QW66A+ToJfhwBQzVhi/ix1g6UjfiVKwNF3xy3+OK2ISesIC3e1MWpI/VvsbRdwPWrix7HTA68VM 5cZjLvAI= X-Gm-Gg: AYBFou0KxM9gQ8gmB/ISaXqRV/f28J85XjeO63S+OVfJ6l/bqUwzqlFTx/zIX2ECxiM d37nvxjK43CmHguCjOJNFosarrkVptLtXmDMOSY0HWgicB1H7ZZHYnDjNXDvnkzJT6P0K+wTYXu MITb0waOfa8XxXv5XGHuxSCJJu4cCz+eZF2eBYltE9wqxql6TvltIWJb79YRHBAiGRx59XALOFh BCJucMf+F2g0c3A8IeVDX7GsX8cz4U8U0ifAkW9+q3RMY5aPms7XVjx03RwdJUODI1OGTpuiqV4 An0DQuexMTn0PaajyCM1wXhdtGvuELHupbpQH43VnYZN32Icft14rr0jt2+Nq5BIqX+J8AC1UER n24ZOpcNpAwOJ3MbNAYYIVg12dtIs4Pyhn5AIjmeSKNnx+5VWLFqgw0L8G8DQN+XFmqMiMmwPIB QICKNdffZi6su8ZHhsxv2inVhatsT/D5Rl8AsNIl4iOCRMFoUvVCjuQG0AWB/o6/xo1LOZElqn5 rPB0pAzT4oeCo68coj99qdAltAhsIndwpYJ9h6P1Q== X-Received: by 2002:a05:600c:4e41:b0:49f:c1a1:5222 with SMTP id 5b1f17b1804b1-4a18e4d80bdmr312207015e9.33.1791987163052; Wed, 14 Oct 2026 07:12:43 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:42 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 17/21] darwin-common: add the nativesdk include dir to the header search path Date: Wed, 14 Oct 2026 16:10:38 +0200 Message-ID: <20261014141209.488034-17-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5021 From: Etienne Cordonnier gcc-crosssdk's built-in header search on Darwin only covers the OS SDK tree (.../runtime/usr/include). Headers staged by our own nativesdk recipes live one level up and are only found via an explicit -I, e.g. nettle's gmp.h, curl's openssl/ssl.h (pkg-config drops the Cflags as a "system" path), file's lzma.h and llvm's zstd.h. Add -I${STAGING_INCDIR} to CPPFLAGS for every nativesdk recipe instead of per recipe. cmake.bbclass only feeds CFLAGS/CXXFLAGS into the compile flags, so llvm gets it through those, plus -F for the CoreFoundation framework that dsymutil needs. Tested by building nativesdk-nettle, nativesdk-curl, nativesdk-file and nativesdk-llvm for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- conf/machine-sdk/darwin-common.inc | 6 ++++++ recipes-devtools/clang/llvm_%.bbappend | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 recipes-devtools/clang/llvm_%.bbappend diff --git a/conf/machine-sdk/darwin-common.inc b/conf/machine-sdk/darwin-common.inc index 1e3f03b..a23c605 100644 --- a/conf/machine-sdk/darwin-common.inc +++ b/conf/machine-sdk/darwin-common.inc @@ -91,3 +91,9 @@ fakeroot create_macos_img() { # 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" + +# gcc's built-in header search on Darwin only covers the OS SDK include tree +# (.../runtime/usr/include); headers staged by our own nativesdk recipes live +# one level up and are only found via an explicit -I. Do this for every +# nativesdk recipe instead of per recipe (see e.g. curl, nettle). +CPPFLAGS:append:class-nativesdk = " -I${STAGING_INCDIR}" diff --git a/recipes-devtools/clang/llvm_%.bbappend b/recipes-devtools/clang/llvm_%.bbappend new file mode 100644 index 0000000..8565d67 --- /dev/null +++ b/recipes-devtools/clang/llvm_%.bbappend @@ -0,0 +1,15 @@ +# Unlike autotools recipes (nettle, curl), cmake.bbclass feeds CMAKE_C_FLAGS/ +# CMAKE_CXX_FLAGS from CFLAGS/CXXFLAGS only, not CPPFLAGS, so the usual +# CPPFLAGS:append trick for missing nativesdk headers has no effect here. +# zstd's headers are staged in the nested nativesdk sysroot, not the runtime +# macOS SDK tree gcc's default search covers. +CFLAGS:append:class-nativesdk:darwin21 = " -I${STAGING_INCDIR}" +CXXFLAGS:append:class-nativesdk:darwin21 = " -I${STAGING_INCDIR}" + +# OSXSDK is only set in clang's own bbappend, which doesn't carry over to this +# recipe's metadata, so redefine it here too. +OSXSDK:class-nativesdk:darwin21 = "${STAGING_DIR_TARGET}${SDKPATHNATIVE}/runtime" + +# dsymutil (tools/dsymutil/CFBundle.cpp) needs the CoreFoundation framework; +# frameworks need -F, not -I. +CXXFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks" From patchwork Wed Oct 14 14:10:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100684 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAD5ACC6B1D for ; Wed, 14 Oct 2026 14:12:54 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14776.1791987165526955190 for ; Wed, 14 Oct 2026 07:12:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=azaTqOyj; spf=pass (domain: snapchat.com, ip: 209.85.128.48, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a02718da81so33617275e9.1 for ; Wed, 14 Oct 2026 07:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987164; x=1792591964; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mgpWFb3dBkfqn6x9tXkYLR3G08aYFtXV6e4x45c+sSY=; b=azaTqOyjYC5w+9jbDCTNo9x2K+5KTmTIi1ygnX7iwCP37rXpM+N+iY7MP44+8h2syX A/0VwdxrVDb1ziVHeMGcHFJ3EmTGeBOal8ncGA6FGg3C5nE1UEd2mW2MtgFyS9H0E2DU 96YMpGQYGuRyaYHHsph2YNrm4cPIhv7upeD+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987164; x=1792591964; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mgpWFb3dBkfqn6x9tXkYLR3G08aYFtXV6e4x45c+sSY=; b=ECj1yKGTW8EgzujqUZ+nrX3p+aqxmu+RLR78T755pvwCTIZwzrz7CBpPPH+XXD6Gni 7+PN53gtdK9lbEvDNkT4B0jJWX655IlqTFw3Y7l5UK+il3BmggaZqx27iOrICJ/6jOOo fssHTogE9PoBu6MsW3OoBQ8pM5gbWvj/usE98fiXhtVFc+H09eZ1IS9IA8fH2dWWNDDd ZHof9MRpyvwRPLClT2R+0/YtRAwBH3LowXOnnEKSJc/xBEYAATPXfbsWfG557My3Xmg3 +U12Cmg3D6awovsqko1SNUVHXCVn09yypJpdxfXQWxlOwCda6Sh2JEJKRjKx4bleDEgS VnpA== X-Gm-Message-State: AFq9FYLzemm7nRX56MlZ9YIb2phzMFQyFCFtc7vS9POogPDbC9HexRxh YEMq229MccZ49Q5ZIYUMpUDE33HsJpTLZwOW9sqbDMLBMUmhlUyH7SkaqMQaj/kj05aOIAaVEfR jt1L0vvI= X-Gm-Gg: AYBFou3b7cU5xJvGHQRgouyVgxXdoQT4yCnZKKIiki00aSTBMf7B+9yAUd4sGFgEtAz psVYX00livRU7HvSrbCRies0ipSs2MXRXGEk6Ppmz2ykqbJfWKiro2rgKzasa4WYUb9c0W0bIEd GDisZQOh/sYe/Pz9DFuQlrCWjh/IkatAcFdkekSmgGUC9UhjSb0mO1JZ24RDrrKTNm8Qi+o/y4F xyVoyCvpRPKtuW9L9eGOX84GDKz2uk7Sy69cKfXLTAZg0ZfPVq7zq3rwnjk092p0yBCcFt4fJsx RKWwyMkpn/int0JYL9vG/pkFSDKwXvz4E/nSGsyl17wXuCbJbBdtmYlCXWuzEYum/mGN4C+ko5W 8WaxRZ/RK4Qs4q74+KvKBcd1pQXMenF5mYSU4yPu21M222CRFqOr+pquY0EftSNyEx6Ozt5bgH5 c/9cKRJTqb+4XOhZqQU9fOrZ5u9zM2OcWYT8tgkNiy/l3IVK8N2OFN1U1M1L7dws/wxpOumTthi y+9S46bqDorzsRNvfop2fEvavD/i/h2VnGLRj/vwA== X-Received: by 2002:a05:600c:8217:b0:49f:ce73:5e96 with SMTP id 5b1f17b1804b1-4a18e4d811fmr333788975e9.34.1791987163670; Wed, 14 Oct 2026 07:12:43 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:43 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 18/21] util-linux-libuuid: fix GCC ICE in uuid_time.c on Darwin nativesdk Date: Wed, 14 Oct 2026 16:10:39 +0200 Message-ID: <20261014141209.488034-18-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:54 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5023 From: Etienne Cordonnier GCC's Mach-O backend ICEs in assemble_alias on the weak alias of uuid_time in uuid_time.c. The file already has an asm-alias workaround, but only for clang; let GCC use it too. Tested by building nativesdk-util-linux-libuuid for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- ...alias-for-uuid_time-on-all-Apple-com.patch | 21 +++++++++++++++++++ .../util-linux/util-linux-libuuid_%.bbappend | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 recipes-core/util-linux/files/0001-libuuid-use-asm-alias-for-uuid_time-on-all-Apple-com.patch create mode 100644 recipes-core/util-linux/util-linux-libuuid_%.bbappend diff --git a/recipes-core/util-linux/files/0001-libuuid-use-asm-alias-for-uuid_time-on-all-Apple-com.patch b/recipes-core/util-linux/files/0001-libuuid-use-asm-alias-for-uuid_time-on-all-Apple-com.patch new file mode 100644 index 0000000..0a75554 --- /dev/null +++ b/recipes-core/util-linux/files/0001-libuuid-use-asm-alias-for-uuid_time-on-all-Apple-com.patch @@ -0,0 +1,21 @@ +From: Etienne Cordonnier +Subject: [PATCH] libuuid: use the asm alias for uuid_time on all Apple compilers + +The weak alias attribute ICEs GCC's Mach-O backend (in assemble_alias), +so the clang-only asm alias workaround must also be used when building +with GCC for Darwin. + +Upstream-Status: Pending +Signed-off-by: Etienne Cordonnier +--- +--- a/libuuid/src/uuid_time.c ++++ b/libuuid/src/uuid_time.c +@@ -144,7 +144,7 @@ + } + #if defined(__USE_TIME_BITS64) && defined(__GLIBC__) + extern time_t uuid_time64(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time"))); +-#elif defined(__clang__) && defined(__APPLE__) ++#elif defined(__APPLE__) + __asm__(".globl _uuid_time"); + __asm__(".set _uuid_time, ___uuid_time"); + extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv); diff --git a/recipes-core/util-linux/util-linux-libuuid_%.bbappend b/recipes-core/util-linux/util-linux-libuuid_%.bbappend new file mode 100644 index 0000000..826e362 --- /dev/null +++ b/recipes-core/util-linux/util-linux-libuuid_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +# GCC's Mach-O backend ICEs on __attribute__((weak, alias())) in +# uuid_time.c; use the asm alias path for GCC too. +SRC_URI:append:darwin21 = " \ + file://0001-libuuid-use-asm-alias-for-uuid_time-on-all-Apple-com.patch \ +" From patchwork Wed Oct 14 14:10:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1D0ACC6B2A for ; Wed, 14 Oct 2026 14:12:54 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14679.1791987166214122596 for ; Wed, 14 Oct 2026 07:12:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=XXHtsaPg; spf=pass (domain: snapchat.com, ip: 209.85.128.53, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4a02718da81so33617445e9.1 for ; Wed, 14 Oct 2026 07:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987164; x=1792591964; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HwdAaloJgBiSFFmUMxoBXih6f7FjuB8LOLZxkUiaiEM=; b=XXHtsaPg7PxEem5OcS/pxQa8EufNipsnBsa7l+BsOAvCkeVLHPJI4OjkJl56X4j6x/ +0TEj/+mNxgZRk3DdkaAhzJ7VgpVib+gv8zD9HXM0vvtOtXj67fZU/NVAMMv252b7ud6 smTPQwcvHuTC5p2Tvp2103gZqi/SXpBaSY33c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987164; x=1792591964; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=HwdAaloJgBiSFFmUMxoBXih6f7FjuB8LOLZxkUiaiEM=; b=mzBC7Z4XdFL5qYIfOOxK2vor+qszb7f2qZwYHXvxSqXKN36RK+pG7XFBjYjj8GMn3l 3isp2uzLx30mSH0WGdmaOwTFqio6zxuCcEPIj+UeN+XYiQOYzEWlnBdugkc1veU9hvDz vSZ5oSeNa2Ncv5qKM0KnXqcsnI47Pu0q0943EF6FEcWMJ8xz1Jtu+ISPeqt8k2kJsqvb zsr3rffk02qcAJkZNT8igXA594MlGxmnHI9l4VlcQCfXJ/Tjf8cIbP/8MuX+B6a6qbAM 842Zm8kCTtXAftrSkonTCPfImyYQITRgoY3M+do3BgamK5uvDVR/QpPiV9WwzrnOnHsU rBOA== X-Gm-Message-State: AFq9FYL01DT/cCjn5LqIqWdNsqHIBfspd5OE1M7yuez93oWQxtTMqmSN ISyKDOYQ6tY9hYMHb6DSvxwjznJBqNEmvneaPu/tFatmw9EN1Oc4UZVtTodfWvkrb4l1o8SxQ88 XRhTJchQ= X-Gm-Gg: AYBFou2RdhUDhRJCAZXxQnKwUGqBy/XVzrNBAaE8zSWK+LeDwGl4kvKu7DB0jIOxhF3 TebqYT1PUxpDAy+Bp9xPBbY6UJZojb19X05c6goHFKa3xqDB/H+cTEgVvJ6DoOUEr8iwVlLKfVN ftPKo7DQbfLA5T/LcFlBr9ybinH2VNM8xjC26rTNElrmJLhD3IuGqcSWhZqh92xGvbvIcR5envw 0AoTI2T1qLZrAWpjXiVF/UsV/3iKlPxnODTQp0rXtLX4D1QXZYS48vxNIWt+pl/8KxIeqAb5SiK uot7/BuHCBZU3BuynSoCmfJdG9gbEYdrQRDiEAsjR/KbOy9FnFKr6ZKZOYxTmjdeW+wH0dRAsfi +um/PTsCmB4CB8UfC1+rCA/EBVH6vFi6QjTNp9gBD+CX6bEtNOdwMISlgj32110/zc7yuXaQ5Sz Dif4OXMFlGo6qGTTjByrPJzKmvddVBCMKHTXRRpfwza6ERHu+EX7/0TnAqLnI+8ajikOJE7djmq LLMLX6Uq0HLuhGOA5mI543Kzjbj28CM2XdUdWJzwmT8Ewoyf3yi X-Received: by 2002:a05:600c:46cc:b0:4a0:8b1:f5c with SMTP id 5b1f17b1804b1-4a18e4b583fmr317436515e9.22.1791987164347; Wed, 14 Oct 2026 07:12:44 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:43 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 19/21] libedit: don't include glibc's stdc-predef.h on Darwin nativesdk Date: Wed, 14 Oct 2026 16:10:40 +0200 Message-ID: <20261014141209.488034-19-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:54 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5024 From: Etienne Cordonnier chartype.h includes unconditionally, which doesn't exist in the macOS SDK or the Darwin GCC toolchain, so do_compile fails. Skip the include on __APPLE__. Tested by building nativesdk-libedit for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- ...don-t-include-stdc-predef.h-on-Apple.patch | 21 +++++++++++++++++++ recipes-devtools/libedit/libedit_%.bbappend | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 recipes-devtools/libedit/files/0001-chartype.h-don-t-include-stdc-predef.h-on-Apple.patch create mode 100644 recipes-devtools/libedit/libedit_%.bbappend diff --git a/recipes-devtools/libedit/files/0001-chartype.h-don-t-include-stdc-predef.h-on-Apple.patch b/recipes-devtools/libedit/files/0001-chartype.h-don-t-include-stdc-predef.h-on-Apple.patch new file mode 100644 index 0000000..62317a2 --- /dev/null +++ b/recipes-devtools/libedit/files/0001-chartype.h-don-t-include-stdc-predef.h-on-Apple.patch @@ -0,0 +1,21 @@ +From: Etienne Cordonnier +Subject: [PATCH] chartype.h: don't include stdc-predef.h on Apple + +stdc-predef.h is a glibc header which doesn't exist in the macOS SDK +or the Darwin GCC toolchain. + +Upstream-Status: Pending +Signed-off-by: Etienne Cordonnier +--- +--- a/src/chartype.h ++++ b/src/chartype.h +@@ -29,7 +29,9 @@ + #ifndef _h_chartype_f + #define _h_chartype_f + ++#ifndef __APPLE__ + #include ++#endif + /* Ideally we should also test the value of the define to see if it + * supports non-BMP code points without requiring UTF-16, but nothing + * seems to actually advertise this properly, despite Unicode 3.1 having diff --git a/recipes-devtools/libedit/libedit_%.bbappend b/recipes-devtools/libedit/libedit_%.bbappend new file mode 100644 index 0000000..75e63a8 --- /dev/null +++ b/recipes-devtools/libedit/libedit_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI:append:darwin21 = " \ + file://0001-chartype.h-don-t-include-stdc-predef.h-on-Apple.patch \ +" From patchwork Wed Oct 14 14:10:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100689 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26564CC6B2D for ; Wed, 14 Oct 2026 14:12:55 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14680.1791987166954170833 for ; Wed, 14 Oct 2026 07:12:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=UBImVVxk; spf=pass (domain: snapchat.com, ip: 209.85.128.44, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a02718da81so33617555e9.1 for ; Wed, 14 Oct 2026 07:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987165; x=1792591965; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1iQKp3uEXTMxAJpSIOEbKRa6dnxrirTTmZShJjS1FK0=; b=UBImVVxk1J7Cw2NTEct5OjLnHg7yMknWVKNjRoxw+3YF1pru+oL41jUT5p/sK+Z0tN mPNI8+eAJ0fVYdzyXzhcF45wdi/i7BRPm4hmy4/34Ss9vb5XshHm6O2SdPf+ppj1Z0aQ E1xm203aE2rGcBuWRTmop9X26M91Py+a7UOxQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987165; x=1792591965; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=1iQKp3uEXTMxAJpSIOEbKRa6dnxrirTTmZShJjS1FK0=; b=rQN8qqNxQpxiBWUBNaXKVECjB8XlBdGJuFqVDBOTs44xpzH6lyu4RGouOwYGk1EDyv fwGFhaUhPQXuad2Zb/l3uNPCJIdtPn2xaOhiqU+itwuCL3cLLExl4LX5cfSHsama0rE2 uSLfs8G62tdyU93/8xgXpICDxh8jUyqSZ1/kgC/OjIoEh+RytTAOIFZTEDoD1AFlAcWQ oWTy1pGs6/Evo4brROe/igDXu5vsFnEJhUdDgTX/35oTrjQbYG7AAo2OpCDFwtMJAJa1 lTSi2+e4WGfUpFaOFrktLBBWOTZKhVhpkj6XI4Wi19OknMP18Yzwncsb3ar0T1aRIyfy d9IQ== X-Gm-Message-State: AFq9FYKn4g0paEzGHZCXyG/FEOxH36nbatYDW34qWpHQRXqEtdqYa6DC bL0xM+Qb3zBNqmdZ3khyJlL8yqsJYzFrftqjcvfhq6hKTUfIRAn6wainpeSzWaW/W//DD+Acl4h qR/lFir8= X-Gm-Gg: AYBFou2qisnr7LtT0IgjqgcoYtEDIn9ny4/CdSXk31QHJJ/TPOfjnvdak6y+ZHeo0qS nL1lJ1ZWgkDwH44JW7zhsPeBVQ6GC6xsKqRl11kyofnlmh/VzA1jWPEOix3K65s7Elv0vQfuURJ 4xcgGXI12zguBbCB123y04q2y2epvAWGQbb5OfFgydFePwr4cY+hpDXB7MkeQP2Mm4lIqtvchcW bEwBDNJgrgxV7rMui/ype1ah5fozrrXaMCkWmlOupcf8gRpPgl0CnlamwZZQrb2Qbf8hLkJZm1K 3UYbcpBOmpDRk+V54J+ZxI0IBShJrOsDd/TZR4qJkJTKJHe/WQyPVTTIgpw6Qvb0OcOnfpBTwpB CIrVdjUghdxFpmIfi9cOxZMZRlCglaKsIEUcvrsylBBRtYwDHpsz7E2MoYEevv+LZ8F5jfaZgIE OBwL9UmhmOqnyv+CHoFxIqTrHcPf52AGBlJnpwEV7eUSnukdsslVUCe46iYDqPH96YWnNZB17hX I47BlcXHpoma6fbyTGr0AUimdt4/6/YjZi3YdK/Og== X-Received: by 2002:a05:600c:524d:b0:4a1:80d8:aeb3 with SMTP id 5b1f17b1804b1-4a18e4a95c2mr315023365e9.12.1791987165043; Wed, 14 Oct 2026 07:12:45 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:44 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 20/21] bash: link the in-tree readline on Darwin nativesdk Date: Wed, 14 Oct 2026 16:10:41 +0200 Message-ID: <20261014141209.488034-20-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5025 From: Etienne Cordonnier -lreadline resolves to the macOS SDK's libreadline.tbd stub, found via the runtime/usr/lib -L path which precedes -L./lib/readline, instead of the readline built in-tree. All rl_* symbols are then undefined at link time. Link the in-tree archive by path. Tested by building nativesdk-bash for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- recipes-extended/bash/bash_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 recipes-extended/bash/bash_%.bbappend diff --git a/recipes-extended/bash/bash_%.bbappend b/recipes-extended/bash/bash_%.bbappend new file mode 100644 index 0000000..31d46a6 --- /dev/null +++ b/recipes-extended/bash/bash_%.bbappend @@ -0,0 +1,5 @@ +# "-lreadline" resolves to the macOS SDK's libreadline.tbd stub (found via +# the runtime/usr/lib -L path, which comes before -L./lib/readline) instead +# of the readline built in-tree, which leaves all rl_* symbols undefined. +# Link the in-tree archive by path. +EXTRA_OEMAKE:append:darwin21 = " 'READLINE_LIB=$(READLINE_LIBRARY)'" From patchwork Wed Oct 14 14:10:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Cordonnier X-Patchwork-Id: 100685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93D60CC6B1A for ; Wed, 14 Oct 2026 14:12:54 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14777.1791987168826465266 for ; Wed, 14 Oct 2026 07:12:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=W0esucdg; spf=pass (domain: snapchat.com, ip: 209.85.128.54, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4980fe6b3beso32403205e9.0 for ; Wed, 14 Oct 2026 07:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1791987167; x=1792591967; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BguFgbvJhQu9z5QfsHL47E2+IjH37SY7kKXTlMAZMG4=; b=W0esucdgWr7szY6fH3dPeXNibbroPU09vrlP/dRinoGgVjJAmgapZka+L+XYtaLzx3 aE/6mZZqISBXx7nM/h/yac6rQJaem7BkvefXQjpKnHWQEdUPswp8nlIXnpQk6bmu0V5n eqpwHgwaA0IP1rg9jn0JRMkttaLxeEeqEbCxM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791987167; x=1792591967; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=BguFgbvJhQu9z5QfsHL47E2+IjH37SY7kKXTlMAZMG4=; b=r++NNSSR7vJAXTiUEmUlFbwqqgieFWi7rKekDDFfd3k/N44o5QBnK6GEAPBUuOeof9 +7ilH/4IftBd7P+xKhw82toVe0AtV14xt5+PnBRgUVXeaYTyl1g6/dpgCdQGy55+MJpz hhGlABK7aLG0rhc233FPpafrKks/fIKh6qi5ZMwUEWzUj/zcO+K4b8XmzJ1wdJhKbAVg s9sHO9iD446YUQdvvL/BFG063RjISjlMab6HppsO9nlX5O5X8kpzSRz8+7Opik8KAt+2 Uw/Llk5aVs64hhVsKrpNgihl2zF98Qnk7mD+PRvypa60Nm69Obff0ReJD9nq+djzJ3K7 udlg== X-Gm-Message-State: AFq9FYJNCZVABYty4jOBKLNegsA9zBlme95Jq9NvJMLdVSefU7MUFStJ Hhfi8w2kABa7SXU5zIGmDOwkNxrlFHu9mjLhS7s8TZb+hW9wlIZ4UwZ9tYJ+Cto5fqTE5TZ2vLa Aj9NsU8s= X-Gm-Gg: AYBFou1cAUC8cJx5TPNIf4btdUMLAOzdVo7QpN6yD3TJr//936AZuyLk9F99jBxH5UR NTjpAUOi142SYM1L3CG3Y7zJVIQbKG/Qe81ZCh48bOSiOy7avzcRDFXgxs+UozysCi0RBNT3Lqa Ag6dOWNlJQDbEj5DLNjcmo7fZJv0wqZqrN3ICszrhpVgYKsNycrUTiJbyPFYXC5T+ZDuB5Uzoh+ NJ70c75RMj3a/iDAEXwughbWwdPrlwNBATbF3+J5LByaDR4OmddRuRqB8jpowscgQAEe7PhMR1n yo02lW7xhvuUQ/pbw+9V5jVh2kmImpb8QF0z4dWN6luSK/LH07R7CxkT75nn+kbtKEp9NB2fRZy 6dUODxM3g9shq5GSfuvioahbjFY7l1nrakJreh97fiVw/gH9qA6DNASZMkgzuKxlj+BoTCAvNWX eHNSRpapyAK/2FbbHD9wg/Xt5u/s2X2oRnHdhpj1y0JvJwxElSYjQsB0P2FjUkSvnpaSAb4v58+ xNVGnYFxTM3ffTd7oYZ96nRHYCqF9mcYn+G0Vymqw== X-Received: by 2002:a05:600c:8b02:b0:4a1:6d2d:d8bb with SMTP id 5b1f17b1804b1-4a18e4a00dfmr337425605e9.12.1791987166891; Wed, 14 Oct 2026 07:12:46 -0700 (PDT) Received: from lj8k2dq3.sc-core.net ([85.237.126.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1bd202e8esm299965e9.6.2026.10.14.07.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 07:12:45 -0700 (PDT) From: ecordonnier@snap.com To: yocto-patches@lists.yoctoproject.org Cc: Etienne Cordonnier Subject: [meta-darwin][PATCH 21/21] gdb-cross-canadian: point --with-liblzma-prefix at the SDK sysroot prefix Date: Wed, 14 Oct 2026 16:10:42 +0200 Message-ID: <20261014141209.488034-21-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014141209.488034-1-ecordonnier@snap.com> References: <20261014141209.488034-1-ecordonnier@snap.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Oct 2026 14:12:54 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5026 From: Etienne Cordonnier The PACKAGECONFIG's --with-liblzma-prefix=${STAGING_DIR_HOST} doesn't find lzma.h and liblzma, which are installed below the SDK prefix in the recipe sysroot, so configure fails with "missing liblzma". Use STAGING_EXECPREFIXDIR, as already done for gmp/mpfr/mpc. Tested by building gdb-cross-canadian-x86-64 for x86_64-darwin. AI-Generated: Claude Sonnet 5.5 Signed-off-by: Etienne Cordonnier --- recipes-devtools/gdb/gdb-cross-canadian_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend index 8d30ffb..ccdd43d 100644 --- a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend +++ b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend @@ -23,3 +23,7 @@ do_compile:append:darwinsdk() { DEPENDS:append:darwinsdk = " nativesdk-zlib " INSANE_SKIP:append:darwinsdk = " buildpaths" + +# The PACKAGECONFIG's --with-liblzma-prefix=${STAGING_DIR_HOST} doesn't find +# lzma.h/liblzma, which are installed below the SDK prefix in the sysroot. +EXTRA_OECONF:append:darwinsdk = " --with-liblzma-prefix=${STAGING_EXECPREFIXDIR}"