Article View: linux.debian.devel
Article #428Re: RFS: Bringing [zig] to Debian: A from-source bootstrap that reproduces upstream's seed
From: Edmund Lodewijks
Date: Wed, 11 Nov 2026 17:40
Date: Wed, 11 Nov 2026 17:40
23 lines
3317 bytes
3317 bytes
Hi Simon,
Thank you very much for joining the Zig discussion, and for your advice / recommendation!
A bootstrap build profile sounds fine to me, and I am happy to include that.
I would like to ask you for a clarification if you don't mind. A profile build still has to start from something that is already in Debian, and we don't have that yet.
Zig's own from-C path is bootstrap.c, and it needs stage1/zig1.wasm. That file is a precompiled binary, so it cannot stay in the source package. Removing it is the whole point of the work others and I did in an attempt to get Zig into Debian.
So what should a profile build start from?
(a) The seed I built outside the archive, shipped as an orig-stage0 tarball? This works today, but it is a binary. The profile would then test that the plumbing works, not that the starting point is source. My work did show, however, that the seed is identical to upstream's, so there's that.
(b) What Ivan Carvalho suggests later in this thread (the work he has been doing for a separate bootstrap package in Debian): regenerate the wasm seed on the amd64 builders, then use it to build the other architectures. That keeps everything inside Debian, but it is no longer a single build.
Or, perhaps there is another option that I am not thinking of, that you think would work best?
Many thanks!
Kind regards,
Edmund
Technical Details
Message-ID:
<NYksF-bgvX-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<NYgp3-beka-9@gated-at.bofh.it> <NYhO9-bf2j-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Edmund Lodewijks <edmund@proteamail.com> Newsgroups: linux.debian.devel Subject: Re: RFS: Bringing [zig] to Debian: A from-source bootstrap that reproduces upstream's seed Date: Wed, 11 Nov 2026 18:40:01 +0100 Message-ID: <NYksF-bgvX-3@gated-at.bofh.it> References: <NYgp3-beka-9@gated-at.bofh.it> <NYhO9-bf2j-1@gated-at.bofh.it> X-Original-To: Simon Josefsson <simon@josefsson.org> X-Mailbox-Line: From debian-devel-request@lists.debian.org Wed Nov 11 17:32:00 2026 Old-Return-Path: <edmund@proteamail.com> X-Amavis-Spam-Status: No, score=-4.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Dkim-Filter: PhoenixDKIM Filter v1.0.0 mail.proteamail.com via nbg-mx-proteamail-1 4jPrDL16T1z2xgt X-Dkim-Key-Compromise: NOTE REGARDING DKIM KEY COMPROMISE https://proteamail.com/dkim-rotate/README.txt https://proteamail.com/dkim-rotate/39/39398e78808aa9f38d1d4157adbd9ea8.pem X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/373149 List-ID: <debian-devel.lists.debian.org> List-URL: <https://lists.debian.org/debian-devel/> List-Archive: https://lists.debian.org/msgid-search/2cec644ce1d48234f0880d382c0d9362@proteamail.com Approved: robomod@news.nic.it Lines: 23 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-devel@lists.debian.org X-Original-Date: Wed, 11 Nov 2026 19:31:43 +0200 X-Original-Message-ID: <2cec644ce1d48234f0880d382c0d9362@proteamail.com> X-Original-References: <827eeca2-f7cf-4544-8eba-c1f59abb57b9@debian.org> <87ik23mp28.fsf@josefsson.org>