Article View: linux.debian.devel
Article #430Re: RFS: Bringing to Debian: A from-source bootstrap that reproduces upstream's seed
From: Simon Josefsson
Date: Wed, 11 Nov 2026 18:10
Date: Wed, 11 Nov 2026 18:10
93 lines
6908 bytes
6908 bytes
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Ivan Carvalho <ivancarvalho@google.com> writes:
> Zig has a very robust setup bootstraping from a WASM seed. As
> long as the Zig compiler can target an architecture, I am confident
> adding support for it will be easy.
>
> My current idea for bootstrapping Zig in Debian is still to
> generate the WASM seed from x86-64 builders and then use
> such seed to build the compiler in aarch64, riscv-64, etc.
> The pattern will extend to newer architectures in the future.
Can that WASM seed be built and put into an architecture:all package?
/Simon
> On Wed, Nov 11, 2026 at 9:16=E2=80=AFAM Simon Josefsson <simon@josefsson.=
org> wrote:
>>
>> Gioele Barabucci <gioele@debian.org> writes:
>>
>> > On 11/11/26 13:22, Edmund Lodewijks wrote:
>> >> On 2026/11/11 13:18, Jonathan Dowland wrote:
>> >>>> Let me ask this question though: what is the purpose of packaging Z=
ig
>> >>>> into Debian? In my opinion, upstream developers prefer to obtain Zig
>> >>>> directly from upstream. I think the purpose of packaging Zig into
>> >>>> Debian is not for Zig users but so that Zig can be used as a
>> >>>> development package to build other Debian packages. In this case, y=
ou
>> >>>> don't need any cross-compilation support or any of these vendored
>> >>>> dependencies. They can be completely omitted from the package. This
>> >>>> hamstrings Zig as a compiler tool, so it would be appreciated if it
>> >>>> were made clear to Zig users that this package is not for them. But=
I
>> >>>> think that is a path worth exploring for Debian, if the goal is to
>> >>>> build other packages.
>> >> For the first upload, however, I think a stripped down version would
>> >> be a great start. And then we could always add the cross-compiling
>> >> parts later again.
>> >
>> > Or have two packages: zig-{core,minimal,basic} and zig.
>> >
>> > (At the beginning these could be two separate source packages, then
>> > they could be merged into a single source package from which two
>> > binary packages can be built.)
>> >
>> > In this way Debian packages can Build-Depend on the smaller package
>> > and users can install the full-blown package (when it will become
>> > available).
>>
>> Please consider a <bootstrap> build profile instead, so that we will be
>> able to re-bootstrap zig for new platforms in the future. Then we can
>> continously test that zig still is possible to bootstrap using current
>> packages, into something that builds the real zig. Maybe upstream
>> doesn't handle this today, but modelling like this could result in
>> upstream prioritizing this ability. Which is important for new
>> architectures in the future.
>>
>> /Simon
>
>
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQOEBAEWCgMsFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmr0ragbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyFBxzaW1vbkBqb3NlZnNzb24ub3JnwhwmAJgzBFyS
zrQWCSsGAQQB2kcPAQEHQAiHK2SL4a8QwZCvX1fkJU5l8aNp2jmw7hrcOfGGsZTr
tCVTaW1vbiBKb3NlZnNzb24gPHNpbW9uQGpvc2Vmc3Nvbi5vcmc+iJYEExYIAD4C
GwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQSx0r0Tdb7LeEz0+MTXPPY4xTwG
vgUCatfMtwUJD2HCAwAKCRDXPPY4xTwGvue9AP40ROc4bUzq1zxU43T76rWP+6jv
mKO/CaPer1S2fZMOtQEAuMKQ3X/qP75LtsbJG82TaaIkg2UM5Mw+pp0UOfPJ6Aq4
OARcks9qEgorBgEEAZdVAQUBAQdAMZUbpg1up2WOwPlQn3pPVaRMejyZnScmD7d5
TRzHehwDAQgHiH4EGBYIACYCGwwWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCatfL
twUJD2HATQAKCRDXPPY4xTwGvocHAP9g1zG1w10/lhb7ksrN9T8xnHTOZNibd27d
k+X+leRCkQD+OWllYuM1N1ZA/a5Qjyv7pnq+hrxeqSg+cnm4ArlDQwa4MwRcks+B
FgkrBgEEAdpHDwEBB0DsUwiDmnlwMSNoSF+ByvW0E6TVXou9PKDa9SpZvKghioj1
BBgWCAAmAhsCFiEEsdK9E3W+y3hM9PjE1zz2OMU8Br4FAmrXy7oFCQ9hwDYAgXYg
BBkWCAAdFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAlySz4EACgkQUXIrCP5HRaKn
TAEAoB+OWrHmYCK8Cjr1DgPUH7JnhPBmR2DbhR5jPRREEugA+gOMeWmL6GOpaPfK
YLcNhzw4ZnAlxSLY1wq1eANBpiQOCRDXPPY4xTwGvjf7AP9MpnBFLDHomavCkXzR
aJEaYqYigvHl7W7qWuswi2FgTQEAg7xKIF4THHLZj4f48rwFG7VW2ts8o/SaYpJM
ogWJlwYACgkQUXIrCP5HRaJRnQD/Vm8wFYlW8DcEwAamG/b+ZonbB+qgq79NFXnM
EOX9r0sA/jb9TliYskeO0Qor5TuukLbdOgXGDjVUjetEyuFGGZQP
=8p8J
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID:
<NYkVH-bgRa-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NY0aB-b4Wx-9@gated-at.bofh.it> <NYbz3-bbCI-5@gated-at.bofh.it> <NYewV-bdgr-5@gated-at.bofh.it> <NYfCF-bdRw-7@gated-at.bofh.it> <NYgp3-beka-9@gated-at.bofh.it> <NYhO9-bf2j-1@gated-at.bofh.it> <NYkVH-bgRa-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Simon Josefsson <simon@josefsson.org> Newsgroups: linux.debian.devel Subject: Re: RFS: Bringing to Debian: A from-source bootstrap that reproduces upstream's seed Date: Wed, 11 Nov 2026 19:10:01 +0100 Message-ID: <NYkVH-bgRa-1@gated-at.bofh.it> References: <NY0aB-b4Wx-9@gated-at.bofh.it> <NYbz3-bbCI-5@gated-at.bofh.it> <NYewV-bdgr-5@gated-at.bofh.it> <NYfCF-bdRw-7@gated-at.bofh.it> <NYgp3-beka-9@gated-at.bofh.it> <NYhO9-bf2j-1@gated-at.bofh.it> <NYkVH-bgRa-3@gated-at.bofh.it> X-Original-To: Ivan Carvalho <ivancarvalho@google.com> X-Mailbox-Line: From debian-devel-request@lists.debian.org Wed Nov 11 18:02:35 2026 Old-Return-Path: <simon@josefsson.org> X-Amavis-Spam-Status: No, score=-4.399 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, GB_FAKE_RF=0.001, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Openpgp: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/373150 List-ID: <debian-devel.lists.debian.org> List-URL: <https://lists.debian.org/debian-devel/> List-Archive: https://lists.debian.org/msgid-search/87se17fdqv.fsf@josefsson.org Approved: robomod@news.nic.it Lines: 93 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Gioele Barabucci <gioele@debian.org>, Edmund Lodewijks <edmund@proteamail.com>, Jonathan Dowland <jmtd@debian.org>, debian-devel@lists.debian.org, nick black <dankamongmen@gmail.com>, Maytham Alsudany <maytham@debian.org>, Andrey Rakhmatullin <wrar@debian.org>, Jonathan Carter <jcc@debian.org>, Jesse Rosenstock <jmr@google.com> X-Original-Date: Wed, 11 Nov 2026 19:02:16 +0100 X-Original-Message-ID: <87se17fdqv.fsf@josefsson.org> X-Original-References: <898cd302-bf9e-4466-a604-62871bf3a8c5@proteamail.com> <12f6da1d-3e60-4e94-a0bc-19aa11a70eb7@proteamail.com> <DMSC9JR9UEOM.DTD0LXOL32AN@debian.org> <331f16fb-56eb-4624-b7f2-61ffde5ae6d0@proteamail.com> <827eeca2-f7cf-4544-8eba-c1f59abb57b9@debian.org> <87ik23mp28.fsf@josefsson.org> <CAKyZ7_bfoODFpe35cGfPNRLqnHXfv1f3hVQ4pL3PRC9mGmn0rg@mail.gmail.com>