Hi all,

A status update on getting Zig into Debian, since there is real progress to report.

My own bootstrap chain (zig-bootstrap[0], the orig-stage0 tarball idea) is archived. Simon Josefsson indicated here on the debian-devel ML that he thought that an orig-stage0 tarball would not be acceptable[1]. Therefore, I switched to Ivan's package called zig-wasm-bootstrap[2], which Simon indicated sounded good [ibid. 1].

Ivan's zig-wasm-bootstrap works, and builds cleanly on a real buildd. I tested commit 8f4d56f (the Go-rewritten tarball generator): it builds a complete seed from source in a clean unstable sbuild chroot, without a blob at any point.

I then fed that seed into a build of zig[3] (not yet devendored): it builds, and passes the complete upstream test suite: test-cli, test-unit, test-c-abi, test-link, test-stack-traces, test-error-traces, test-behavior, test-compiler-rt, test-libc, test-std, restricted to the native target.

With that zig I then built the devendored zig (so: Zig building Zig, as intended by upstream -- but with lib/libc, lib/include, lib/libtsan stripped) [4][5], using it as an ordinary Build-Depends: zig. It also builds and passes the full test suite, after one small fix: the build tree's self-test run needed the same lib/include symlink trick the install tree already had, since dh_link runs after dh_auto_test (I had devendored lib/include - by linking it manually for the test, I made Debian's clang-22 to the test suite).

I struggled a lot with reprotest (it can't handle domain, kernel, or large time changes in sbuild), and after a brief chat on IRC tonight, I learned that most devs just look at the Salsa CI output. This does not currently work for me, as the bootstrap package is only available on Salsa, but I will try some diffoscopes on separate builds all the same, perhaps tomorrow.

So: seed [2] → zig [3] → devendored zig [4], each stage building and testing clean.

I am still hoping to be admitted to the zig-team on Salsa (@Maytham?), and for a debian-zig mailinglist (http://bugs.debian.org/1153898).

If any DD's want to have a look and see if they think this is viable enough to be proposed to ftpmasters, please let us know. If an ftpmaster is lurking, and has suggestions to make this work, please definitely do reach out.

Many thanks!

Kind regards,

Edmund Lodewijks


[0]: https://salsa.debian.org/ejjl/zig-bootstrap
[1]: https://lists.debian.org/debian-devel/2026/11/msg00192.html
[2]: https://salsa.debian.org/zig-team/zig-wasm-bootstrap
[3]: https://salsa.debian.org/ejjl/zig/-/tree/experiment/ivan-seed
[4]: https://salsa.debian.org/ejjl/zig/-/tree/debian/devendor
[5]: See also: https://lobste.rs/s/0ouxwf/libghostty_1_0#c_kmr7ar and further



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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to