Debian Patches

Status for dart-sdk/3.13.4+dfsg1-2

Patch Description Author Forwarded Bugs Origin Last update
0001-use-lld-with-icf.patch Link with lld when identical code folding is requested Upstream adds -Wl,--icf=all to the optimised link, which only GNU gold, lld
and mold implement. That is safe upstream because the bundled buildtools
clang defaults to lld, but the Debian system clang defaults to GNU ld.bfd,
which rejects --icf=all and the link fails. Request lld explicitly alongside
the flag.
.
The same hunk also restricts the synthetic toolchain-version define to builds
that actually use the bundled toolchain: the define is stamped from
buildtools/.../clang.cipd_version, a file that does not exist when the SDK is
built against the system clang (clang_prefix != default_clang_prefix), as
Debian does.
Juan Manuel Méndez Rey <juan.mendezr@proton.me> no 2026-09-18
0002-use-system-clang-toolchain.patch Honour clang_prefix in the Linux toolchain definition build/toolchain/linux/BUILD.gn hardcodes the bundled buildtools clang for every
host except the alpine sysroot, so setting the upstream clang_prefix build
argument has no effect on the toolchain the build actually invokes. Use
clang_prefix whenever it differs from the upstream default, which is how this
package points the build at the Debian system clang/lld (/usr/lib/llvm-N/bin)
without any bundled toolchain.
Juan Manuel Méndez Rey <juan.mendezr@proton.me> no 2026-09-18
0003-make-prebuilt-devtools-optional.patch Make the prebuilt DevTools bundle optional The SDK build unconditionally installs the DevTools web application, taking it
either from third_party/devtools/web (a prebuilt CIPD bundle of compiled
Flutter web output, WebAssembly and bundled fonts) or, with
build_devtools_from_sources, from a Flutter toolchain that is not part of this
tree. Neither is usable in Debian: the prebuilt bundle is not source and is
therefore stripped from the Debian orig tarball, and Flutter is not in the
archive.
.
Add a dart_include_devtools build argument, defaulting to the upstream
behaviour, so the SDK can be built without DevTools. It is declared in
sdk_args.gni because both sdk/BUILD.gn and utils/dartdev/BUILD.gn copy the
bundle and both have to honour it. debian/rules sets it to false.
.
This does not affect the compiler, analyzer, formatter, dart2js or pub; it only
omits the browser debugging UI served by `dart devtools`. Note that only the
prebuilt web/ subdirectory is removed from the source package: the
devtools_shared Dart library beside it is source and is still built, because
pkg/dds depends on it.
Juan Manuel Méndez Rey <juan.mendezr@proton.me> no 2026-09-19
0004-dartdoc-drop-vendored-minified-highlight-js.patch dartdoc: drop the vendored minified Highlight.js dartdoc ships third_party/pkg/dartdoc/lib/resources/highlight.pack.js, a
minified build of Highlight.js 11.11.1 that upstream vendors without the
corresponding sources, and copies it into the documentation it generates. Since
it cannot be shipped as source it is excluded from the Debian source package
(see debian/copyright), so the three places that refer to it have to go too, or
`dart doc` would fail when it tries to copy a resource that is not there:
the generated resource manifest, the footer template, and the ahead-of-time
renderer generated from that template.
.
The only user-visible effect is that generated API documentation is not
syntax-highlighted. Everything else dartdoc emits, including its own
docs.dart.js (which is built from dartdoc's Dart sources in this same source
package and ships its source map), is unaffected.
Juan Manuel Méndez Rey <juan.mendezr@proton.me> not-needed 2026-09-19

All known versions for source package 'dart-sdk'

Links