dev-lang/dart: add 3.14.0, drop 3.13.7

Because 3.14.0 sets enable_cfi and changes the sysroot stamp logic in
build/config/compiler/BUILD.gn, the 3.10.2 use_system_clang hunk no
longer applies; regenerate it as a 3.14.0 patch. Require dart-bootstrap
3.14.0 because pkg/dev_compiler needs language version 3.14. The SDK now
builds dartcliruntime (plus _asan, _tsan, and _msan with clang), so mark
them executable. The SDK installs the stripped copies from
exe.stripped/, which Portage reports as pre-stripped files, so set
stripped_binary_prefix="" to install the unstripped binaries and let
Portage strip them.

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-11-13 04:50:27 +11:00
1 parent dabbc2fc7f
commit 824f105bc0
3 files changed
+16 -10

No files matched your search

+1 -1
View File
@@ -1 +1 @@
DIST dart-sdk-3.13.7.tar.zst 451685577 BLAKE2B 2587a2821114e1eb39a3ed9ec42c9b4ce9f9e8c31fd98a0d3222ceabc2088880ed9f010aa625f23c6d390d4326023919384d378e22db86f5db9bd179c32b149d SHA512 4bf58338e3d23ffce1d7638911303c9a7030b21c1aaf49448c4c3e738518c5a66365a348896e70a5f008d49fcd77bacc8048d9ecf09674d6ec1c1fd09c22c4e4
DIST dart-sdk-3.14.0.tar.zst 452067090 BLAKE2B dd2a0d7c9fd0298197fd0c59268bb80c96b188e640cb185b04c01f6d09cc0f398f556f0bcc4c1c39bad5584acb86e74a7423151518b413a2afbfd565f5db60f2 SHA512 9215cd3369140d39f54567e6b924cf153e829d3ef890cc47cfcf814ae10a6e2a88579a7a93f7817d7ac29e96e830453a858cb972eb23fe7c1835aa2e935e5219
@@ -28,7 +28,7 @@ IUSE="clang"
REQUIRED_USE="clang? ( ${LLVM_REQUIRED_USE} )"
BDEPEND="
>=dev-lang/dart-bootstrap-3.13.4
>=dev-lang/dart-bootstrap-3.14.0
dev-build/gn
dev-build/ninja
dev-vcs/git
@@ -45,7 +45,7 @@ QA_FLAGS_IGNORED="usr/lib/dart/bin/snapshots/.*\.snapshot"
PATCHES=(
"${FILESDIR}/${PN}-3.10.2-fix_toolchain_prefix.patch"
"${FILESDIR}/${PN}-3.10.2-use_system_clang.patch"
"${FILESDIR}/${PN}-3.14.0-use_system_clang.patch"
"${FILESDIR}/${PN}-3.10.2-use_lld_when_using_clang.patch"
"${FILESDIR}/${PN}-3.10.2-custom_flags.patch"
"${FILESDIR}/${PN}-3.12.2-no-werror.patch"
@@ -83,6 +83,8 @@ src_configure() {
mygnargs+=( 'is_release=true' )
mygnargs+=( 'dart_platform_sdk=false' )
mygnargs+=( 'verify_sdk_hash=false' )
# Install the unstripped binaries and leave stripping to Portage.
mygnargs+=( 'stripped_binary_prefix=""' )
use clang && mygnargs+=( "clang_toolchain_dir=\"$(get_llvm_prefix -b)/bin\"" )
gn gen --args="${mygnargs[*]}" out/Release
}
@@ -108,6 +110,10 @@ src_install() {
fperms +x /usr/lib/dart/bin/dartaotruntime_asan
fperms +x /usr/lib/dart/bin/dartaotruntime_tsan
use clang && fperms +x /usr/lib/dart/bin/dartaotruntime_msan
fperms +x /usr/lib/dart/bin/dartcliruntime
fperms +x /usr/lib/dart/bin/dartcliruntime_asan
fperms +x /usr/lib/dart/bin/dartcliruntime_tsan
use clang && fperms +x /usr/lib/dart/bin/dartcliruntime_msan
fperms +x /usr/lib/dart/bin/utils/gen_snapshot
fperms +x /usr/lib/dart/bin/utils/wasm-opt
@@ -1,8 +1,7 @@
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index b041a075..60a9a868 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -396,40 +396,6 @@ config("compiler") {
@@ -448,41 +448,6 @@
}
}
@@ -17,7 +16,8 @@ index b041a075..60a9a868 100644
- } else if (is_linux) {
- toolchain_stamp_file =
- "//buildtools/linux-x64/clang/.versions/clang.cipd_version"
- } else if ((is_mac || is_ios) && host_cpu == "arm64") {
- } else if ((is_mac || is_ios) &&
- (host_cpu == "arm64" || host_cpu == "arm64e")) {
- toolchain_stamp_file =
- "//buildtools/mac-arm64/clang/.versions/clang.cipd_version"
- } else if (is_mac || is_ios) {
@@ -28,12 +28,12 @@ index b041a075..60a9a868 100644
- defines = [ "TOOLCHAIN_VERSION=${toolchain_cipd_version.instance_id}" ]
-
- if (is_linux) {
- if (current_cpu == "riscv64") {
- sysroot_stamp_file =
- "//buildtools/sysroot/focal/.versions/sysroot.cipd_version"
- } else {
- if (current_cpu == "x64") {
- sysroot_stamp_file =
- "//buildtools/sysroot/linux/.versions/sysroot.cipd_version"
- } else {
- sysroot_stamp_file =
- "//buildtools/sysroot/jammy/.versions/sysroot.cipd_version"
- }
- sysroot_cipd_version = read_file(sysroot_stamp_file, "json")
- defines += [ "SYSROOT_VERSION=${sysroot_cipd_version.instance_id}" ]