Article View: linux.debian.devel
Article #435Re: RFS: Bringing to Debian: A from-source bootstrap that reproduces upstream's seed
From: Gioele Barabucci
Date: Wed, 11 Nov 2026 19:20
Date: Wed, 11 Nov 2026 19:20
52 lines
4810 bytes
4810 bytes
On 11/11/26 15:15, Simon Josefsson 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 Zig
>>>>> 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, you
>>>>> 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.
Hi Simon,
a <bootstrap> build profile is a good idea, but my suggestion is
orthogonal to it (so, no "instead").
First, having a zig-core package separate from a full-blown zig package
would show respect for the wishes of upstream, that, correctly, expect
something called "zig" to provide all the functionalities of "zig",
including the cross-compilation ability it is well known for.
Second, if (_IF_) the full-blown zig binary package ends up considerably
bigger than the zig-core package, or if it will need to pull in heavy
dependencies, then it would be nice to keep the smaller zig-core package
around after the bootstrap period for use as a build dependency inside
Debian.
Regards,
--
Gioele Barabucci
Technical Details
Message-ID:
<NYm1r-bhw6-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Gioele Barabucci <gioele@debian.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 20:20:01 +0100 Message-ID: <NYm1r-bhw6-3@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> X-Mailbox-Line: From debian-devel-request@lists.debian.org Wed Nov 11 19:12:41 2026 Old-Return-Path: <gioele@debian.org> X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debian-User: gioele X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/373157 List-ID: <debian-devel.lists.debian.org> List-URL: <https://lists.debian.org/debian-devel/> List-Archive: https://lists.debian.org/msgid-search/549da201-a98c-4610-ab08-f425c5fb7a2f@debian.org Approved: robomod@news.nic.it Lines: 52 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 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>, Ivan Carvalho <ivancarvalho@google.com>, Jesse Rosenstock <jmr@google.com> X-Original-Date: Wed, 11 Nov 2026 20:12:24 +0100 X-Original-Message-ID: <549da201-a98c-4610-ab08-f425c5fb7a2f@debian.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>