Files
gentoo/eclass/zig-utils.eclass
Eric Joldasov d95d565813 zig-utils.eclass: improve ZIG_SLOT checks
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 <bratishkaerik@landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/46260
Closes: https://github.com/gentoo/gentoo/pull/46260
Signed-off-by: Sam James <sam@gentoo.org>
2026-05-17 17:12:35 +01:00

18 KiB