On 11/11/26 15:15, Simon Josefsson wrote:
Gioele Barabucci <[email protected]> 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

Reply via email to