dev-lang / zig

A robust, optimal, and maintainable programming language

Official package sites : https://github.com/ziglang/zig/ · https://ziglang.org/ ·

v9999 :: 9999 :: gentoo

Modified
License
MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL ISC HPND BSD inner-net LGPL-2.1+
USE flags
debug doc llvm

v0.14.0 :: 0.14 :: gentoo

Modified
License
MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL ISC HPND BSD inner-net LGPL-2.1+
Keywords
~amd64 ~arm ~arm64
USE flags
debug doc llvm verify-sig

v0.13.0-r3 :: 0.13 :: gentoo

Modified
License
MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL ISC HPND BSD inner-net LGPL-2.1+
Keywords
~amd64 ~arm ~arm64
USE flags
debug doc llvm verify-sig

v0.13.0-r2 :: 0.13 :: gentoo

Modified
License
MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL ISC HPND BSD inner-net LGPL-2.1+
Keywords
~amd64 ~arm ~arm64
USE flags
doc llvm verify-sig

General

debug
Build with debug extensions enabled.
doc
Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
llvm
Build with LLVM backend and extensions enabled.
verify-sig
Verify upstream signatures on distfiles

llvm_slot

18
Use LLVM 18.
19
Use LLVM 19.

llvm-core / clang : C language family frontend for LLVM

llvm-core / lld : The LLVM linker (link editor)

llvm-core / llvm : Low Level Virtual Machine

llvm-core / clang : C language family frontend for LLVM

llvm-core / lld : The LLVM linker (link editor)

llvm-core / llvm : Low Level Virtual Machine

