[gentoo-dev] [PATCH] zig.eclass: fix rare spurious `error.BrokenPipe` during `src_test`

2024-12-15 Thread Eric Joldasov
` or `gui-wm/river::guru`, my guess here is that `test` step is listed last there, so zig pipe catches up with it. (GitHub PR https://www.github.com/gentoo/gentoo/pull/39723) Signed-off-by: Eric Joldasov --- eclass/zig.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e

[gentoo-dev] [PATCH v3 4/5] dev-lang/zig: sync 9999 with 0.13.0-r2

2024-12-13 Thread Eric Joldasov
From: Eric Joldasov * 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 zi

[gentoo-dev] [PATCH v3 3/5] dev-lang/zig: add 0.13.0-r2

2024-12-13 Thread Eric Joldasov
From: Eric Joldasov * 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 ebuild. * "stage3" compilation is unified by combining build.zig options, now both cmake (+l

[gentoo-dev] [PATCH v3 2/5] zig.eclass: new eclass

2024-12-13 Thread Eric Joldasov
other ebuilds in community overlays). Mentioned ebuilds are converted in next commits. It is recommended to use https://github.com/BratishkaErik/zig-ebuilder with this eclass to generate base for new ebuilds. Signed-off-by: Eric Joldasov --- eclass/zig.eclass (new) | 558

[gentoo-dev] [PATCH v3 5/5] sys-fs/ncdu: add 2.7-r1

2024-12-13 Thread Eric Joldasov
Now uses `zig.eclass`. Signed-off-by: Eric Joldasov --- sys-fs/ncdu/ncdu-2.7-r1.ebuild (new) | 52 1 file changed, 52 insertions(+) diff --git a/sys-fs/ncdu/ncdu-2.7-r1.ebuild b/sys-fs/ncdu/ncdu-2.7-r1.ebuild new file mode 100644 index ..96b32f45abb3

[gentoo-dev] [PATCH v3 1/5] zig-utils.eclass: new eclass

2024-12-13 Thread Eric Joldasov
uild.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-o

[gentoo-dev] [PATCH v3 0/5] Zig: new eclasses, rewrite existing ebuilds to use them

2024-12-13 Thread Eric Joldasov
n behaviour (maybe I forgot some changes). Eric Joldasov (5): zig-utils.eclass: new eclass zig.eclass: new eclass dev-lang/zig: add 0.13.0-r2 dev-lang/zig: sync with 0.13.0-r2 sys-fs/ncdu: add 2.7-r1 13.0-skip-test-stack_iterator.patch (new) | 32 + dev-lang/zig/zig-0

[gentoo-dev] [PATCH v2 2/5] zig-build.eclass: new eclass

2024-10-26 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-build.eclass | 580 1 file changed, 580 insertions(+) create mode 100644 eclass/zig-build.eclass diff --git a/eclass/zig-build.eclass b/eclass/zig-build.eclass new file mode 100644 index

[gentoo-dev] [PATCH v2 0/5] Ziglang eclasses for 0.13+

2024-10-25 Thread Eric Joldasov
switch cases (according to Neovim, on nano I had not noticed it before), * Add "die -n" to ezig(), * Move and rewrite TODO comments in zig-build_start_base_args to be shorter and move less relevant information to patch itself. ...and GitHub. Also remove old leftovers of Zig 0.12 c

[gentoo-dev] [PATCH v2 5/5] sys-fs/ncdu: add 2.6-r1

2024-10-25 Thread Eric Joldasov
Now uses "zig-build" eclass. Signed-off-by: Eric Joldasov --- sys-fs/ncdu/ncdu-2.6-r1.ebuild | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 sys-fs/ncdu/ncdu-2.6-r1.ebuild diff --git a/sys-fs/ncdu/ncdu-2.6-r1.ebuild b/sys-fs/ncdu/ncdu-2.6

[gentoo-dev] [PATCH 3/5] dev-lang/zig: add 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use llvm-r1 eclass instead of llvm, zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "llvm USE-flag" and "removing memory limit flags" from ebuild. * Stage3 compilation is unified by combini

[gentoo-dev] [PATCH v2 4/5] dev-lang/zig: sync 9999 with 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "sys-apps/sandbox-2.39" test dependency requirement from 0.13.0 ebuild. * Stage3 compilation is unified by combining build.zig options, now both cmake (

[gentoo-dev] [PATCH v2 3/5] dev-lang/zig: add 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use llvm-r1 eclass instead of llvm, zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "llvm USE-flag" and "removing memory limit flags" from ebuild. * Stage3 compilation is unified by combini

[gentoo-dev] [PATCH v2 1/5] zig-toolchain.eclass: new eclass

2024-10-25 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-toolchain.eclass | 375 1 file changed, 375 insertions(+) create mode 100644 eclass/zig-toolchain.eclass diff --git a/eclass/zig-toolchain.eclass b/eclass/zig-toolchain.eclass new file mode 100644 index

[gentoo-dev] [PATCH 0/5] Ziglang eclasses for 0.13+

2024-10-25 Thread Eric Joldasov
switch cases (according to Neovim, on nano I had not noticed it before), * Add "die -n" to ezig(), * Move and rewrite TODO comments in zig-build_start_base_args to be shorter and move less relevant information to patch itself. ...and GitHub. Also remove old leftovers of Zig 0.12 c

[gentoo-dev] [PATCH 4/5] dev-lang/zig: sync 9999 with 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "sys-apps/sandbox-2.39" test dependency requirement from 0.13.0 ebuild. * Stage3 compilation is unified by combining build.zig options, now both cmake (

[gentoo-dev] [PATCH 5/5] sys-fs/ncdu: add 2.6-r1

2024-10-25 Thread Eric Joldasov
Now uses "zig-build" eclass. Signed-off-by: Eric Joldasov --- sys-fs/ncdu/ncdu-2.6-r1.ebuild | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 sys-fs/ncdu/ncdu-2.6-r1.ebuild diff --git a/sys-fs/ncdu/ncdu-2.6-r1.ebuild b/sys-fs/ncdu/ncdu-2.6

[gentoo-dev] [PATCH 2/5] zig-build.eclass: new eclass

2024-10-25 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-build.eclass | 580 1 file changed, 580 insertions(+) create mode 100644 eclass/zig-build.eclass diff --git a/eclass/zig-build.eclass b/eclass/zig-build.eclass new file mode 100644 index

[gentoo-dev] [PATCH 1/5] zig-toolchain.eclass: new eclass

2024-10-25 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-toolchain.eclass | 375 1 file changed, 375 insertions(+) create mode 100644 eclass/zig-toolchain.eclass diff --git a/eclass/zig-toolchain.eclass b/eclass/zig-toolchain.eclass new file mode 100644 index

[gentoo-dev] [PATCH 3/5] dev-lang/zig: add 0.13.0-r1

2024-10-23 Thread Eric Joldasov
From: Eric Joldasov * Update to use llvm-r1 eclass instead of llvm, zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "llvm USE-flag" and "removing memory limit flags" from ebuild. * Stage3 compilation is unified by combini

[gentoo-dev] [PATCH 5/5] sys-fs/ncdu: add 2.6-r1

2024-10-23 Thread Eric Joldasov
Now uses "zig-build" eclass. Signed-off-by: Eric Joldasov --- sys-fs/ncdu/ncdu-2.6-r1.ebuild | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 sys-fs/ncdu/ncdu-2.6-r1.ebuild diff --git a/sys-fs/ncdu/ncdu-2.6-r1.ebuild b/sys-fs/ncdu/ncdu-2.6

[gentoo-dev] [PATCH 4/5] dev-lang/zig: sync 9999 with 0.13.0-r1

2024-10-23 Thread Eric Joldasov
From: Eric Joldasov * Update to use zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "sys-apps/sandbox-2.39" test dependency requirement from 0.13.0 ebuild. * Stage3 compilation is unified by combining build.zig options, now both cmake (

[gentoo-dev] [PATCH 2/5] zig-build.eclass: new eclass

2024-10-23 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-build.eclass | 572 1 file changed, 572 insertions(+) create mode 100644 eclass/zig-build.eclass diff --git a/eclass/zig-build.eclass b/eclass/zig-build.eclass new file mode 100644 index

[gentoo-dev] [PATCH 1/5] zig-toolchain.eclass: new eclass

2024-10-23 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-toolchain.eclass | 325 1 file changed, 325 insertions(+) create mode 100644 eclass/zig-toolchain.eclass diff --git a/eclass/zig-toolchain.eclass b/eclass/zig-toolchain.eclass new file mode 100644 index

[gentoo-dev] [PATCH 0/5] Ziglang eclasses for 0.13+

2024-10-23 Thread Eric Joldasov
tly 0.13 and ). P.S.: I have not used "git format-patch" and "git send-email" for a long time, please forgive me and direct if I did something wrong with mail. Eric Joldasov (5): zig-toolchain.eclass: new eclass zig-build.eclass: new eclass dev-lang/zig: add 0.13.0-r

Re: [gentoo-dev] new virtual for zig

2022-08-17 Thread Eric Joldasov
Sounds good, thank you! On August 17, 2022 5:43:53 AM UTC, "Michał Górny" wrote: >On Tue, 2022-08-16 at 22:48 +, Eric Joldasov wrote: >> Hello everyone, >> >> I'd like to introduce "zig" virtual package that will be satisfied by >> "

[gentoo-dev] new virtual for zig

2022-08-16 Thread Eric Joldasov
Hello everyone, I'd like to introduce "zig" virtual package that will be satisfied by "dev-lang/zig-bin" or "dev-lang/zig" package [1]. The main reason is that compilation of "dev-lang/zig" requires a lot of RAM [2] (10 GB, which makes it impossible to build on x86 arch) and depends on LLVM, wh