Skip to contentSkip to conversation

cctools-port: update to 1010.6

PATCH New [email protected] 1 participant 4 messages Apr 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 cctools-port: update to 1010.6

From: Dominik Schnitzer <[email protected]>

---
 ...0.1.bb => cctools-port-crosssdk_1010.6.bb} | 20 +++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
 rename recipes-devtools/cctools-port/{cctools-port-crosssdk_973.0.1.bb => cctools-port-crosssdk_1010.6.bb} (73%)
recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb renamed from recipes-devtools/cctools-port/cctools-port-crosssdk_973.0.1.bb +14 -6
similarity index 73%
rename from recipes-devtools/cctools-port/cctools-port-crosssdk_973.0.1.bb
rename to recipes-devtools/cctools-port/cctools-port-crosssdk_1010.6.bb
index 1246d88..4d2625a 100644
@@ -3,17 +3,25 @@ SECTION = "devel"
 LICENSE = "APSL-2.0"
 LIC_FILES_CHKSUM = "file://cctools/APPLE_LICENSE;md5=dacaafbaf91483700da837d31213a1e8"
 
-SRCREV = "f28fb5e9c31efd3d0552afcce2d2c03cae25c1ca"
-SRC_URI = "git://github.com/tpoechtrager/cctools-port.git;branch=master;protocol=https"
-
-PR = "r2"
+SRCREV = "a2724f04cafe3590fbc3d0beacc37293d83a2177"
+SRC_URI = "git://github.com/tpoechtrager/cctools-port.git;nobranch=1;protocol=https"
 
 inherit autotools crosssdk
 
-DEPENDS += "util-linux-native openssl-native xar-native libtapi-native"
+DEPENDS += " \
+    util-linux-native \
+    openssl-native \
+    xar-native \
+    libtapi-native \
+    libdispatch-native \
+"
+
 PROVIDES = "virtual/${TARGET_PREFIX}binutils"
 
-DEPENDS += "clang-native libcxx-native"
+DEPENDS += " \
+    clang-native \
+    libcxx-native \
+"
 
 TOOLCHAIN:class-crosssdk = "clang"
 COMPILER_RT:class-crosssdk = "-rtlib=libgcc --unwindlib=libgcc"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/4 libtapi: update to 1300.6.5

From: Dominik Schnitzer <[email protected]>

---
 ...tive_git.bb => libtapi-native_1300.6.5.bb} | 26 +++++++++++--------
 1 file changed, 15 insertions(+), 11 deletions(-)
 rename recipes-devtools/libtapi/{libtapi-native_git.bb => libtapi-native_1300.6.5.bb} (67%)
recipes-devtools/libtapi/libtapi-native_1300.6.5.bb renamed from recipes-devtools/libtapi/libtapi-native_git.bb +15 -11
similarity index 67%
rename from recipes-devtools/libtapi/libtapi-native_git.bb
rename to recipes-devtools/libtapi/libtapi-native_1300.6.5.bb
index 3c09387..e60363d 100644
@@ -1,8 +1,7 @@
 # Copyright (C) 2020 Dominik Schnitzer <[email protected]>
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-TAPI_REPOSITORY="1100.0.11"
-TAPI_VERSION="11.0.0"
+TAPI_VERSION="1300.6.5"
 
 SUMMARY = "Apple libtapi for tdb support"
 HOMEPAGE = "https://github.com/tpoechtrager/apple-libtapi"
@@ -11,39 +10,44 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE.APPLE-LIBTAPI.txt;md5=ecd05d65
 
 SECTION = "devel"
 
-SRCREV = "b7b5bdbfda9e8062d405b48da3b811afad98ae76"
+SRCREV = "aa37c11ad1a817248c9d1578ac99e133875b4eb5"
 SRC_URI = "git://github.com/tpoechtrager/apple-libtapi.git;nobranch=1;protocol=https"
 
 PACKAGES = "${PN}-dbg ${PN} ${PN}-dev"
 
-OECMAKE_GENERATOR = "Unix Makefiles"
-
 inherit cmake native
 
 S = "${WORKDIR}/git/src/llvm"
 B = "${WORKDIR}/build"
 
-DEPENDS += "clang-native libcxx-native"
+DEPENDS += " \
+    clang-native \
+    libcxx-native \
+"
 
 TOOLCHAIN:class-native = "clang"
 COMPILER_RT:class-native = "-rtlib=libgcc --unwindlib=libgcc"
 LIBCPLUSPLUS:class-native = "-stdlib=libc++ -lc++abi"
 
-CXXFLAGS:append = " -I${WORKDIR}/git/src/llvm/projects/clang/include -I${B}/projects/clang/include"
+CXXFLAGS += " \
+    -I${WORKDIR}/git/src/llvm/projects/clang/include \
+    -I${B}/projects/clang/include \
+"
 
 EXTRA_OECMAKE:append = " \
  -DLLVM_INCLUDE_TESTS=OFF \
- -DTAPI_REPOSITORY_STRING=${TAPI_REPOSITORY} \
+ -DLLVM_ENABLE_PROJECTS='tapi;clang' \
+ -DTAPI_REPOSITORY_STRING=${TAPI_VERSION} \
  -DTAPI_FULL_VERSION=${TAPI_VERSION} \
  -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
 "
 
 do_compile() {
     cd ${B}
-    make -j clangBasic
-    make -j libtapi
+    ninja clangBasic
+    ninja libtapi
 }
 
 do_install() {
-    DESTDIR='${D}' make install-libtapi install-tapi-headers
+    DESTDIR='${D}' ninja install-libtapi install-tapi-headers
 }
Signature · 1 line
2.43.0
#2 lore raw

PATCH 3/4 xar: update to 5fa4675419

In reply to [email protected]

From: Dominik Schnitzer <[email protected]>

---
 recipes-devtools/xar/xar_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/xar/xar_git.bb +1 -1
index 575ac36..19930b5 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/tpoechtrager/xar"
 LICENSE = "BSD-3-Clause"
 SECTION = "devel"
 
-SRCREV = "2b9a4ab7003f1db8c54da4fea55fcbb424fdecb0"
+SRCREV = "5fa4675419cfec60ac19a9c7f7c2d0e7c831a497"
 SRC_URI = " \
     git://github.com/tpoechtrager/xar.git;branch=master;protocol=https \
     file://0001-fix-compilation-error.patch \
Signature · 1 line
2.43.0
#3 lore raw

PATCH 4/4 libdispatch: add apple-libdispatch 1.3

In reply to [email protected]

From: Dominik Schnitzer <[email protected]>

---
 .../libdispatch/libdispatch_git.bb            | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 recipes-devtools/libdispatch/libdispatch_git.bb
recipes-devtools/libdispatch/libdispatch_git.bb new file +27 -0
new file mode 100644
index 0000000..05b309d
@@ -0,0 +1,27 @@
+# Copyright (C) 2025, Snap Inc.
+# SPDX-License-Identifier: MIT
+
+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"
+
+SECTION = "devel"
+
+SRCREV = "e85f6a0d5c9ea1f32f5013c3fa34e4fc146cd0eb"
+SRC_URI = "git://github.com/swiftlang/swift-corelibs-libdispatch.git;nobranch=1;protocol=https"
+
+inherit cmake
+
+BBCLASSEXTEND = "native"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
+
+DEPENDS += " \
+    clang-native \
+    libcxx-native \
+"
+
+TC_CXX_RUNTIME:class-native = "llvm"
+TOOLCHAIN:class-native = "clang"
Signature · 1 line
2.43.0