Hi,

I am packaging the Zig compiler (zig-0.17, ITP #995670). It is not yet uploaded: its build dependency zig-wasm-bootstrap is in NEW, and zig-0.17 is expected to follow once that is accepted. Per https://wiki.debian.org/Packaging/EmbeddedCopies I would like to register an embedded code copy ahead of that.

zig-0.17-src ships upstream's vendored LLVM runtimes as source: lib/libcxx, lib/libcxxabi, lib/libunwind, lib/libtsan, lib/ubsan_rt and lib/compiler_rt. In 0.17.1 these are LLVM 22.1.8, the same upstream version as Debian's libc++-22-dev.

There are two things that, I think, make this one a bit different from other embeded libraries, so I would like to make you aware of this ahead of time.

 * The code is not in zig's own binaries. zig compiles these runtimes
   from source, per target, on demand. They end up in whatever a user
   builds with `zig c++` or -fsanitize=thread.

 * Rebuilding zig-0.17 against a fixed libc++-22-dev achieves nothing,
   because zig does not use that package. A fix has to reach the copy in
   zig's own source, by an upstream refresh or a Debian patch, and users
   must then rebuild their own programmes.

The copies cannot simply be dropped: Debian's prebuilt runtimes are host-architecture only, with no cross variants and not 'Multi-Arch: same'. Therefore, substituting them would give up C++ and the sanitisers for every non-host target. Unvendoring would need the LLVM packages to ship these runtimes as source, so I intend to use <unfixed> should the package get into the archive.

I have proposed the entry as a merge request:

https://salsa.debian.org/security-tracker-team/security-tracker/-/merge_requests/349

The wiki suggests this list rather than a merge request for people without commit access, so please take whichever is less work. And please do trim the entry if it is longer than you would like.

Kind regards,

    Edmund


--
Edmund Lodewijks <[email protected]>
TZ: UTC+2 / GMT+2

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to