<feed xmlns='http://www.w3.org/2005/Atom'>
<title>algaos/algaos-ebuild-tree/eclass/zig-utils.eclass, branch next</title>
<subtitle>[no description]</subtitle>
<id>https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next</id>
<link rel='self' href='https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/'/>
<updated>2026-05-17T16:12:35Z</updated>
<entry>
<title>zig-utils.eclass: improve `ZIG_SLOT` checks</title>
<updated>2026-05-17T16:12:35Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2026-05-14T18:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=d95d565813cd0b0e38ec9430a15e3cfb6572685a'/>
<id>urn:sha1:d95d565813cd0b0e38ec9430a15e3cfb6572685a</id>
<content type='text'>
Move global variables' validations and modifications to a
new internal function, executed at inherit-time.

Also check that `ZIG_SLOT` is a string, not an array.

Avoids confusing errors like these:
```console
# ZIG_SLOT=( "0.16", "9999" )
invalid: BDEPEND: Invalid atom (dev-lang/zig:0.16,9999), token 4
```

Closes: https://bugs.gentoo.org/963399
Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Part-of: https://github.com/gentoo/gentoo/pull/46260
Closes: https://github.com/gentoo/gentoo/pull/46260
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: add support for Zig 0.16</title>
<updated>2026-05-06T08:12:59Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2026-05-04T19:46:21Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=135a5b77181c5f5379416a977e32730f26b3df56'/>
<id>urn:sha1:135a5b77181c5f5379416a977e32730f26b3df56</id>
<content type='text'>
Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Part-of: https://github.com/gentoo/gentoo/pull/46202
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: add 0.15 to the list of supported versions</title>
<updated>2025-09-01T10:31:15Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2025-08-31T15:29:21Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=4e4f14bd8a75bde610272a92067f1c4d2cedd251'/>
<id>urn:sha1:4e4f14bd8a75bde610272a92067f1c4d2cedd251</id>
<content type='text'>
Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Part-of: https://github.com/gentoo/gentoo/pull/43623
Closes: https://github.com/gentoo/gentoo/pull/43623
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: add 0.14 to the list of supported versions</title>
<updated>2025-03-04T22:05:19Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2025-03-04T03:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=99e8916184f287089caa9a0c70bb1912f278a328'/>
<id>urn:sha1:99e8916184f287089caa9a0c70bb1912f278a328</id>
<content type='text'>
Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: fix translating `-march=unset` and `-march=native` on ARM</title>
<updated>2025-03-03T19:26:27Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2025-01-18T17:19:16Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=e54a05e27512a039417cbaf448a998dbf700585d'/>
<id>urn:sha1:e54a05e27512a039417cbaf448a998dbf700585d</id>
<content type='text'>
Reported on IRC.

Reported-by: sin-ack &lt;sin-ack@protonmail.com&gt;
Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: add function to get the rightmost flag from CFLAGS</title>
<updated>2025-03-03T19:26:26Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2025-01-18T17:04:54Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=55503135684b929613e6d432f4b1d4ee3851961d'/>
<id>urn:sha1:55503135684b929613e6d432f4b1d4ee3851961d</id>
<content type='text'>
Similar to `get-flag` from toolchain.eclass, but searches from the end,
uses only CFLAGS, and returns value only.

Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: add ZIG_NEEDS_LLVM variable</title>
<updated>2025-01-08T06:32:59Z</updated>
<author>
<name>sin-ack</name>
<email>sin-ack@protonmail.com</email>
</author>
<published>2025-01-02T15:59:57Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=33f22ac2fd51aa5ad16ffd1840f0349ad8a2984f'/>
<id>urn:sha1:33f22ac2fd51aa5ad16ffd1840f0349ad8a2984f</id>
<content type='text'>
If set to a non-empty value, the package will BDEPEND on a Zig package
with LLVM enabled. This is currently required for packages that require
C/C++ source files to be compiled with Zig.

There's some special logic required to detect which Zig binary we should
actually use, because we may have dev-lang/zig[-llvm] installed with
dev-lang/zig-bin (in which case we would need to pick zig-bin over zig).

Tested in a clean stage3 chroot with dev-lang/zig[-llvm] and
dev-lang/zig-bin installed, in which case zig-utils.eclass will pick
zig-bin over zig.

Co-authored-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Signed-off-by: sin-ack &lt;sin-ack@protonmail.com&gt;
Signed-off-by: Joonas Niilola &lt;juippis@gentoo.org&gt;
</content>
</entry>
<entry>
<title>zig-utils.eclass: new eclass</title>
<updated>2024-12-15T09:47:04Z</updated>
<author>
<name>Eric Joldasov</name>
<email>bratishkaerik@landless-city.net</email>
</author>
<published>2024-05-13T11:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=0d8c5dca2e5461b96132e1164b3d4325e61c2657'/>
<id>urn:sha1:0d8c5dca2e5461b96132e1164b3d4325e61c2657</id>
<content type='text'>
This eclass handles dependency on Zig toolchain and finds appropriate
versions/slots, converts "CHOST-style and CFLAGS" to "Zig target tuple
and CPU" formats and sets environment variables to be used by other
eclasses and ebuilds.

Most of the projects written in Zig use `build.zig` system and should
use `zig.eclass` from next commit instead. This eclass is more
low-level and can be used when `zig` commands are called from other
build systems directly. For example, when authors use `zig build-exe`
or `zig test` commands in their Makefile/meson.build/Cargo etc.

Signed-off-by: Eric Joldasov &lt;bratishkaerik@landless-city.net&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
</feed>