796596
dev-lang/zig: keywording
851732
dev-lang/zig failed to test in riscv
890234
dev-lang/zig-0.10.0 - /.../xlocale.h: error: cannot add abi_tag attribute in a redeclaration
914731
dev-lang/zig fails to build at stage3: zig build-exe zig ReleaseFast native 5 errors, ld.lld: undefined symbol
916719
dev-lang/zig-0.11.0-r1 - warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker.
947168
dev-lang/zig-0.13.0-r2 fails test - [gcc-15] wwinmain.c: error: windows.h file not found
948997
dev-lang/zig-0.13.0-r2 fails test - [ffmpeg] error: undefined symbol: _Unwind_Resume
949878
dev-lang/zig-0.13.0-r3 fails test - [texlive] [gcc-15] error: /.../source.h: fatal error: stdbool.h not found
951143
dev-lang/zig-0.14.0: fails to build with llvm
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add 0.14.0
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/40909 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: run tests with LLVM enabled and in Debug mode on 9999
Upstream uses release mode only for behavior tests, full suite is run primarily with Debug, so other modes tend to fail with strange errors. Seems like no other distro runs them in different modes, so align it with upstream and everyone else. Also restore `RESTRICT=test` for LLVM-disabled builds; it was removed by mistake in some previous commit. Bug: https://bugs.gentoo.org/949878 Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/40891 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: do not die on `eselect` in `pkg_postrm` (leftover)
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/40598 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
sin-ack · gentoo
dev-lang/zig: guard `stage3` calls when cross-compiling
They can't be run when cross-compiling unless user has qemu static-usr enabled and used, which we can't check in ebuild. Therefore, we need to also disallow docs building when cross-compiling for the time being. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
sin-ack · gentoo
dev-lang/zig: warn user about `binfmt_misc` when running tests
If binfmt_misc hooks are installed for QEMU, then running Zig tests will fail because Zig attempts to run executables during tests that may be from foreign architectures. Normally this would raise an "exec format error" failure which Zig handles but binfmt_misc hooks turn it into a "missing interpreter" error instead which is not handled. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
sin-ack · gentoo
dev-lang/zig: do not pass `--libc` when running tests
When `--libc` is passed to `zig build test`, tests that cross-compile to other OSes and architectures fail because the internal include paths automatically configured by Zig are overridden by the libc installation file. Upstream issue: https://www.github.com/ziglang/zig/issues/22383 Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: do not die on `eselect` in `pkg_postrm`
Per PMS: > Ebuilds are allowed to call them in pkg_preinst and pkg_postinst. > Ebuilds may also call them in pkg_prerm and pkg_postrm but must not > rely on them being available. Bug: https://bugs.gentoo.org/949225 Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: drop 0.13.0-r1
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
sin-ack · gentoo
zig.eclass: always use absolute path for `--prefix` argument
Needed for correctness when `build.zig` uses them to manipulate default pathes in compiled artifact. Without `DESTDIR` it would try to install to root directly, so to fix this we set `DESTDIR` where appliable. Co-authored-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/40197 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: use `llvm-r2.eclass`, add cross-compilation support for `USE=llvm`
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/39765 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add `debug` USE-flag
Controls debug extensions such as `zig dump-zir` or `zig build-exe --debug-compile-errors` and can change default when building Zig itself from `ReleaseFast` to `ReleaseSafe`. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
Move {sys-devel → llvm-core}/llvm
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Michał Górny · gentoo
Move {sys-devel → llvm-core}/lld
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Michał Górny · gentoo
Move {sys-devel → llvm-core}/clang
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: fix building 0.13.0 with `sys-devel/llvm-18.1.8-r6`
Also, while we are here, sync `.maxrss` fix from 9999 ebuild . Patch message: This is backported PR https://www.github.com/ziglang/zig/pull/21862 , squashed and trimmed down for Zig 0.13.0 . Fixes following error when compiling with sys-devel/llvm-18.1.8-r6: ``` /var/tmp/portage/dev-lang/zig-0.13.0/work/zig-0.13.0/src/zig_llvm.cpp:738:68: error: static assertion failed 738 | static_assert((Triple::EnvironmentType)ZigLLVM_LastEnvironmentType == Triple::LastEnvironmentType, ""); ``` Chronology as I understood it: * New enum tags were added for `Triple::EnvironmentType` to 20.x in https://www.github.com/llvm/llvm-project/pull/111302 , * These additions were backported to 19.1.3 in https://www.github.com/llvm/llvm-project/pull/112364 , at this point Zig upstream (9999) notices static assert failure and fixes in https://www.github.com/ziglang/zig/pull/21862 . Discussed here: https://www.github.com/llvm/llvm-project/pull/112364#discussion_r1823206017 . * These additions were backported again to 18.1.8-r6 (Gentoo only) in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9455b76daa769c03686d18098dbf37690c5c5f61 , this time it causes static assert failure for 0.13.0 . Closes: https://bugs.gentoo.org/942563 Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/39187 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: update to LLVM 19 for 9999
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/38704 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: drop 0.11.0-r1, 0.12.0
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/38005 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: fix building with `doc` USE-flag enabled on 9999
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/37703 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Aliaksei Urbanski · gentoo
dev-lang/zig: add 0.13.0
Release: - https://ziglang.org/download/0.13.0/release-notes.html - https://github.com/ziglang/zig/releases/tag/0.13.0 Closes: https://bugs.gentoo.org/933854 Co-authored-by: Jean-Baptiste "Jiboo" Lepesme <lepesme.jb@gmail.com> Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add 0.13.0-r2
* Update to use llvm-r1 eclass instead of llvm, zig and zig-utils eclasses instead of local get_zig_mcpu etc. functions. * Port "llvm USE-flag" from 9999 ebuild. * "stage3" compilation is unified by combining build.zig options, now both cmake (+llvm) and bootstrap.c (-llvm) build up to "zig2" target, after that we use zig.eclass with common options. * Before migrating to the zig.eclass, test steps in src_test have been ran sequentially in for-loop, which allowed logic inside each step to ran parallelly but not several steps at a time. Now we use upstream "test" step instead of separately calling all dependant steps, so that build system can now ran all of them paralelly. This means time spent in `src_test` is now significantly shorter. * "zig2" in both scenarios now has explicit target which is set by using zig-utils.eclass functions on a CBUILD/CHOST. This allows us to skip convertion logic in CMake and bootstrap.c, so that instead of patching them we can just update converter in zig-utils.eclass and unify target behaviour. * Disable autodocs generation for "std" module, since it can now be generated on-fly with `zig std` command. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: sync 9999 with 0.13.0-r2
* Update to use zig-utils and zig eclasses instead of local get_zig_mcpu etc. functions. * "stage3" compilation is unified by combining build.zig options, now both cmake (+llvm) and bootstrap.c (-llvm) build up to "zig2" target, after that we use zig.eclass with common options. * Before migrating to the zig.eclass, test steps in src_test have been ran sequentially in for-loop, which allowed logic inside each step to ran parallelly but not several steps at a time. Now we use upstream "test" step instead of separately calling all dependant steps, so that build system can now ran all of them paralelly. This means time spent in `src_test` is now significantly shorter. * "zig2" in both scenarios now has explicit target which is set by using zig-utils.eclass functions on a CBUILD/CHOST. This allows us to skip convertion logic in CMake and bootstrap.c, so that instead of patching them we can just update converter in zig-utils.eclass and unify target behaviour. * Disable autodocs generation for "std" module, since it can now be generated on-fly with `zig std` command. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
0x5a4 · gentoo
dev-lang/zig: add 0.12.0
Signed-off-by: 0x5a4 <arthur@wienstroer.net> Closes: https://github.com/gentoo/gentoo/pull/36517 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: update LLVM to 18, fix build without LLVM on 9999
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/35997 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add verify-sig support
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add "test-c-import" step in 9999
Extracted from "test-behaviour" in https://www.github.com/ziglang/zig/pull/19016 . Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/35457 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: Migrate to llvm-r1 in 9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/35273 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: remove ".max_rss" fields initializers from build.zig in 9999
They are too high and cause errors like below: * https://www.github.com/ziglang/zig/issues/18263 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/34252 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add `llvm` USE-flag for 9999
See upstream PR https://www.github.com/ziglang/zig/pull/17994 and https://www.github.com/ziglang/zig/commit/f8b38a174f0c4a843688fe8adac09dc4f66cd585 . LLVM-less build cannot build `sys-fs/ncdu` yet (no @cImport support), but we are close. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/33868 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: explicitly set locations for build cache
Useful for debugging and a little bit more deterministic than before. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/33272 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add simple `zig env` invocation to check if compiler built itself properly
Will make bugs similar to following easier to spot in future because they will fall earlier and with better error message [than "`zig build std-docs` not found"]. In case "doc" USE-flag and tests are disabled, miscompilation could have been unnoticed by user at all until Zig usage, since the only calls to Zig binary in ebuild would have been skipped. Now, it will always check during "src_compile" phase and can reveal potentially hidden bug. Bug: https://bugs.gentoo.org/914101 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: drop 0.10.1-r3
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: patch 0.11.0 to use getconf when detecting glibc version
Bug: https://bugs.gentoo.org/914731 Bug: https://bugs.gentoo.org/914101 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: update to LLVM 17 for 9999
See also https://www.github.com/ziglang/zig/pull/17202 . Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/32935 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add 0.11.0
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: make doc generation for 9999 more reliable
Use build system steps for automatically following latest changes in doc-generation. This means less frequent breakage, which is good. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/32052 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: fix building on 9999 with "doc" USE-flag enabled
ZIG_NO_LANGREF variable was disabled in https://github.com/ziglang/zig/commit/32a175740c8750a7db550011795a4c22c0d0bc93. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/32035 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Violet Purcell · gentoo
dev-lang/zig: Backport fix for musl 1.2.4
Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: update testing process for 9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/30616 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: update LICENSE
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: update to LLVM 16 for 9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/30508 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: drop 0.10.0-r1, 0.10.1
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Florian Schmaus · gentoo
dev-lang/zig: sync live
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Florian Schmaus · gentoo
dev-lang/zig(-bin): eselect-zig is an IDEPEND
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: adjust QA_FLAGS_IGNORED for new placements
Closes: https://bugs.gentoo.org/900543 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Florian Schmaus · gentoo
dev-lang/zig: ensure 'zig' symlink is valid if possible
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Florian Schmaus · gentoo
dev-lang/zig: downgrade ewarn to elog
ewarn and higher should, if possible, only be used conditionally and check-reqs_pkg_setup already issues a warning if the memory requirements are not met. Signed-off-by: Florian Schmaus <flow@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: slotting, initial support for setting ZIG_{MCPU,TARGET}
* Install Zig to "/usr/$(get_libdir)/zig/${PV}", handle /usr/bin/zig via eselect-zig * Add functions for getting ZIG_TARGET and ZIG_MCPU (user-provided or defaults) and use them for building/testing * Add "doc" USE flag for installing language reference and stdlib documentation Closes: https://bugs.gentoo.org/885861 Bug: https://bugs.gentoo.org/890234 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: drop 0.10.0-r2
It shouldn't be here. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/29182 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add 0.10.1
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: use "edob" for testing 0.10.0
As suggested by Sam James. I'm not touching live version yet as PR is not merged yet and upstream plans to add some tests [that requires network access] for their newly-created package manager (literally today) and related stuff (TLS client/server etc.). I'll try to cooperate with them and add option that will skip these tests. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/29090 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: fix patch from previous commit
I'm sorry for possible incovenience caused by this (I hope that it was, since it didn't look SO bad). Explained in and rebased upstream PR too. Fixes: 28fcae31f91eb30b62c8d55b39207238d377f0c2 Closes: https://bugs.gentoo.org/890457 Closes: https://bugs.gentoo.org/890459 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: add patch from upstream for 0.10.0
Closes: https://bugs.gentoo.org/886569 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/28997 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: use correct binary for testing 0.10.0
According to upstream [1], 'stage3' binary should be used for testing instead of 'stage2'. Thanks to Frederik Schwan and Sam James for pointing this out! Also split tests so than we can know more accurately what test step failed. [1] https://www.github.com/ziglang/zig/issues/14240#issuecomment-1374634325 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/29059 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: relax memory requirements for 9999
https://www.github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118 was merged recently, so memory usage (when building) drops from ~10GB to ~4GB Bug: https://bugs.gentoo.org/823086 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/28581 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: drop 0.9.1-r3
Closes: https://bugs.gentoo.org/876181 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/28492 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: drop "threads" and "test" USE flags for 9999
See commit f28480799d348da161f8d121df2fb99c73250ab3. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/28177 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Sam James · gentoo
dev-lang/zig: style tweaks
Have all functions be together. Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add 0.10.0
Drop "threads" USE flag, since this is default and well-tested configuration by upstream. Drop "test" USE flag, since it doesn't require special dependencies (or preparations) necessary to run tests. Bug: https://bugs.gentoo.org/876181 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: requires zstd support in LLVM
Starting with https://github.com/ziglang/zig/commit/d42a719e8f7ba31a9e18d6be9d58691b0b38c69a Zig requires zstd compression support. Zig requires zstd and zlib compression support in LLVM, if using LLVM backend (non-LLVM backends don't require these). They are not required "on their own", so please don't add them to dependencies. You can check https://github.com/ziglang/zig-bootstrap in future, to see options that are passed to LLVM CMake building (excluding "static" ofc). Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27964 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: use standard CMake procedure for building/installing
Upstream PR https://github.com/ziglang/zig/pull/13036 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27849 Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Sam James · gentoo
dev-lang/zig: fix MissingSlotDep on LLD
LLD is slotted now. Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: fix building with Clang 16, fix searching LLD
Upstream PR https://github.com/ziglang/zig/pull/13121 Closes: https://bugs.gentoo.org/877231 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27718 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: update to LLVM 15 for 9999
Closes: https://bugs.gentoo.org/871462 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27221 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: drop unnecessary patch for 9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: always install self-hosted compiler, workaround upstream cmake bugs
Closes: https://bugs.gentoo.org/867592 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27112 Signed-off-by: Sam James <sam@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: add patches for 0.9.1
Bug: https://bugs.gentoo.org/780612 Bug: https://bugs.gentoo.org/829959 Bug: https://bugs.gentoo.org/866374 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Eric Joldasov · gentoo
dev-lang/zig: block dev-lang/zig-bin and some fixes for 9999
cmake_src_install already installs lib/, so we should skip this in stage2 -DZIG_PREFER_CLANG_CPP_DYLIB has been renamed to -DZIG_SHARED_LLVM, see https://github.com/ziglang/zig/pull/12136 Closes: https://bugs.gentoo.org/864247 Closes: https://github.com/gentoo/gentoo/pull/26779 Co-authored-by: Rahim Usubov <the.guard@mail.ru> Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Eric Joldasov · gentoo
dev-lang/zig: block dev-lang/zig-bin, add risv stage0 patch for 0.9.1
Bug: https://bugs.gentoo.org/851732 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
BratishkaErik · gentoo
dev-lang/zig: enable LLVM 14 on -9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/26320 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
BratishkaErik · gentoo
dev-lang/zig: add QA_FLAGS_IGNORED
Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/25573 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
BratishkaErik · gentoo
dev-lang/zig: add threads USE flag
Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
BratishkaErik · gentoo
dev-lang/zig: add stage2 support (on -9999)
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/25085 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
BratishkaErik · gentoo
dev-lang/zig: update SRC_URI
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Sam James · gentoo
dev-lang/zig: drop 0.7.1, 0.8.1-r1
Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Ionen Wolkens · gentoo
dev-lang/zig: propagate #836310 fix to other versions + live
Thanks for 0.9.1 fix. Bug: https://bugs.gentoo.org/836310 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Joonas Niilola · gentoo
dev-lang/zig: fix pkg_setup on 0.9.1
- two eclasses export pkg_setup causing a conflict. Closes: https://bugs.gentoo.org/836310 Thanks-to: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
BratishkaErik · gentoo
dev-lang/zig: add memory requirement via check-reqs
see https://github.com/ziglang/zig/issues/6485 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/24734 Signed-off-by: Florian Schmaus <flow@gentoo.org>
BratishkaErik · gentoo
dev-lang/zig: drop old version
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
BratishkaErik · gentoo
dev-lang/zig: New version 0.9.1
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/24412 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Arthur Zamarin · gentoo
dev-lang/zig: Keyword 0.9.0 arm, #796596
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Sam James · gentoo
dev-lang/zig: fix WhitespaceFound
Signed-off-by: Sam James <sam@gentoo.org>
Sam James · gentoo
dev-lang/zig: add 0.9.0
Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-lang/zig: Keyword 0.8.1-r1 arm64, #796596
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Patrick Lauer · gentoo
dev-lang/zig: Disable experimental useflag for newest
Doesn't build otherwise, can't be fixed easily as upstream assumes full LLVM_TARGETS available Bug: https://bugs.gentoo.org/800206 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Sam James · gentoo
dev-lang/zig: depend on LLVM 13 in live ebuild
Closes: https://bugs.gentoo.org/816084 Reported-by: Martin Sekera <sekerama@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Sam James · gentoo
dev-lang/zig: add 0.8.1
Signed-off-by: Sam James <sam@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Joonas Niilola · gentoo
dev-lang/zig: add missing dies
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Aisha Tammy · gentoo
dev-lang/zig: enable tests for 0.7.1
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/21296 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Aisha Tammy · gentoo
dev-lang/zig: version bump to 0.8.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/21175 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-lang/zig: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Aisha Tammy · gentoo
dev-lang/zig: version bump to 0.7.1
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/19606 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-lang/zig: Remove old (LLVM 8)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Andreas Sturmlechner · gentoo
dev-lang/zig: Switch to cmake.eclass
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Nick Erdmann · gentoo
dev-lang/zig: bump to 0.5.0
Signed-off-by: Nick Erdmann <n@nirf.de> Closes: https://github.com/gentoo/gentoo/pull/13107 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Nick Erdmann · gentoo
dev-lang/zig: require llvm 9
Signed-off-by: Nick Erdmann <n@nirf.de> Closes: https://github.com/gentoo/gentoo/pull/12979 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Repository mirror & CI · gentoo
Merge updates from master
Nick Erdmann · gentoo
dev-lang/zig: remove zig-0.4.0.ebuild
Signed-off-by: Nick Erdmann <n@nirf.de> Closes: https://github.com/gentoo/gentoo/pull/12606 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Nick Erdmann · gentoo
dev-lang/zig: switch to EAPI=6, use patch files
Signed-off-by: Nick Erdmann <n@nirf.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Nick Erdmann · gentoo
dev-lang/zig: add version 9999
Signed-off-by: Nick Erdmann <n@nirf.de> Closes: https://github.com/gentoo/gentoo/pull/12599 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Joonas Niilola · gentoo
dev-lang/zig: specify LLVM SLOT
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Nick Erdmann · gentoo
dev-lang/zig: new package
Zig is an open-source programming language designed for robustness, optimality, and maintainability. Feature Highlights - Manual memory management. Memory allocation failure is handled correctly. Edge cases matter! - Zig competes with C instead of depending on it. The Zig Standard Library does not depend on libc. - Small, simple language. Focus on debugging your application rather than debugging your knowledge of your programming language. - A fresh take on error handling that resembles what well-written C error handling looks like, minus the boilerplate and verbosity. - Debug mode optimizes for fast compilation time and crashing with a stack trace when undefined behavior would happen. - ReleaseFast mode produces heavily optimized code. What other projects call "Link Time Optimization" Zig does automatically. - ReleaseSafe mode produces optimized code but keeps safety checks enabled. Disable safety checks in the bottlenecks of your code. - Generic data structures and functions. - Compile-time reflection and compile-time code execution. No preprocessor. - Concurrency via coroutines. Async/await is thread-safe, non-blocking, and makes no syscalls, and therefore available in freestanding mode. You can multiplex coroutines onto a thread pool in userland for M:N concurrency. - Import .h files and directly use C types, variables, and functions. - Export functions, variables, and types for C code to depend on. Automatically generate .h files. - Optional type instead of null pointers. - Order independent top level declarations. - Friendly toward package maintainers. Reproducible build, 3-step bootstrapping process. - Cross-compiling is a first-class use case. Package-Manager: portage-2.3.66 Closes: https://bugs.gentoo.org/683386 Signed-off-by: Nick Erdmann <n@nirf.de> Closes: https://github.com/gentoo/gentoo/pull/12110 Signed-off-by: Joonas Niilola <juippis@gentoo.org>