[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 514830608ed2bf224330d112a3d5c6ad48130f09
Author: Sam James gentoo org>
AuthorDate: Fri Feb 27 21:36:20 2026 +
Commit: Sam James gentoo org>
CommitDate: Fri Feb 27 21:36:20 2026 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51483060
dev-lang/zig: add comment to upstream docs re LLVM version
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 3 ++-
dev-lang/zig/zig-0.14.1.ebuild| 3 ++-
dev-lang/zig/zig-0.15.1.ebuild| 3 ++-
dev-lang/zig/zig-0.15.2.ebuild| 3 ++-
dev-lang/zig/zig-.ebuild | 3 ++-
5 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index e3203d099fc7..5b7a7f7cd6ff 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -1,8 +1,9 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+# https://codeberg.org/ziglang/zig/src/tag/${PV}#building-from-source
LLVM_COMPAT=( 18 )
LLVM_OPTIONAL=1
diff --git a/dev-lang/zig/zig-0.14.1.ebuild b/dev-lang/zig/zig-0.14.1.ebuild
index 64d8beb8c974..b5568a34b3e9 100644
--- a/dev-lang/zig/zig-0.14.1.ebuild
+++ b/dev-lang/zig/zig-0.14.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+# https://codeberg.org/ziglang/zig/src/tag/${PV}#building-from-source
LLVM_COMPAT=( 19 )
LLVM_OPTIONAL=1
diff --git a/dev-lang/zig/zig-0.15.1.ebuild b/dev-lang/zig/zig-0.15.1.ebuild
index 2c68fd896232..2f9b2a7f6909 100644
--- a/dev-lang/zig/zig-0.15.1.ebuild
+++ b/dev-lang/zig/zig-0.15.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+# https://codeberg.org/ziglang/zig/src/tag/${PV}#building-from-source
LLVM_COMPAT=( 20 )
LLVM_OPTIONAL=1
diff --git a/dev-lang/zig/zig-0.15.2.ebuild b/dev-lang/zig/zig-0.15.2.ebuild
index f29b484ee0da..7a9a0bf130cc 100644
--- a/dev-lang/zig/zig-0.15.2.ebuild
+++ b/dev-lang/zig/zig-0.15.2.ebuild
@@ -1,8 +1,9 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+# https://codeberg.org/ziglang/zig/src/tag/${PV}#building-from-source
LLVM_COMPAT=( 20 )
LLVM_OPTIONAL=1
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 17de18793768..ce87011d8142 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -1,8 +1,9 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+# https://codeberg.org/ziglang/zig/src/tag/${PV}#building-from-source
LLVM_COMPAT=( 21 )
LLVM_OPTIONAL=1
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: c5f1afe84f8ee166153b26bd3108004a2bb087b9
Author: Eric Joldasov landless-city net>
AuthorDate: Thu Nov 27 08:58:04 2025 +
Commit: Joonas Niilola gentoo org>
CommitDate: Thu Nov 27 19:47:43 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f1afe8
dev-lang/zig: update HOMEPAGE
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/44792
Signed-off-by: Joonas Niilola gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 8
dev-lang/zig/zig-0.14.1.ebuild| 8
dev-lang/zig/zig-0.15.1.ebuild| 8
dev-lang/zig/zig-0.15.2.ebuild| 8
dev-lang/zig/zig-.ebuild | 8
5 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index 56341c22e5b2..e3203d099fc7 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -12,9 +12,9 @@ ZIG_OPTIONAL=1
inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ EGIT_REPO_URI="https://codeberg.org/ziglang/zig.git";
inherit git-r3
else
VERIFY_SIG_METHOD=minisig
@@ -56,7 +56,7 @@ BUILD_DIR="${WORKDIR}/${P}_build"
# 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 here.
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# You can check https://codeberg.org/ziglang/zig-bootstrap in future, to see
# options that are passed to LLVM CMake building (excluding "static" ofc).
LLVM_DEPEND="$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}
@@ -80,7 +80,7 @@ PATCHES=(
# zig.eclass does not set this for us since we use ZIG_OPTIONAL=1
QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
-# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
+# Since commit
https://codeberg.org/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
# Zig uses self-hosted compiler only
CHECKREQS_MEMORY="4G"
diff --git a/dev-lang/zig/zig-0.14.1.ebuild b/dev-lang/zig/zig-0.14.1.ebuild
index 0a5333025e9d..64d8beb8c974 100644
--- a/dev-lang/zig/zig-0.14.1.ebuild
+++ b/dev-lang/zig/zig-0.14.1.ebuild
@@ -12,9 +12,9 @@ ZIG_OPTIONAL=1
inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ EGIT_REPO_URI="https://codeberg.org/ziglang/zig.git";
inherit git-r3
else
VERIFY_SIG_METHOD=minisig
@@ -56,7 +56,7 @@ BUILD_DIR="${WORKDIR}/${P}_build"
# 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 here.
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# You can check https://codeberg.org/ziglang/zig-bootstrap in future, to see
# options that are passed to LLVM CMake building (excluding "static" ofc).
LLVM_DEPEND="$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}
@@ -78,7 +78,7 @@ PATCHES=(
# zig.eclass does not set this for us since we use ZIG_OPTIONAL=1
QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
-# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
+# Since commit
https://codeberg.org/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
# Zig uses self-hosted compiler only
CHECKREQS_MEMORY="4G"
diff --git a/dev-lang/zig/zig-0.15.1.ebuild b/dev-lang/zig/zig-0.15.1.ebuild
index f482af70f8c1..2c68fd896232 100644
--- a/dev-lang/zig/zig-0.15.1.ebuild
+++ b/dev-lang/zig/zig-0.15.1.ebuild
@@ -12,9 +12,9 @@ ZIG_OPTIONAL=1
inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ EGIT_REPO_URI="https://codeberg.org/ziglang/zig.git";
inherit git-r3
else
VERIFY_SIG_METHOD=minisig
@@ -56,7 +56,7 @@ BUILD_DIR="${WORKDIR}/${P}_build"
# Zig requires zstd and zlib compression support in LLVM, if using LLVM
backend.
# (non-LLVM backends don't r
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 5a0dbd8baa646776ed460d323c2b176bf9323afd
Author: Eric Joldasov landless-city net>
AuthorDate: Thu Nov 27 08:58:08 2025 +
Commit: Joonas Niilola gentoo org>
CommitDate: Thu Nov 27 19:47:43 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a0dbd8b
dev-lang/zig-bin: update HOMEPAGE
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/44792
Closes: https://github.com/gentoo/gentoo/pull/44792
Signed-off-by: Joonas Niilola gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild | 2 +-
dev-lang/zig-bin/zig-bin-0.13.0.ebuild| 2 +-
dev-lang/zig-bin/zig-bin-0.14.1.ebuild| 2 +-
dev-lang/zig-bin/zig-bin-0.15.1.ebuild| 2 +-
dev-lang/zig-bin/zig-bin-0.15.2.ebuild| 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
index 4e0d582f7f85..4304777fdd8d 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
@@ -8,7 +8,7 @@
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
inherit verify-sig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
SRC_URI="
amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
diff --git a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
index 3210e0389557..082bd16bff2c 100644
--- a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
@@ -8,7 +8,7 @@
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
inherit verify-sig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
SRC_URI="
amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
diff --git a/dev-lang/zig-bin/zig-bin-0.14.1.ebuild
b/dev-lang/zig-bin/zig-bin-0.14.1.ebuild
index 39a341794bf4..cd97f08cf50b 100644
--- a/dev-lang/zig-bin/zig-bin-0.14.1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.14.1.ebuild
@@ -8,7 +8,7 @@
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
inherit verify-sig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
SRC_URI="
amd64? (
https://ziglang.org/download/${PV}/zig-x86_64-linux-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-armv7a-linux-${PV}.tar.xz
)
diff --git a/dev-lang/zig-bin/zig-bin-0.15.1.ebuild
b/dev-lang/zig-bin/zig-bin-0.15.1.ebuild
index 263932223096..21edc73a5362 100644
--- a/dev-lang/zig-bin/zig-bin-0.15.1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.15.1.ebuild
@@ -8,7 +8,7 @@
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
inherit verify-sig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
SRC_URI="
amd64? (
https://ziglang.org/download/${PV}/zig-x86_64-linux-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-arm-linux-${PV}.tar.xz )
diff --git a/dev-lang/zig-bin/zig-bin-0.15.2.ebuild
b/dev-lang/zig-bin/zig-bin-0.15.2.ebuild
index 31edd14cca1b..0fd1ce541f20 100644
--- a/dev-lang/zig-bin/zig-bin-0.15.2.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.15.2.ebuild
@@ -8,7 +8,7 @@
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
inherit verify-sig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://codeberg.org/ziglang/zig/";
SRC_URI="
amd64? (
https://ziglang.org/download/${PV}/zig-x86_64-linux-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-arm-linux-${PV}.tar.xz )
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 98a39d72ece17da8a62fe798b2e44e01fdc1df03 Author: Eric Joldasov landless-city net> AuthorDate: Thu Nov 27 08:58:06 2025 + Commit: Joonas Niilola gentoo org> CommitDate: Thu Nov 27 19:47:43 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98a39d72 dev-lang/zig-bin: update upstream metadata Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/44792 Signed-off-by: Joonas Niilola gentoo.org> dev-lang/zig-bin/metadata.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-lang/zig-bin/metadata.xml b/dev-lang/zig-bin/metadata.xml index d99b9ef02762..e39ad90c77ac 100644 --- a/dev-lang/zig-bin/metadata.xml +++ b/dev-lang/zig-bin/metadata.xml @@ -10,7 +10,7 @@ Proxy Maintainers - ziglang/zig - https://github.com/ziglang/zig/issues + ziglang/zig + https://codeberg.org/ziglang/zig/issues
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 6f5276d3ef11a81dba5fa6e915e9b8881994c57a Author: Eric Joldasov landless-city net> AuthorDate: Thu Nov 27 08:58:02 2025 + Commit: Joonas Niilola gentoo org> CommitDate: Thu Nov 27 19:47:38 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f5276d3 dev-lang/zig: update upstream metadata Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/44792 Signed-off-by: Joonas Niilola gentoo.org> dev-lang/zig/metadata.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-lang/zig/metadata.xml b/dev-lang/zig/metadata.xml index 34e44a88bfa3..a5dc58c7d3d7 100644 --- a/dev-lang/zig/metadata.xml +++ b/dev-lang/zig/metadata.xml @@ -14,7 +14,7 @@ Build with LLVM backend and extensions enabled. - ziglang/zig - https://github.com/ziglang/zig/issues + ziglang/zig + https://codeberg.org/ziglang/zig/issues
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 6fb25a830a9131473c76db069b1ca2ffe4b9fc18 Author: Arthur Zamarin gentoo org> AuthorDate: Tue Nov 4 22:35:31 2025 + Commit: Arthur Zamarin gentoo org> CommitDate: Tue Nov 4 22:35:31 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb25a83 dev-lang/zig-bin: Stabilize 0.15.1 amd64, #963735 Signed-off-by: Arthur Zamarin gentoo.org> dev-lang/zig-bin/zig-bin-0.15.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig-bin/zig-bin-0.15.1.ebuild b/dev-lang/zig-bin/zig-bin-0.15.1.ebuild index 13f5f39824d3..263932223096 100644 --- a/dev-lang/zig-bin/zig-bin-0.15.1.ebuild +++ b/dev-lang/zig-bin/zig-bin-0.15.1.ebuild @@ -43,7 +43,7 @@ SRC_URI=" # lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ 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+" SLOT="$(ver_cut 1-2)" -KEYWORDS="-* ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" +KEYWORDS="-* amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )" IDEPEND="app-eselect/eselect-zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 3aa26c8e2b4e971e5feb068c50dff97611309536
Author: Arthur Zamarin gentoo org>
AuthorDate: Tue Nov 4 22:35:31 2025 +
Commit: Arthur Zamarin gentoo org>
CommitDate: Tue Nov 4 22:35:31 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa26c8e
dev-lang/zig: Stabilize 0.15.1 amd64, #963735
Signed-off-by: Arthur Zamarin gentoo.org>
dev-lang/zig/zig-0.15.1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-0.15.1.ebuild b/dev-lang/zig/zig-0.15.1.ebuild
index 87c2e23c5789..f482af70f8c1 100644
--- a/dev-lang/zig/zig-0.15.1.ebuild
+++ b/dev-lang/zig/zig-0.15.1.ebuild
@@ -25,7 +25,7 @@ else
https://ziglang.org/download/${PV}/${P}.tar.xz
verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
"
- KEYWORDS="~amd64 ~arm ~arm64"
+ KEYWORDS="amd64 ~arm ~arm64"
BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 042170938639f54a66bda9708cf0f276f8ede6f2
Author: Eric Joldasov landless-city net>
AuthorDate: Thu Oct 23 12:35:00 2025 +
Commit: Sam James gentoo org>
CommitDate: Thu Oct 23 15:39:09 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04217093
dev-lang/zig: fix build error for
Upstream changed behavior so that the "max_rss" field
in one line of their build.zig is now required:
https://www.github.com/ziglang/zig/pull/25402
Drop the command removing it, as it is no longer needed.
"max_rss" errors were downgraded to warnings in:
https://www.github.com/ziglang/zig/pull/23525
Upstream suggestion:
https://www.github.com/ziglang/zig/issues/25659
Closes: https://bugs.gentoo.org/964953
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/44298
Closes: https://github.com/gentoo/gentoo/pull/44298
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 5 -
1 file changed, 5 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 9f811213cd8f..77bc255c63cc 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -119,11 +119,6 @@ src_prepare() {
# "--system" mode is not used during bootstrap.
fi
- # Remove "limit memory usage" flags, it's already verified by
- # CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
- # according to CI OOM failures, which are not applicable to normal
Gentoo build.
- sed -i -e '/\.max_rss = .*,/d' build.zig || die
-
sed -i '/exe\.allow_so_scripts = true;/d' build.zig || die
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 475f00c7f91d3efdce73af3b3c27a51d32581c47
Author: Eric Joldasov landless-city net>
AuthorDate: Thu Oct 16 16:41:53 2025 +
Commit: Sam James gentoo org>
CommitDate: Thu Oct 16 19:03:21 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=475f00c7
dev-lang/zig: add 0.15.2
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/44204
Closes: https://github.com/gentoo/gentoo/pull/44204
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 +
dev-lang/zig/zig-0.15.2.ebuild | 361 +
2 files changed, 363 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index ec5507e3488d..5cce10557c88 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -5,3 +5,5 @@ DIST zig-0.14.1.tar.xz 17787696 BLAKE2B
7c571ecc775ebe953fd3a09f7f0f221c8ed61313
DIST zig-0.14.1.tar.xz.minisig 312 BLAKE2B
51ed1fc8260617b3016f3c364729df50c8a2e9954128b94a33ce774885bb9a287d5204137ffe4f8b8ddd96ca3130317c08adac6bc950343eb162a6bfa8be2676
SHA512
27b2edc29e12396c5f57e6ef512aec10a31e59dc1ca7403769641b95782df47d975ae3bdc23d3becc52323067533b2e6dc4beaece95d1d5c382b1aec6dc8000f
DIST zig-0.15.1.tar.xz 21359884 BLAKE2B
3768435b8e34af819dca80aea2aae881bbbf8aa999caac7cde11e8f6d303cc47e27a567a4d29742d571c63ce14ddf011de30a928c942f8009958c6570b3b3935
SHA512
8e3e99a399d1ab99c0c6d1d19a995dd8b6e15401c0c2a70d8e2a220d134bed5bec34b158b3018185cf8bb71d9ee429179d8fb3e6db05c495269ab8afd805fc3a
DIST zig-0.15.1.tar.xz.minisig 312 BLAKE2B
ca09f8883bb7f822ad028554b9bef93b9a33d937970daff4b3d7a49a569440fd9dce927aff2d16743fd05ddb3505b468954fbed14aec5f4fbf560b6e91911dc5
SHA512
478f4b428db3e20312cc8c217d3b6ee2f94653bedd4c83c9605a82f8bda27635c849167a60fa76749e471de3ea4469c4932b569dd7e5d48d68012bcae463
+DIST zig-0.15.2.tar.xz 21366268 BLAKE2B
73e3c4df290b2b39f7202ab13ae10b2aef066c5dc65dc9f5e0935af8025902aedb548e02979a4e2c4225d31bc76538b21d6740ab7732ff3a6f3da09cfa221184
SHA512
56b0f2b14da8603bf86ab672fd1fe38c2b04d8d90512839104e85b0fbda94aaf07fecf76b238d7b17715f9fee24be46c1830a96a0b5993cff6adef91b83f3201
+DIST zig-0.15.2.tar.xz.minisig 312 BLAKE2B
6a5615f00a590a21f99700d4bfaea42f9c0469a80b0fef2f9fdae5256d591cac03d15c31772ccdac32db1c8fdc858c526c23d10bed756eace5c79bacd1269fc6
SHA512
d951c167561599a11ac1881c0c12d17be5d8ea3d214b96403acaa5b40f62a6bee48602dcbf963046897481525b801023fe419daca6d6811b495c44a242777a13
diff --git a/dev-lang/zig/zig-0.15.2.ebuild b/dev-lang/zig/zig-0.15.2.ebuild
new file mode 100644
index ..69ecca15fe9c
--- /dev/null
+++ b/dev-lang/zig/zig-0.15.2.ebuild
@@ -0,0 +1,361 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 20 )
+LLVM_OPTIONAL=1
+
+ZIG_SLOT="$(ver_cut 1-2)"
+ZIG_OPTIONAL=1
+
+inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
+ KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+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+"
+SLOT="${ZIG_SLOT}"
+IUSE="debug doc +llvm"
+REQUIRED_USE="
+ !llvm? ( !doc )
+ llvm? ( ${LLVM_REQUIRED_USE} )
+"
+RESTRICT="!llvm? ( test )"
+
+# Used by both "cmake" and "zig" eclasses.
+BUILD_DIR="${WORKDIR}/${P}_build"
+
+# 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 here.
+# You can check ht
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: cb3be55249294dcbce80b39e4ba450556714f7f2 Author: Eric Joldasov landless-city net> AuthorDate: Thu Oct 16 16:35:59 2025 + Commit: Sam James gentoo org> CommitDate: Thu Oct 16 19:03:21 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb3be552 dev-lang/zig-bin: add 0.15.2 Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/44204 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 16 +++ dev-lang/zig-bin/zig-bin-0.15.2.ebuild | 86 ++ 2 files changed, 102 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 61db9c89ddec..2e7fe5f8eea2 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -2,8 +2,12 @@ DIST zig-aarch64-linux-0.14.1.tar.xz 44954692 BLAKE2B 4d79559595517c39718d88ad7f DIST zig-aarch64-linux-0.14.1.tar.xz.minisig 326 BLAKE2B 5a9b834101c483a7879bc01c6929bf4fd7de38215fc3aa8a19629c30078f81bedeafa37781e4d2d56fe6558a149b2be93e4325698ae6d60e22a238a03d70d198 SHA512 81782c22658f8697b6bf7c1a762da1d05541d8e26c23d224b39d464d07ec054d9f58ca2e5526c5e0f08e52ecc7a46a518be36555c76d06eb70411984bb3d2204 DIST zig-aarch64-linux-0.15.1.tar.xz 49493872 BLAKE2B b01d77024afcc00228decf1ea2af7e1a999e7d519319c8bb86ec5757ab4d7a88e4f77f86ca7bc451e76bd5167505472286ed697ad2a23d7d4a078b6ac14d4308 SHA512 744f1bbfd13ea003ca79f6925e5030eead9836979b930d4cc1505e1500aa318bbc29d5dcb74f0680ed0ddf04d129478b76c51d48dfb572af6b7d2015786a4013 DIST zig-aarch64-linux-0.15.1.tar.xz.minisig 326 BLAKE2B b21eb25d68f70bb9a63326d5c855417877cbe168409d974d62f4de5217b941cf595414f376b3c64f1b1530e9a6bb1b35b7c5354b98aad402da184e35b7d38557 SHA512 81f684e947376c9838d09cb3f16405c108c23ea96bca8d622ea758f716c6e23e9ad7cfbe4c50c182e050609469cc88e8a0f2a236d8d368b3e3b60cf30baf73fa +DIST zig-aarch64-linux-0.15.2.tar.xz 49471996 BLAKE2B 4ca475ab87c9e3a2904ff7f0d086c12042db462f46fff778f8aef65ea2c7c3a736fb548761b47838374d95e9af57f374d9251cbafb158c5d47438d6f0d3d01c2 SHA512 32e406bc5eebd2f41fb4fa8a04e76a4bdc5fcf44dcfbdc7242e063796ba5fccab6734653ca4108576b4557d85c8e984d40431dc707c5699a464dd19ac04aaf1d +DIST zig-aarch64-linux-0.15.2.tar.xz.minisig 326 BLAKE2B 438e0c01f6dee68622f54b13a4aeb97637c5cd9767160aaed7806091fdea2c429f1297a55bc7dceee62cd4acddebf9ae536a376381357af02a5fcf9b4470b2d7 SHA512 79425c6663d5b7e0ad28cb0e0977a63b7547f03277cdfe5110a2476b39b43dba639e18aa1cfe1d0ecab2451a4a901e7f1d792c8c49da8a151a775815e170d256 DIST zig-arm-linux-0.15.1.tar.xz 50477464 BLAKE2B 264e612869d8d0d7aa420eb364b632513c127d52712f7057b838584045c98c26528417d1ed419bbb4b61c8110d3839de4ab6651afe45aa85653d2ae099b0133d SHA512 cacc2ebab72663fcd4d0c5c61f8e6e894bcfaedbe86ee729aa714d0344df6462b767e89f6cdf6326954c653b18d12e3b41c387ba337cc8e8495d92d947c11d8a DIST zig-arm-linux-0.15.1.tar.xz.minisig 322 BLAKE2B 354c87e81bc6bf72390e4e8c2f6397da37ed4ba47c67c39aa03140791157193a8380c5da5915fc72c3c080567dc95a6d1fc5a9c8c606b1c1c326c1b3ebeff6a8 SHA512 eca65431b89e3890f7e8d81294ef8dbf2a95c54dbef620028382a0885179c408fef6a421d443817be5d9283fa6b441f2e012a74944e8eec51f9ea8514ba5deef +DIST zig-arm-linux-0.15.2.tar.xz 50454216 BLAKE2B b7c8ed413c9e740ac43249a896bfd635bfa036ab0eb43dbf14857d7ac543239505d09ed3135a6da8a6530d0a634c7bab164eedc7afc30feb591a44b895caf239 SHA512 03456c940adebf23b050b66fec3e7d7c9bf70b956fa425992ce155e713b1ea1ac6b616f22b0334ca3d62655209c639b020ea29dda1a75aa5fd200e93e1775c18 +DIST zig-arm-linux-0.15.2.tar.xz.minisig 322 BLAKE2B cb9a5640b3d76c5ee26b1fb2815f2fb1a8093797eaff91ac181dc84561e1b4c4e88a80d1e6c9ce3498101b1f81acabff0a8109ac7b98335c6f3dfd4c7f200eea SHA512 dc210f9f3e79e5bb260198fd59ec89848db0ff465ffc0551d79f6914fabf5a1ccb1ce675949f0d52517f1e4df28ca635630a208d73d680f4d322aa8e19f50073 DIST zig-armv7a-linux-0.14.1.tar.xz 46137456 BLAKE2B 295f3f4e029504aa7ea983ae24146a0e4a613a9822237c5a246c569e1409f138bfc5350f70426536502ef88fbad85fbcf2185822823559e18d07fd85eff7c5a2 SHA512 786a33ee9a2472cb35f338e84a120d122a2206b43b64877cf74dbf22eb7afd8b23ab77e04cd225e6731fda26c9acc513204d4cf562d3672d6efdee85f6221976 DIST zig-armv7a-linux-0.14.1.tar.xz.minisig 325 BLAKE2B 0dc940ddd44fe1a155e5aa92df8d9722a4cd20e189b0c3d136a6f95cdf79eab34810451e181c595782efe53066641c97eb0a85996cd860eafbbfaa10e0ad2d06 SHA512 328b265f9539eaed2fff5e29d16120c5b9f32c1658565e9c9b8f82cb19ce0bec3b8b30beb6b5339c12ad082bbf1440e03a828aa1444c168e561006a0c8e6ad82 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 @@ -32,23 +36,35 @@ DIST zig-loongarch64-linux-0.14.1.tar.xz 45825404 BLAKE2B 297087d8cab208d556ab42 DIST zig-loongarch64-linux-0.14.1.tar.xz.minisig 330 BLAKE2B 78d7acc98e6dbaf1f78e5068aa2780b546b737f1e852f4f670
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/
commit: 83584504b4af6c034813ec2bd0cc1b866a43dd66 Author: Arnau Camprubí gmail com> AuthorDate: Sun Aug 24 22:03:08 2025 + Commit: Sam James gentoo org> CommitDate: Mon Sep 1 10:31:16 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83584504 dev-lang/zig-bin: add 0.15.1 Signed-off-by: Arnau Camprubí gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43546 Closes: https://github.com/gentoo/gentoo/pull/43546 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 16 ++ .../zig-0.15.1-reduce-command-new-writer.patch | 175 + dev-lang/zig-bin/zig-bin-0.15.1.ebuild | 88 +++ 3 files changed, 279 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index e01e0cc6c39e..61db9c89ddec 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,5 +1,9 @@ DIST zig-aarch64-linux-0.14.1.tar.xz 44954692 BLAKE2B 4d79559595517c39718d88ad7fc2a3584454f5a239c7e0e444e3137e0041b8e247bf21357f9acc6e075a128dd126832f4ff4a699f64a3dc98f6734feff6311dc SHA512 0019698d9a234dcce32bf84fcc09b582d55a2149e0d6a3d7e38a0a7c22b74d501f4c6c074b3f87dc5fe8b623996059168427eef4a60dea95099e0d5e2123cfe0 DIST zig-aarch64-linux-0.14.1.tar.xz.minisig 326 BLAKE2B 5a9b834101c483a7879bc01c6929bf4fd7de38215fc3aa8a19629c30078f81bedeafa37781e4d2d56fe6558a149b2be93e4325698ae6d60e22a238a03d70d198 SHA512 81782c22658f8697b6bf7c1a762da1d05541d8e26c23d224b39d464d07ec054d9f58ca2e5526c5e0f08e52ecc7a46a518be36555c76d06eb70411984bb3d2204 +DIST zig-aarch64-linux-0.15.1.tar.xz 49493872 BLAKE2B b01d77024afcc00228decf1ea2af7e1a999e7d519319c8bb86ec5757ab4d7a88e4f77f86ca7bc451e76bd5167505472286ed697ad2a23d7d4a078b6ac14d4308 SHA512 744f1bbfd13ea003ca79f6925e5030eead9836979b930d4cc1505e1500aa318bbc29d5dcb74f0680ed0ddf04d129478b76c51d48dfb572af6b7d2015786a4013 +DIST zig-aarch64-linux-0.15.1.tar.xz.minisig 326 BLAKE2B b21eb25d68f70bb9a63326d5c855417877cbe168409d974d62f4de5217b941cf595414f376b3c64f1b1530e9a6bb1b35b7c5354b98aad402da184e35b7d38557 SHA512 81f684e947376c9838d09cb3f16405c108c23ea96bca8d622ea758f716c6e23e9ad7cfbe4c50c182e050609469cc88e8a0f2a236d8d368b3e3b60cf30baf73fa +DIST zig-arm-linux-0.15.1.tar.xz 50477464 BLAKE2B 264e612869d8d0d7aa420eb364b632513c127d52712f7057b838584045c98c26528417d1ed419bbb4b61c8110d3839de4ab6651afe45aa85653d2ae099b0133d SHA512 cacc2ebab72663fcd4d0c5c61f8e6e894bcfaedbe86ee729aa714d0344df6462b767e89f6cdf6326954c653b18d12e3b41c387ba337cc8e8495d92d947c11d8a +DIST zig-arm-linux-0.15.1.tar.xz.minisig 322 BLAKE2B 354c87e81bc6bf72390e4e8c2f6397da37ed4ba47c67c39aa03140791157193a8380c5da5915fc72c3c080567dc95a6d1fc5a9c8c606b1c1c326c1b3ebeff6a8 SHA512 eca65431b89e3890f7e8d81294ef8dbf2a95c54dbef620028382a0885179c408fef6a421d443817be5d9283fa6b441f2e012a74944e8eec51f9ea8514ba5deef DIST zig-armv7a-linux-0.14.1.tar.xz 46137456 BLAKE2B 295f3f4e029504aa7ea983ae24146a0e4a613a9822237c5a246c569e1409f138bfc5350f70426536502ef88fbad85fbcf2185822823559e18d07fd85eff7c5a2 SHA512 786a33ee9a2472cb35f338e84a120d122a2206b43b64877cf74dbf22eb7afd8b23ab77e04cd225e6731fda26c9acc513204d4cf562d3672d6efdee85f6221976 DIST zig-armv7a-linux-0.14.1.tar.xz.minisig 325 BLAKE2B 0dc940ddd44fe1a155e5aa92df8d9722a4cd20e189b0c3d136a6f95cdf79eab34810451e181c595782efe53066641c97eb0a85996cd860eafbbfaa10e0ad2d06 SHA512 328b265f9539eaed2fff5e29d16120c5b9f32c1658565e9c9b8f82cb19ce0bec3b8b30beb6b5339c12ad082bbf1440e03a828aa1444c168e561006a0c8e6ad82 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 @@ -26,13 +30,25 @@ DIST zig-linux-x86_64-0.13.0.tar.xz 47082308 BLAKE2B 587565eaac53f0137bdfb4c58e5 DIST zig-linux-x86_64-0.13.0.tar.xz.minisig 325 BLAKE2B 9161b9b36c38c2b388a0850011bcc22119bb7b0333615914780fe63fb741298524be196db0721b6f3f053079c7f95b5786dbb9059c4a627a9786752ebe4e SHA512 279cf9abb3b86893a3fd4ac124e954d8f01d6823831591cf2c869538bce4b2cbfcdb67279b9875bfe3a865841ca976b9fb7b4c4c63fe2b56937d3023664e81c6 DIST zig-loongarch64-linux-0.14.1.tar.xz 45825404 BLAKE2B 297087d8cab208d556ab42f078af10e64347bf3be80a8a249b31d5435c8848f6549f92d14365be6dfddeb2a2f05c61da94fa6d35212cc4743ad455c7ae7fe068 SHA512 c8c29bbacd7a17eedd1103dc6dac15c43838df2e244f321407a540e5ec74bd06d65a02433f2a49b16033b39876398f4864f78d17069e6d41850bc4ff358e679e DIST zig-loongarch64-linux-0.14.1.tar.xz.minisig 330 BLAKE2B 78d7acc98e6dbaf1f78e5068aa2780b546b737f1e852f4f670f15c3fc99a6cd99cbcabe24ede963f11c3b76d0a8c9ec326519e5964105b1a7eddce1d7ba6e25b SHA512 f0f7e03d292b46d8ed3e69d7630eb659de4d9ee249d80e921d38ed7cd84f3a4dbc58ed2cdb01c554c6ae0a9cd4409b420794e3e9b90fd5b63e0ed54066888b3f +DIST zig-loongarch64-linux-0.15.1.tar.xz 50794376 BLAKE2B 87794
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig/
commit: a61ba8c1a44f0eadaa213109fe689df0324db71e
Author: Arnau Camprubí gmail com>
AuthorDate: Sun Aug 24 22:00:32 2025 +
Commit: Sam James gentoo org>
CommitDate: Mon Sep 1 10:31:16 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a61ba8c1
dev-lang/zig: add 0.15.1
Signed-off-by: Arnau Camprubí gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43546
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 +
.../zig-0.15.1-reduce-command-new-writer.patch | 175 ++
dev-lang/zig/zig-0.15.1.ebuild | 365 +
3 files changed, 542 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 25b372f2797b..ec5507e3488d 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -3,3 +3,5 @@ DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20f
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
DIST zig-0.14.1.tar.xz 17787696 BLAKE2B
7c571ecc775ebe953fd3a09f7f0f221c8ed613132d99142ee9fbe18202b24631a0e037d759a497b5ddfde73986b609187fb10c33295ce9030a03ba39d7a3
SHA512
b2b96f241216a46503af95a1175c967ac869391cc87fcb42db2c29d9d513e7ab19c4f4ced2c078481c36aea95f412f3162a8b319aa86b5e2462af567554e8216
DIST zig-0.14.1.tar.xz.minisig 312 BLAKE2B
51ed1fc8260617b3016f3c364729df50c8a2e9954128b94a33ce774885bb9a287d5204137ffe4f8b8ddd96ca3130317c08adac6bc950343eb162a6bfa8be2676
SHA512
27b2edc29e12396c5f57e6ef512aec10a31e59dc1ca7403769641b95782df47d975ae3bdc23d3becc52323067533b2e6dc4beaece95d1d5c382b1aec6dc8000f
+DIST zig-0.15.1.tar.xz 21359884 BLAKE2B
3768435b8e34af819dca80aea2aae881bbbf8aa999caac7cde11e8f6d303cc47e27a567a4d29742d571c63ce14ddf011de30a928c942f8009958c6570b3b3935
SHA512
8e3e99a399d1ab99c0c6d1d19a995dd8b6e15401c0c2a70d8e2a220d134bed5bec34b158b3018185cf8bb71d9ee429179d8fb3e6db05c495269ab8afd805fc3a
+DIST zig-0.15.1.tar.xz.minisig 312 BLAKE2B
ca09f8883bb7f822ad028554b9bef93b9a33d937970daff4b3d7a49a569440fd9dce927aff2d16743fd05ddb3505b468954fbed14aec5f4fbf560b6e91911dc5
SHA512
478f4b428db3e20312cc8c217d3b6ee2f94653bedd4c83c9605a82f8bda27635c849167a60fa76749e471de3ea4469c4932b569dd7e5d48d68012bcae463
diff --git a/dev-lang/zig/files/zig-0.15.1-reduce-command-new-writer.patch
b/dev-lang/zig/files/zig-0.15.1-reduce-command-new-writer.patch
new file mode 100644
index ..07bb44b3cfa7
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.15.1-reduce-command-new-writer.patch
@@ -0,0 +1,175 @@
+# https://github.com/ziglang/zig/pull/24928
+
+From: Justus Klausecker
+
+zig reduce: adapt to new Writer API
+
+diff --git a/lib/compiler/reduce.zig b/lib/compiler/reduce.zig
+index d9955b9e3383..b20a2fcba318 100644
+--- a/lib/compiler/reduce.zig
b/lib/compiler/reduce.zig
+@@ -114,10 +114,10 @@ pub fn main() !void {
+ interestingness_argv.appendAssumeCapacity(checker_path);
+ interestingness_argv.appendSliceAssumeCapacity(argv);
+
+-var rendered = std.array_list.Managed(u8).init(gpa);
++var rendered: std.Io.Writer.Allocating = .init(gpa);
+ defer rendered.deinit();
+
+-var astgen_input = std.array_list.Managed(u8).init(gpa);
++var astgen_input: std.Io.Writer.Allocating = .init(gpa);
+ defer astgen_input.deinit();
+
+ var tree = try parse(gpa, root_source_file_path);
+@@ -138,10 +138,10 @@ pub fn main() !void {
+ }
+ }
+
+-var fixups: Ast.Fixups = .{};
++var fixups: Ast.Render.Fixups = .{};
+ defer fixups.deinit(gpa);
+
+-var more_fixups: Ast.Fixups = .{};
++var more_fixups: Ast.Render.Fixups = .{};
+ defer more_fixups.deinit(gpa);
+
+ var rng = std.Random.DefaultPrng.init(seed);
+@@ -188,15 +188,14 @@ pub fn main() !void {
+ try transformationsToFixups(gpa, arena, root_source_file_path,
this_set, &fixups);
+
+ rendered.clearRetainingCapacity();
+-try tree.renderToArrayList(&rendered, fixups);
++try tree.render(gpa, &rendered.writer, fixups);
+
+ // The transformations we applied may have resulted in unused
locals,
+ // in which case we would like to add the respective discards.
+ {
+-try astgen_input.resize(rendered.items.len);
+-@memcpy(astgen_input.items, rendered.items);
+-try astgen_input.append(0);
+-const source_with_null = astgen_input.items[0 ..
astgen_input.items.len - 1 :0];
++try astgen_input.writer.writeAll(rendered.written());
++try astgen_input.writer.writeByte(0);
++const source_with_null =
astgen_input.written()[0..(astgen_input.written().len - 1) :0];
+
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 04cff48996e5a4ebc08ff409e52394815e1322c3 Author: Eric Joldasov landless-city net> AuthorDate: Sun Aug 31 09:20:25 2025 + Commit: Sam James gentoo org> CommitDate: Mon Sep 1 10:31:17 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04cff489 dev-lang/zig: update to LLVM 21 for Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/43618 Closes: https://github.com/gentoo/gentoo/pull/43618 Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index 69ecca15fe9c..9f811213cd8f 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_COMPAT=( 20 ) +LLVM_COMPAT=( 21 ) LLVM_OPTIONAL=1 ZIG_SLOT="$(ver_cut 1-2)"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ade6ee1f48760e2219fe933e86f1d985801fca60
Author: Sam James gentoo org>
AuthorDate: Tue Jul 1 22:07:14 2025 +
Commit: Sam James gentoo org>
CommitDate: Tue Jul 1 22:07:14 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ade6ee1f
dev-lang/zig: Stabilize 0.14.1 amd64, #959358
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.14.1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-0.14.1.ebuild b/dev-lang/zig/zig-0.14.1.ebuild
index 99b5a63c28a3..0a5333025e9d 100644
--- a/dev-lang/zig/zig-0.14.1.ebuild
+++ b/dev-lang/zig/zig-0.14.1.ebuild
@@ -25,7 +25,7 @@ else
https://ziglang.org/download/${PV}/${P}.tar.xz
verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
"
- KEYWORDS="~amd64 ~arm ~arm64"
+ KEYWORDS="amd64 ~arm ~arm64"
BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 9a38fbf79beee300423307eac7eb5518d45a60d3 Author: Sam James gentoo org> AuthorDate: Tue Jul 1 22:07:15 2025 + Commit: Sam James gentoo org> CommitDate: Tue Jul 1 22:07:15 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a38fbf7 dev-lang/zig-bin: Stabilize 0.14.1 amd64, #959358 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/zig-bin-0.14.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig-bin/zig-bin-0.14.1.ebuild b/dev-lang/zig-bin/zig-bin-0.14.1.ebuild index fdd28bda1e95..39a341794bf4 100644 --- a/dev-lang/zig-bin/zig-bin-0.14.1.ebuild +++ b/dev-lang/zig-bin/zig-bin-0.14.1.ebuild @@ -43,7 +43,7 @@ SRC_URI=" # lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ 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+" SLOT="$(ver_cut 1-2)" -KEYWORDS="-* ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" +KEYWORDS="-* amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )" IDEPEND="app-eselect/eselect-zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: cb3386c49e862be809e95ff833d2c03d7b5afdf5
Author: Eric Joldasov landless-city net>
AuthorDate: Mon Jun 9 17:16:43 2025 +
Commit: Sam James gentoo org>
CommitDate: Fri Jun 13 10:39:28 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb3386c4
dev-lang/zig: drop 0.14.0
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/42566
Closes: https://github.com/gentoo/gentoo/pull/42566
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 -
dev-lang/zig/zig-0.14.0.ebuild | 354 -
2 files changed, 356 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 1833bf102917..25b372f2797b 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,7 +1,5 @@
DIST zig-0.13.0-llvm-18.1.8-r6-fix.patch 45968 BLAKE2B
a07c47b22b079d324b200fe84af5c89ffe51a1c81f50ca894a80f9f9db51a9d4119ae51c2e4e84a9b4f0111b2b809978b88adca42480ee800693afbd78f47387
SHA512
148b3f4807763dfb6a4d4e201890fa8204deaf73e620a8b592dfa03b997bc16ed01ea26e4d85f242473e91ccc45b1a06af22f786851f8e26cec1ac821b14efdc
DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20fe118e8362373336b6460e514028978584087f6e7f25ed8b8e6991610edce625676a1dd80c1975c5f9ef48775
SHA512
6f5f31f4ba71a11d8b16c7a5a613e124095e503fa6b02d2b77e5b177674c739287e81d98d96dc261fed24bc836caf196f71c3fcc7a6518387df86ba9e03df4dd
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
-DIST zig-0.14.0.tar.xz 17772188 BLAKE2B
139a9d48c0a324f64633c71c7d572a60f817d11be9ea0c5cd837cdb78239969be581e51403b75790bbb95cc9c0111bd966134d4f2652863bb2a3f61d65afa531
SHA512
046462526ec16d56e8dcead8f8b680e99101090766c443f512f308c25860e8416f6fb2be15d4a387baa94f63a6fea6255374874c1ccf19144facbc02226a503b
-DIST zig-0.14.0.tar.xz.minisig 312 BLAKE2B
aba72ba97a978a84e9a938d2641c089a2c5f577041b8a777b9d4b8f7ee2d0b13cd03ccafcd5b4e627ba5fdff6592ca4ead2afa111b4cb769b66ed584b6e085e2
SHA512
a5d0946f136b2a28efbfde77f6052cd8745147df64bb70ed30d1d79bad27a52af451631750d592134e1933763ebe5e24215459481864bec0a969c1730527dc2c
DIST zig-0.14.1.tar.xz 17787696 BLAKE2B
7c571ecc775ebe953fd3a09f7f0f221c8ed613132d99142ee9fbe18202b24631a0e037d759a497b5ddfde73986b609187fb10c33295ce9030a03ba39d7a3
SHA512
b2b96f241216a46503af95a1175c967ac869391cc87fcb42db2c29d9d513e7ab19c4f4ced2c078481c36aea95f412f3162a8b319aa86b5e2462af567554e8216
DIST zig-0.14.1.tar.xz.minisig 312 BLAKE2B
51ed1fc8260617b3016f3c364729df50c8a2e9954128b94a33ce774885bb9a287d5204137ffe4f8b8ddd96ca3130317c08adac6bc950343eb162a6bfa8be2676
SHA512
27b2edc29e12396c5f57e6ef512aec10a31e59dc1ca7403769641b95782df47d975ae3bdc23d3becc52323067533b2e6dc4beaece95d1d5c382b1aec6dc8000f
diff --git a/dev-lang/zig/zig-0.14.0.ebuild b/dev-lang/zig/zig-0.14.0.ebuild
deleted file mode 100644
index 975e6b5cd091..
--- a/dev-lang/zig/zig-0.14.0.ebuild
+++ /dev/null
@@ -1,354 +0,0 @@
-# Copyright 2019-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 19 )
-LLVM_OPTIONAL=1
-
-ZIG_SLOT="$(ver_cut 1-2)"
-ZIG_OPTIONAL=1
-
-inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
-if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
- inherit git-r3
-else
- VERIFY_SIG_METHOD=minisig
-
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
- inherit verify-sig
-
- SRC_URI="
- https://ziglang.org/download/${PV}/${P}.tar.xz
- verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
- "
- KEYWORDS="~amd64 ~arm ~arm64"
-
- BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
-fi
-
-# project itself: MIT
-# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
-# Files that are unnecessary for cross-compilation are removed by upstream
-# and therefore their licenses (if any special) are not included.
-# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
-# lib/libc/musl: MIT BSD-2
-# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
-# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
-LICENSE="MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || (
Apache-2.0-wi
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 956f2503303892c22722abea3605b4566790af6e Author: Eric Joldasov landless-city net> AuthorDate: Mon Jun 9 17:16:22 2025 + Commit: Sam James gentoo org> CommitDate: Fri Jun 13 10:39:27 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956f2503 dev-lang/zig-bin: drop 0.14.0 Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/42566 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 14 -- dev-lang/zig-bin/zig-bin-0.14.0.ebuild | 91 -- 2 files changed, 105 deletions(-) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 27abd7891c6c..e01e0cc6c39e 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -6,38 +6,24 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f DIST zig-linux-aarch64-0.13.0.tar.xz 43090688 BLAKE2B 658376ddd6f74ced4e8d875573e53e236ce65d11bf098db7fc1c6a119b88dc97c45212101e0b3a4cfb7d0f4481d696fbb65b765344f44451d20c5bfb36cfbc14 SHA512 0e36c26da0088aec54939af0cbe5219132d56cb8bb1f298ca50e1a628d3fbdfd401441695013b6d3fd282905bb273ccc160b4f0dbced236aa1408278f532d99a DIST zig-linux-aarch64-0.13.0.tar.xz.minisig 326 BLAKE2B 2f4008c036a309bf3efdfa719a7e4cca0c13c0c5a93e6a8c2e9c75cff7ea9a000cc52f695487c1b1199eebece4853b11ca4d3a22935f12b6d07b9f465da01c2e SHA512 a5635610a17f61e8608379bee0e10c8a43a565ddf22394da214e28b6a84fadd6809bdcdb7996ebc2bc2bfa6d1fa4a5e47191f6aa8536450b01cae03871145679 -DIST zig-linux-aarch64-0.14.0.tar.xz 44922728 BLAKE2B 6423324bd1b0a371819fa58bd1caa203f366b09aad482ad9e6f09f6d2c5f7f6d57f19f92843f72667f1d247ce5d7d28f36725a098c8a493509677b00f3fa4d30 SHA512 7e860884a647347b4a1210d2b1a8bbd63d33316230cfc7d30d971ce2b21c62cdfaf976c1bde36ea2a421c3f692f3cca4335f72b8d306df557ec4ef7209cde43a -DIST zig-linux-aarch64-0.14.0.tar.xz.minisig 326 BLAKE2B 2cfe886e12c2ee22255e2d67f900d4f8f7489cc7bd66b6c65b28c1a03bba86fa81458b291865882e8c8c0bad18593357dd9118c1fadefab30194bab00bb1ce09 SHA512 71321b344184c47128262e832c6c6a84aa3e799a0d70865d998980983f7ea1203b3a92d44659847f5f70f86186569f3763efed586e364ee570daae35ca992feb DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc DIST zig-linux-armv7a-0.13.0.tar.xz 43998916 BLAKE2B 5ab0f39209d900690f28a73bade854aecbd77d6d7bccfdca97d49e5fc40d198023f2f9b1e96eaa9afa6a368c6f35575aeac52422d486a691dd4779ca118836ca SHA512 d93005a14dae40e6de66ad0e3150ac15284c01839ae0a19531a4e2f54a628b9fe3bcb08b6d526b96ba9d79d232c5c0c2b813877359c76b927435085671c57ab6 DIST zig-linux-armv7a-0.13.0.tar.xz.minisig 325 BLAKE2B 3b1fa76b70cf364f218af9299812ec175d03d0b4bf3d6748737d26fc9ef55b97f24b1ce34c62e16fb44e72b16659d2f41069d59e662ae4a95d461fe1f25132fc SHA512 68c822bf8718cf547d20ef0cff16343ac9a99b27738ac81bd660b8d55f69c4ac5666b0a4766b18acbc391923784a0bddf67c504ffae13b8f6219e59244aa665b -DIST zig-linux-armv7a-0.14.0.tar.xz 46112980 BLAKE2B d87af0f9b084ebc6c81b6afea17dd62b15ee583e50edcd5b11880825397341df3da29b58b60293eff1bccf500cf1ce82603611d9fd662e5e62628ce8bd66107e SHA512 8aff125dafb8017b57a664cf4a3957637abc5eec97583f343fd0d1c97927c50278bc6afd6ae6a1640e0559dc2347d974453a342fe072b9de4a377bdb5602ea44 -DIST zig-linux-armv7a-0.14.0.tar.xz.minisig 325 BLAKE2B 2225ea5c73f67910bfa6b8ea7d48487001bd324784c23bd7d5683513377e6d843981ce4b04441ea4e9956ad148d2a34a55024b08f9f8a9b175fd659abe9383f6 SHA512 15f1004f22d980d91bb47019be9f809e21bc238e0ee3083e01725a37532562c6f7d198b539a266a88c28ab8d42859b4e2e8738f61f263c5410b6d76a538e14df DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f SHA512 97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3 DIST zig-linux-i386-0.10.1.tar.xz.minisig 323 BLAKE2B e25778cf26696ae0450186b6173dc69cfc9eb165903d5c4b1bcb9d01b55646f1af5047e129a1241200b7d7bd041bc9aa85841eee3a9366b7e88a2eccce3dae88 SHA512 52e66eb9a486
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 1a0597224c55e1f820e924dd34db0d9c8e0b8cf1
Author: Eric Joldasov landless-city net>
AuthorDate: Sun May 25 17:33:59 2025 +
Commit: Sam James gentoo org>
CommitDate: Sat May 31 21:09:07 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a059722
dev-lang/zig: add 0.14.1
Also removed old notice about standard library documentation and
restructuted filter logic for test step arguments.
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/42374
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 +
.../zig/files/zig-0.14.1-skip-test-heap_sort.patch | 20 ++
dev-lang/zig/zig-0.14.1.ebuild | 365 +
3 files changed, 387 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 9fa4f6de4918..1833bf102917 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -3,3 +3,5 @@ DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20f
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
DIST zig-0.14.0.tar.xz 17772188 BLAKE2B
139a9d48c0a324f64633c71c7d572a60f817d11be9ea0c5cd837cdb78239969be581e51403b75790bbb95cc9c0111bd966134d4f2652863bb2a3f61d65afa531
SHA512
046462526ec16d56e8dcead8f8b680e99101090766c443f512f308c25860e8416f6fb2be15d4a387baa94f63a6fea6255374874c1ccf19144facbc02226a503b
DIST zig-0.14.0.tar.xz.minisig 312 BLAKE2B
aba72ba97a978a84e9a938d2641c089a2c5f577041b8a777b9d4b8f7ee2d0b13cd03ccafcd5b4e627ba5fdff6592ca4ead2afa111b4cb769b66ed584b6e085e2
SHA512
a5d0946f136b2a28efbfde77f6052cd8745147df64bb70ed30d1d79bad27a52af451631750d592134e1933763ebe5e24215459481864bec0a969c1730527dc2c
+DIST zig-0.14.1.tar.xz 17787696 BLAKE2B
7c571ecc775ebe953fd3a09f7f0f221c8ed613132d99142ee9fbe18202b24631a0e037d759a497b5ddfde73986b609187fb10c33295ce9030a03ba39d7a3
SHA512
b2b96f241216a46503af95a1175c967ac869391cc87fcb42db2c29d9d513e7ab19c4f4ced2c078481c36aea95f412f3162a8b319aa86b5e2462af567554e8216
+DIST zig-0.14.1.tar.xz.minisig 312 BLAKE2B
51ed1fc8260617b3016f3c364729df50c8a2e9954128b94a33ce774885bb9a287d5204137ffe4f8b8ddd96ca3130317c08adac6bc950343eb162a6bfa8be2676
SHA512
27b2edc29e12396c5f57e6ef512aec10a31e59dc1ca7403769641b95782df47d975ae3bdc23d3becc52323067533b2e6dc4beaece95d1d5c382b1aec6dc8000f
diff --git a/dev-lang/zig/files/zig-0.14.1-skip-test-heap_sort.patch
b/dev-lang/zig/files/zig-0.14.1-skip-test-heap_sort.patch
new file mode 100644
index ..50905709337a
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.14.1-skip-test-heap_sort.patch
@@ -0,0 +1,20 @@
+From: Eric Joldasov
+
+Skip heap sort test in std.sort due to test failure on native target.
+The failure is specific to 0.14 branch and does not reproduce on master.
+
+Signed-off-by: Eric Joldasov
+
+diff --git a/lib/std/sort.zig b/lib/std/sort.zig
+index 8705d24017..984f14c905 100644
+--- a/lib/std/sort.zig
b/lib/std/sort.zig
+@@ -155,7 +155,7 @@ const sort_funcs = &[_]fn (comptime type, anytype,
anytype, comptime anytype) vo
+ block,
+ pdq,
+ insertion,
+-heap,
++// heap,
+ };
+
+ const context_sort_funcs = &[_]fn (usize, usize, anytype) void{
diff --git a/dev-lang/zig/zig-0.14.1.ebuild b/dev-lang/zig/zig-0.14.1.ebuild
new file mode 100644
index ..99b5a63c28a3
--- /dev/null
+++ b/dev-lang/zig/zig-0.14.1.ebuild
@@ -0,0 +1,365 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 19 )
+LLVM_OPTIONAL=1
+
+ZIG_SLOT="$(ver_cut 1-2)"
+ZIG_OPTIONAL=1
+
+inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
+ KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: c7f0478ce0c8592103670f2ebb5aa479ba81dc15 Author: Eric Joldasov landless-city net> AuthorDate: Sun May 25 14:01:29 2025 + Commit: Sam James gentoo org> CommitDate: Sat May 31 21:09:07 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f0478c dev-lang/zig-bin: add 0.14.1 Also keyworded for s390, and removed old notice about standard library documentation. Signed-off-by: Eric Joldasov landless-city.net> Part-of: https://github.com/gentoo/gentoo/pull/42374 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 16 +++ dev-lang/zig-bin/zig-bin-0.14.1.ebuild | 86 ++ 2 files changed, 102 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 4d4118d0d4b1..27abd7891c6c 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,3 +1,7 @@ +DIST zig-aarch64-linux-0.14.1.tar.xz 44954692 BLAKE2B 4d79559595517c39718d88ad7fc2a3584454f5a239c7e0e444e3137e0041b8e247bf21357f9acc6e075a128dd126832f4ff4a699f64a3dc98f6734feff6311dc SHA512 0019698d9a234dcce32bf84fcc09b582d55a2149e0d6a3d7e38a0a7c22b74d501f4c6c074b3f87dc5fe8b623996059168427eef4a60dea95099e0d5e2123cfe0 +DIST zig-aarch64-linux-0.14.1.tar.xz.minisig 326 BLAKE2B 5a9b834101c483a7879bc01c6929bf4fd7de38215fc3aa8a19629c30078f81bedeafa37781e4d2d56fe6558a149b2be93e4325698ae6d60e22a238a03d70d198 SHA512 81782c22658f8697b6bf7c1a762da1d05541d8e26c23d224b39d464d07ec054d9f58ca2e5526c5e0f08e52ecc7a46a518be36555c76d06eb70411984bb3d2204 +DIST zig-armv7a-linux-0.14.1.tar.xz 46137456 BLAKE2B 295f3f4e029504aa7ea983ae24146a0e4a613a9822237c5a246c569e1409f138bfc5350f70426536502ef88fbad85fbcf2185822823559e18d07fd85eff7c5a2 SHA512 786a33ee9a2472cb35f338e84a120d122a2206b43b64877cf74dbf22eb7afd8b23ab77e04cd225e6731fda26c9acc513204d4cf562d3672d6efdee85f6221976 +DIST zig-armv7a-linux-0.14.1.tar.xz.minisig 325 BLAKE2B 0dc940ddd44fe1a155e5aa92df8d9722a4cd20e189b0c3d136a6f95cdf79eab34810451e181c595782efe53066641c97eb0a85996cd860eafbbfaa10e0ad2d06 SHA512 328b265f9539eaed2fff5e29d16120c5b9f32c1658565e9c9b8f82cb19ce0bec3b8b30beb6b5339c12ad082bbf1440e03a828aa1444c168e561006a0c8e6ad82 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f DIST zig-linux-aarch64-0.13.0.tar.xz 43090688 BLAKE2B 658376ddd6f74ced4e8d875573e53e236ce65d11bf098db7fc1c6a119b88dc97c45212101e0b3a4cfb7d0f4481d696fbb65b765344f44451d20c5bfb36cfbc14 SHA512 0e36c26da0088aec54939af0cbe5219132d56cb8bb1f298ca50e1a628d3fbdfd401441695013b6d3fd282905bb273ccc160b4f0dbced236aa1408278f532d99a @@ -34,3 +38,15 @@ DIST zig-linux-x86_64-0.13.0.tar.xz 47082308 BLAKE2B 587565eaac53f0137bdfb4c58e5 DIST zig-linux-x86_64-0.13.0.tar.xz.minisig 325 BLAKE2B 9161b9b36c38c2b388a0850011bcc22119bb7b0333615914780fe63fb741298524be196db0721b6f3f053079c7f95b5786dbb9059c4a627a9786752ebe4e SHA512 279cf9abb3b86893a3fd4ac124e954d8f01d6823831591cf2c869538bce4b2cbfcdb67279b9875bfe3a865841ca976b9fb7b4c4c63fe2b56937d3023664e81c6 DIST zig-linux-x86_64-0.14.0.tar.xz 49091960 BLAKE2B 19a75a3b49c705ff30e3684e9ef17011fe62c3b31253f1893b2396a7cd0e462b7b4f1f4969ec3d0ea000bf486e2dced5827ef252de31fa6364e3ea95c931fb9a SHA512 2166574c63d0a80320e6c25b4d048475fb89150f35431be26316198a3d0d0010f8d01b385b0c990c37d5debc01367d4b27f72f769f8ee6e4a2f25e87f22f88f6 DIST zig-linux-x86_64-0.14.0.tar.xz.minisig 325 BLAKE2B 10169cf46640f220cb4fae8cfb7a5f32c89a6d3e8a1f6f034c0d40421e6ec0b6955b5c67cfbc9a110a476fa6e4d64170bc86e4e333550c03c70eff87759b72f8 SHA512 67a3128fd9a3d36e64862ed5fcba8593ee7ed4470ca667bfd011061ab9a6020146c010c24a88e090884cfbc5cea5a5997f6ac37cce7c6aae89cbcf18f9a045c2 +DIST zig-loongarch64-linux-0.14.1.tar.xz 45825404 BLAKE2B 297087d8cab208d556ab42f078af10e64347bf3be80a8a249b31d5435c8848f6549f92d14365be6dfddeb2a2f05c61da94fa6d35212cc4743ad455c7ae7fe068 SHA512 c8c29bbacd7a17eedd1103dc6dac15c43838df2e244f321407a540e5ec74bd06d65a02433f2a49b16033b39876398f4864f78d17069e6d41850bc4ff358e679e +DIST zig-loongarch64-linux-0.14.1.tar.xz.minisig 330 BLAKE2B 78d7acc98e6dbaf1f78e5068aa2780b546b737f1e852f4f670f15c3fc99a6cd99cbcabe24ede963f11c3b76d0a8c9ec326519e5964105b1a7eddce1d7ba6e25b SHA512 f0f7e03d292b46d8ed3e69d7630eb659de4d9ee249d80e921d38ed7cd84f3a4dbc58ed2cdb01c554c6ae0a9cd4409b420794e3e9b90fd5b63e0ed54066888b3f +DIST zig-powerpc64le-linux-0.14.1.tar.xz 48720956 BLAKE2B b70a031670af1100a282df79edebf
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 94822957f2fe46cb4415def712dfe238306bdf71
Author: Eric Joldasov landless-city net>
AuthorDate: Sat May 31 13:52:13 2025 +
Commit: Sam James gentoo org>
CommitDate: Sat May 31 21:09:08 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94822957
dev-lang/zig: sync with 0.14.1
See previous commit for details.
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/42374
Closes: https://github.com/gentoo/gentoo/pull/42374
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 49 +---
1 file changed, 28 insertions(+), 21 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 3bd66f06a627..69ecca15fe9c 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -302,21 +302,35 @@ src_test() {
# the test will fail. There's no way to disable --libc once passed,
# so we need to strip it from ZBS_ARGS.
# See: https://github.com/ziglang/zig/issues/22383
- local args_backup=("${ZBS_ARGS[@]}")
- for ((i = 0; i < ${#ZBS_ARGS[@]}; i++)); do
- if [[ "${ZBS_ARGS[i]}" == "--libc" ]]; then
- unset ZBS_ARGS[i]
- unset ZBS_ARGS[i+1]
- break
- fi
- done
-
- # Run tests with Debug mode by default, like upstream does in CI,
- # full test suite with other modes is in a sad state right now...
- ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
--release=debug
-
- ZBS_ARGS=("${args_backup[@]}")
+ # XXX: Also strip --release=* flags to run tests with Debug mode,
+ # like upstream runs in CI. Full test suite with other modes is
+ # in a sad state right now...
+ (
+ local -a filtered_args=()
+ local i=0
+
+ local arg
+ while (( i < ${#ZBS_ARGS[@]} )); do
+ arg="${ZBS_ARGS[i]}"
+ case "$arg" in
+ --libc)
+ (( i += 2 ))
+ ;;
+ --release=*)
+ (( i += 1 ))
+ ;;
+ *)
+ filtered_args+=("$arg")
+ (( i += 1 ))
+ ;;
+ esac
+ done
+
+ ZBS_ARGS=("${filtered_args[@]}")
+
+ ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
+ )
}
src_install() {
@@ -334,13 +348,6 @@ src_install() {
pkg_postinst() {
eselect zig update ifunset || die
- elog "Starting from 0.12.0, Zig no longer installs"
- elog "precompiled standard library documentation."
- elog "Instead, you can call \`zig std\` to compile it on-the-fly."
- elog "It reflects all edits in standard library automatically."
- elog "See \`zig std --help\` for more information."
- elog "More details here:
https://ziglang.org/download/0.12.0/release-notes.html#Redesign-How-Autodoc-Works";
-
if ! use llvm; then
elog "Currently, Zig built without LLVM support lacks some"
elog "important features such as most optimizations, @cImport,
etc."
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: e8d2ae01189188f70baf03fc8e563a15ebb8def7
Author: Eric Joldasov landless-city net>
AuthorDate: Tue Apr 22 06:01:21 2025 +
Commit: Sam James gentoo org>
CommitDate: Wed May 21 21:51:37 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8d2ae01
dev-lang/zig: fix installing in Gentoo Prefix
Closes: https://bugs.gentoo.org/954126
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/41651
Closes: https://github.com/gentoo/gentoo/pull/41651
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 6 +++---
dev-lang/zig/zig-0.14.0.ebuild| 6 +++---
dev-lang/zig/zig-.ebuild | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index ab31d3b108ba..56341c22e5b2 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -89,7 +89,7 @@ pkg_setup() {
declare -r -g ZIG_VER="${PV}"
ZIG_EXE="not-applicable" zig_pkg_setup
- declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ declare -r -g ZIG_SYS_INSTALL_DEST="/usr/$(get_libdir)/zig/${PV}"
if use llvm; then
[[ ${MERGE_TYPE} != binary ]] && llvm_cbuild_setup
@@ -144,7 +144,7 @@ src_configure() {
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- --prefix "${ZIG_SYS_INSTALL_DEST}/"
+ --prefix "${EPREFIX}/${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -326,7 +326,7 @@ src_install() {
ZIG_EXE="./zig2" zig_src_install
- cd "${D}/${ZIG_SYS_INSTALL_DEST}" || die
+ cd "${ED}/${ZIG_SYS_INSTALL_DEST}" || die
mv lib/zig/ lib2/ || die
rm -rf lib/ || die
mv lib2/ lib/ || die
diff --git a/dev-lang/zig/zig-0.14.0.ebuild b/dev-lang/zig/zig-0.14.0.ebuild
index d47ef3cbf718..975e6b5cd091 100644
--- a/dev-lang/zig/zig-0.14.0.ebuild
+++ b/dev-lang/zig/zig-0.14.0.ebuild
@@ -83,7 +83,7 @@ pkg_setup() {
declare -r -g ZIG_VER="${PV}"
ZIG_EXE="not-applicable" zig_pkg_setup
- declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ declare -r -g ZIG_SYS_INSTALL_DEST="/usr/$(get_libdir)/zig/${PV}"
if use llvm; then
[[ ${MERGE_TYPE} != binary ]] && llvm_cbuild_setup
@@ -140,7 +140,7 @@ src_configure() {
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- --prefix "${ZIG_SYS_INSTALL_DEST}/"
+ --prefix "${EPREFIX}/${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -324,7 +324,7 @@ src_install() {
ZIG_EXE="./zig2" zig_src_install
- cd "${D}/${ZIG_SYS_INSTALL_DEST}" || die
+ cd "${ED}/${ZIG_SYS_INSTALL_DEST}" || die
mv lib/zig/ lib2/ || die
rm -rf lib/ || die
mv lib2/ lib/ || die
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index b7c405e9bc89..3bd66f06a627 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -83,7 +83,7 @@ pkg_setup() {
declare -r -g ZIG_VER="${PV}"
ZIG_EXE="not-applicable" zig_pkg_setup
- declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ declare -r -g ZIG_SYS_INSTALL_DEST="/usr/$(get_libdir)/zig/${PV}"
if use llvm; then
[[ ${MERGE_TYPE} != binary ]] && llvm_cbuild_setup
@@ -140,7 +140,7 @@ src_configure() {
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- --prefix "${ZIG_SYS_INSTALL_DEST}/"
+ --prefix "${EPREFIX}/${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -324,7 +324,7 @@ src_install() {
ZIG_EXE="./zig2" zig_src_install
- cd "${D}/${ZIG_SYS_INSTALL_DEST}" || die
+ cd "${ED}/${ZIG_SYS_INSTALL_DEST}" || die
mv lib/zig/ lib2/ || die
rm -rf lib/ || die
mv lib2/ lib/ || die
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 69608b897403f3a5edaada015db94b59f6083740
Author: Eric Joldasov landless-city net>
AuthorDate: Fri Apr 18 17:37:10 2025 +
Commit: Sam James gentoo org>
CommitDate: Wed May 21 21:51:37 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69608b89
dev-lang/zig: skip linker script checks for zig executable
Closes: https://bugs.gentoo.org/951143
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/41651
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.14.0.ebuild | 2 ++
dev-lang/zig/zig-.ebuild | 2 ++
2 files changed, 4 insertions(+)
diff --git a/dev-lang/zig/zig-0.14.0.ebuild b/dev-lang/zig/zig-0.14.0.ebuild
index af0fe7f8192b..d47ef3cbf718 100644
--- a/dev-lang/zig/zig-0.14.0.ebuild
+++ b/dev-lang/zig/zig-0.14.0.ebuild
@@ -123,6 +123,8 @@ src_prepare() {
# CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
# according to CI OOM failures, which are not applicable to normal
Gentoo build.
sed -i -e '/\.max_rss = .*,/d' build.zig || die
+
+ sed -i '/exe\.allow_so_scripts = true;/d' build.zig || die
}
src_configure() {
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index df310ebce706..b7c405e9bc89 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -123,6 +123,8 @@ src_prepare() {
# CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
# according to CI OOM failures, which are not applicable to normal
Gentoo build.
sed -i -e '/\.max_rss = .*,/d' build.zig || die
+
+ sed -i '/exe\.allow_so_scripts = true;/d' build.zig || die
}
src_configure() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ae0aa71eaf099e28360c66a6820f90c9edb8a0b4
Author: Eric Joldasov landless-city net>
AuthorDate: Fri Apr 18 17:36:26 2025 +
Commit: Sam James gentoo org>
CommitDate: Wed May 21 21:51:36 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0aa71e
dev-lang/zig: drop 0.13.0-r2
Signed-off-by: Eric Joldasov landless-city.net>
Part-of: https://github.com/gentoo/gentoo/pull/41651
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r2.ebuild | 276 --
1 file changed, 276 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild
b/dev-lang/zig/zig-0.13.0-r2.ebuild
deleted file mode 100644
index 1eca3d4bd335..
--- a/dev-lang/zig/zig-0.13.0-r2.ebuild
+++ /dev/null
@@ -1,276 +0,0 @@
-# Copyright 2019-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 18 )
-LLVM_OPTIONAL=1
-
-ZIG_SLOT="$(ver_cut 1-2)"
-ZIG_OPTIONAL=1
-
-inherit check-reqs cmake flag-o-matic edo llvm-r1 toolchain-funcs zig
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
-if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
- inherit git-r3
-else
- VERIFY_SIG_METHOD=minisig
-
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
- inherit verify-sig
-
- SRC_URI="
- https://ziglang.org/download/${PV}/${P}.tar.xz
- verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
-
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
- "
- KEYWORDS="~amd64 ~arm ~arm64"
-
- BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
-fi
-
-# project itself: MIT
-# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
-# Files that are unnecessary for cross-compilation are removed by upstream
-# and therefore their licenses (if any special) are not included.
-# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
-# lib/libc/musl: MIT BSD-2
-# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
-# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
-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+"
-SLOT="${ZIG_SLOT}"
-IUSE="doc +llvm"
-REQUIRED_USE="
- !llvm? ( !doc )
- llvm? ( ${LLVM_REQUIRED_USE} )
-"
-
-# Used by both "cmake" and "zig" eclasses.
-BUILD_DIR="${WORKDIR}/${P}_build"
-
-# 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 here.
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see
-# options that are passed to LLVM CMake building (excluding "static" ofc).
-DEPEND="
- llvm? (
- $(llvm_gen_dep '
- llvm-core/clang:${LLVM_SLOT}
- llvm-core/lld:${LLVM_SLOT}
- llvm-core/llvm:${LLVM_SLOT}[zstd]
- ')
- )
-"
-BDEPEND+="
- ${DEPEND}
-"
-RDEPEND="${DEPEND}"
-IDEPEND="app-eselect/eselect-zig"
-
-DOCS=( "README.md" "doc/build.zig.zon.md" )
-
-PATCHES=(
- "${FILESDIR}/zig-0.13.0-test-std-kernel-version.patch"
- "${FILESDIR}/zig-0.13.0-skip-test-stack_iterator.patch"
- "${DISTDIR}/${P}-llvm-18.1.8-r6-fix.patch"
-)
-
-# zig.eclass does not set this for us since we use ZIG_OPTIONAL=1
-QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
-
-# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
-# Zig uses self-hosted compiler only
-CHECKREQS_MEMORY="4G"
-
-pkg_setup() {
- # Skip detecting zig executable.
- ZIG_EXE="not-applicable" ZIG_VER="${PV}" zig_pkg_setup
-
- declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
-
- if use llvm; then
- tc-is-cross-compiler && die "USE=llvm is not yet supported when
cross-compiling"
- llvm-r1_pkg_setup
- fi
-
- check-reqs_pkg_setup
-}
-
-src_unpack() {
- if [[ ${PV} == ]]; then
- git-r3_src_unpack
- else
- if use verify-sig; then
- verify-sig_verify_detached
"${DISTDIR}"/${P}.tar.xz{,.minisig}
- fi
- fi
- zig_src_unpack
-}
-
-src_prepare() {
- if use llvm; then
- cmake_src_prepare
- else
-
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 591c60ed9307097cd32f20f54f42b7afc7c06dde
Author: Sam James gentoo org>
AuthorDate: Sat May 10 18:02:38 2025 +
Commit: Sam James gentoo org>
CommitDate: Sat May 10 18:02:38 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591c60ed
dev-lang/zig: Stabilize 0.13.0-r3 amd64, #953231
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index 474339a4e1a3..ab31d3b108ba 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -26,7 +26,7 @@ else
verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
"
- KEYWORDS="~amd64 ~arm ~arm64"
+ KEYWORDS="amd64 ~arm ~arm64"
BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 45f948ece06c3c8513e9b2288b3d0937f5235998 Author: Sam James gentoo org> AuthorDate: Sat May 10 18:02:39 2025 + Commit: Sam James gentoo org> CommitDate: Sat May 10 18:02:39 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45f948ec dev-lang/zig-bin: Stabilize 0.13.0 amd64, #953231 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/zig-bin-0.13.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild index 3b8dd1ae891a..3210e0389557 100644 --- a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild +++ b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild @@ -39,7 +39,7 @@ SRC_URI=" # lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ 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+" SLOT="$(ver_cut 1-2)" -KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="-* amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )" IDEPEND="app-eselect/eselect-zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ef66c4d439dddc3e745c1d459aa5286f9d7cbdd3 Author: Eric Joldasov landless-city net> AuthorDate: Sat Apr 5 06:36:35 2025 + Commit: Sam James gentoo org> CommitDate: Fri Apr 11 10:02:50 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef66c4d4 dev-lang/zig: update to LLVM 20 for Signed-off-by: Eric Joldasov landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/41463 Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index af0fe7f8192b..df310ebce706 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_COMPAT=( 19 ) +LLVM_COMPAT=( 20 ) LLVM_OPTIONAL=1 ZIG_SLOT="$(ver_cut 1-2)"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: bf825c6fb33c69e3bd144efa9c7b17c4672ae1fd
Author: Eric Joldasov landless-city net>
AuthorDate: Wed Mar 5 08:47:18 2025 +
Commit: Sam James gentoo org>
CommitDate: Wed Mar 5 11:37:58 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf825c6f
dev-lang/zig: add 0.14.0
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40909
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 +
dev-lang/zig/zig-0.14.0.ebuild | 352 +
2 files changed, 354 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 3126303a057c..9fa4f6de4918 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,3 +1,5 @@
DIST zig-0.13.0-llvm-18.1.8-r6-fix.patch 45968 BLAKE2B
a07c47b22b079d324b200fe84af5c89ffe51a1c81f50ca894a80f9f9db51a9d4119ae51c2e4e84a9b4f0111b2b809978b88adca42480ee800693afbd78f47387
SHA512
148b3f4807763dfb6a4d4e201890fa8204deaf73e620a8b592dfa03b997bc16ed01ea26e4d85f242473e91ccc45b1a06af22f786851f8e26cec1ac821b14efdc
DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20fe118e8362373336b6460e514028978584087f6e7f25ed8b8e6991610edce625676a1dd80c1975c5f9ef48775
SHA512
6f5f31f4ba71a11d8b16c7a5a613e124095e503fa6b02d2b77e5b177674c739287e81d98d96dc261fed24bc836caf196f71c3fcc7a6518387df86ba9e03df4dd
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
+DIST zig-0.14.0.tar.xz 17772188 BLAKE2B
139a9d48c0a324f64633c71c7d572a60f817d11be9ea0c5cd837cdb78239969be581e51403b75790bbb95cc9c0111bd966134d4f2652863bb2a3f61d65afa531
SHA512
046462526ec16d56e8dcead8f8b680e99101090766c443f512f308c25860e8416f6fb2be15d4a387baa94f63a6fea6255374874c1ccf19144facbc02226a503b
+DIST zig-0.14.0.tar.xz.minisig 312 BLAKE2B
aba72ba97a978a84e9a938d2641c089a2c5f577041b8a777b9d4b8f7ee2d0b13cd03ccafcd5b4e627ba5fdff6592ca4ead2afa111b4cb769b66ed584b6e085e2
SHA512
a5d0946f136b2a28efbfde77f6052cd8745147df64bb70ed30d1d79bad27a52af451631750d592134e1933763ebe5e24215459481864bec0a969c1730527dc2c
diff --git a/dev-lang/zig/zig-0.14.0.ebuild b/dev-lang/zig/zig-0.14.0.ebuild
new file mode 100644
index ..af0fe7f8192b
--- /dev/null
+++ b/dev-lang/zig/zig-0.14.0.ebuild
@@ -0,0 +1,352 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 19 )
+LLVM_OPTIONAL=1
+
+ZIG_SLOT="$(ver_cut 1-2)"
+ZIG_OPTIONAL=1
+
+inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
+ KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+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+"
+SLOT="${ZIG_SLOT}"
+IUSE="debug doc +llvm"
+REQUIRED_USE="
+ !llvm? ( !doc )
+ llvm? ( ${LLVM_REQUIRED_USE} )
+"
+RESTRICT="!llvm? ( test )"
+
+# Used by both "cmake" and "zig" eclasses.
+BUILD_DIR="${WORKDIR}/${P}_build"
+
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "stat
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 5d6a3a0dec1e32eae90a0d6f21a1479019431609 Author: Eric Joldasov landless-city net> AuthorDate: Wed Mar 5 08:47:11 2025 + Commit: Sam James gentoo org> CommitDate: Wed Mar 5 11:37:57 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6a3a0d dev-lang/zig-bin: add 0.14.0 Signed-off-by: Eric Joldasov landless-city.net> Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 14 ++ dev-lang/zig-bin/zig-bin-0.14.0.ebuild | 91 ++ 2 files changed, 105 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 20d7959e1acc..4d4118d0d4b1 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -2,21 +2,35 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f DIST zig-linux-aarch64-0.13.0.tar.xz 43090688 BLAKE2B 658376ddd6f74ced4e8d875573e53e236ce65d11bf098db7fc1c6a119b88dc97c45212101e0b3a4cfb7d0f4481d696fbb65b765344f44451d20c5bfb36cfbc14 SHA512 0e36c26da0088aec54939af0cbe5219132d56cb8bb1f298ca50e1a628d3fbdfd401441695013b6d3fd282905bb273ccc160b4f0dbced236aa1408278f532d99a DIST zig-linux-aarch64-0.13.0.tar.xz.minisig 326 BLAKE2B 2f4008c036a309bf3efdfa719a7e4cca0c13c0c5a93e6a8c2e9c75cff7ea9a000cc52f695487c1b1199eebece4853b11ca4d3a22935f12b6d07b9f465da01c2e SHA512 a5635610a17f61e8608379bee0e10c8a43a565ddf22394da214e28b6a84fadd6809bdcdb7996ebc2bc2bfa6d1fa4a5e47191f6aa8536450b01cae03871145679 +DIST zig-linux-aarch64-0.14.0.tar.xz 44922728 BLAKE2B 6423324bd1b0a371819fa58bd1caa203f366b09aad482ad9e6f09f6d2c5f7f6d57f19f92843f72667f1d247ce5d7d28f36725a098c8a493509677b00f3fa4d30 SHA512 7e860884a647347b4a1210d2b1a8bbd63d33316230cfc7d30d971ce2b21c62cdfaf976c1bde36ea2a421c3f692f3cca4335f72b8d306df557ec4ef7209cde43a +DIST zig-linux-aarch64-0.14.0.tar.xz.minisig 326 BLAKE2B 2cfe886e12c2ee22255e2d67f900d4f8f7489cc7bd66b6c65b28c1a03bba86fa81458b291865882e8c8c0bad18593357dd9118c1fadefab30194bab00bb1ce09 SHA512 71321b344184c47128262e832c6c6a84aa3e799a0d70865d998980983f7ea1203b3a92d44659847f5f70f86186569f3763efed586e364ee570daae35ca992feb DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc DIST zig-linux-armv7a-0.13.0.tar.xz 43998916 BLAKE2B 5ab0f39209d900690f28a73bade854aecbd77d6d7bccfdca97d49e5fc40d198023f2f9b1e96eaa9afa6a368c6f35575aeac52422d486a691dd4779ca118836ca SHA512 d93005a14dae40e6de66ad0e3150ac15284c01839ae0a19531a4e2f54a628b9fe3bcb08b6d526b96ba9d79d232c5c0c2b813877359c76b927435085671c57ab6 DIST zig-linux-armv7a-0.13.0.tar.xz.minisig 325 BLAKE2B 3b1fa76b70cf364f218af9299812ec175d03d0b4bf3d6748737d26fc9ef55b97f24b1ce34c62e16fb44e72b16659d2f41069d59e662ae4a95d461fe1f25132fc SHA512 68c822bf8718cf547d20ef0cff16343ac9a99b27738ac81bd660b8d55f69c4ac5666b0a4766b18acbc391923784a0bddf67c504ffae13b8f6219e59244aa665b +DIST zig-linux-armv7a-0.14.0.tar.xz 46112980 BLAKE2B d87af0f9b084ebc6c81b6afea17dd62b15ee583e50edcd5b11880825397341df3da29b58b60293eff1bccf500cf1ce82603611d9fd662e5e62628ce8bd66107e SHA512 8aff125dafb8017b57a664cf4a3957637abc5eec97583f343fd0d1c97927c50278bc6afd6ae6a1640e0559dc2347d974453a342fe072b9de4a377bdb5602ea44 +DIST zig-linux-armv7a-0.14.0.tar.xz.minisig 325 BLAKE2B 2225ea5c73f67910bfa6b8ea7d48487001bd324784c23bd7d5683513377e6d843981ce4b04441ea4e9956ad148d2a34a55024b08f9f8a9b175fd659abe9383f6 SHA512 15f1004f22d980d91bb47019be9f809e21bc238e0ee3083e01725a37532562c6f7d198b539a266a88c28ab8d42859b4e2e8738f61f263c5410b6d76a538e14df DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f SHA512 97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3 DIST zig-linux-i386-0.10.1.tar.xz.minisig 323 BLAKE2B e25778cf26696ae0450186b6173dc69cfc9eb165903d5c4b1bcb9d01b55646f1af5047e129a1241200b7d7bd041bc9aa85841eee3a9366b7e88a2eccce3dae88 SHA512 52e66eb9a486e853330f125bad2baf63b87e3544ef1cc12cd59889f3c3a8a7ada
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01
Author: Eric Joldasov landless-city net>
AuthorDate: Tue Mar 4 19:54:52 2025 +
Commit: Sam James gentoo org>
CommitDate: Tue Mar 4 22:05:20 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f091ec5
dev-lang/zig: run tests with LLVM enabled and in Debug mode on
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 landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40891
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index fb120976ef65..af0fe7f8192b 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -48,6 +48,7 @@ REQUIRED_USE="
!llvm? ( !doc )
llvm? ( ${LLVM_REQUIRED_USE} )
"
+RESTRICT="!llvm? ( test )"
# Used by both "cmake" and "zig" eclasses.
BUILD_DIR="${WORKDIR}/${P}_build"
@@ -309,7 +310,9 @@ src_test() {
fi
done
- ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
+ # Run tests with Debug mode by default, like upstream does in CI,
+ # full test suite with other modes is in a sad state right now...
+ ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
--release=debug
ZBS_ARGS=("${args_backup[@]}")
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, eclass/
commit: e4f91d2c2e48b6d6e068a0f1c1adffcece28a324
Author: sin-ack protonmail com>
AuthorDate: Sun Jan 19 10:05:05 2025 +
Commit: Sam James gentoo org>
CommitDate: Mon Mar 3 19:26:28 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4f91d2c
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 landless-city.net>
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40197
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r2.ebuild | 13 +++--
dev-lang/zig/zig-0.13.0-r3.ebuild | 9 +
dev-lang/zig/zig-.ebuild | 9 +
eclass/zig.eclass | 27 +--
4 files changed, 38 insertions(+), 20 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild
b/dev-lang/zig/zig-0.13.0-r2.ebuild
index a17a501b392e..1eca3d4bd335 100644
--- a/dev-lang/zig/zig-0.13.0-r2.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r2.ebuild
@@ -92,7 +92,7 @@ pkg_setup() {
# Skip detecting zig executable.
ZIG_EXE="not-applicable" ZIG_VER="${PV}" zig_pkg_setup
- export ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
if use llvm; then
tc-is-cross-compiler && die "USE=llvm is not yet supported when
cross-compiling"
@@ -142,7 +142,8 @@ src_configure() {
# are used only after compiling zig2.
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- # Will be a subdir under ZIG_SYS_INSTALL_DEST.
+
+ --prefix "${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -199,12 +200,12 @@ src_compile() {
fi
cd "${BUILD_DIR}" || die
- ZIG_EXE="./zig2" zig_src_compile --prefix "${BUILD_DIR}/stage3/"
+ ZIG_EXE="./zig2" zig_src_compile --prefix stage3/
./stage3/bin/zig env || die "Zig compilation failed"
if use doc; then
- ZIG_EXE="./stage3/bin/zig" zig_src_compile langref --prefix
"${S}/docgen/"
+ ZIG_EXE="./stage3/bin/zig" zig_src_compile langref --prefix
docgen/
fi
}
@@ -241,9 +242,9 @@ src_test() {
}
src_install() {
- use doc && local HTML_DOCS=( "docgen/doc/langref.html" )
+ use doc && local HTML_DOCS=( "${BUILD_DIR}/docgen/doc/langref.html" )
- ZIG_EXE="./zig2" zig_src_install --prefix "${ZIG_SYS_INSTALL_DEST}"
+ ZIG_EXE="./zig2" zig_src_install
cd "${D}/${ZIG_SYS_INSTALL_DEST}" || die
mv lib/zig/ lib2/ || die
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index d893e2e33ea2..474339a4e1a3 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -143,7 +143,8 @@ src_configure() {
# are used only after compiling zig2.
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- # Will be a subdir under ZIG_SYS_INSTALL_DEST.
+
+ --prefix "${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -283,7 +284,7 @@ src_compile() {
./stage3/bin/zig env || die "Zig compilation failed"
if use doc; then
- ZIG_EXE="./stage3/bin/zig" zig_src_compile langref
--prefix "${S}/docgen/"
+ ZIG_EXE="./stage3/bin/zig" zig_src_compile langref
--prefix docgen/
fi
fi
}
@@ -321,9 +322,9 @@ src_test() {
}
src_install() {
- use doc && local HTML_DOCS=( "docgen/doc/langref.html" )
+ use doc && local HTML_DOCS=( "${BUILD_DIR}/docgen/doc/langref.html" )
- ZIG_EXE="./zig2" zig_src_install --prefix "${ZIG_SYS_INSTALL_DEST}"
+ ZIG_EXE="./zig2" zig_src_install
cd "${D}/${ZIG_SYS_INSTALL_DEST}" || die
mv lib/zig/ lib2/ || die
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 8fb29ab10b9e..fb120976ef65 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -136,7 +136,8 @@ src_configure() {
# are used only after compiling zig2.
local my_zbs_args=(
--zig-lib-dir "${S}/lib/"
- # Will be a subdir under ZIG_SYS_INSTALL_DEST.
+
+ --prefix "${ZIG_SYS_INSTALL_DEST}/"
--prefix-lib-dir lib/
# These are built separately
@@ -276,7 +277,7 @@ src_compile() {
./stage3/bin/zig env || die "Zig compilation failed"
if use doc; then
- ZIG_EXE="./stage3/bin/zig" zig_src_compile langref
--pr
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 9c26c480a223bbc97a4496652afff4a7e219cea2
Author: Eric Joldasov landless-city net>
AuthorDate: Sun Feb 16 17:59:02 2025 +
Commit: Sam James gentoo org>
CommitDate: Mon Feb 17 01:49:59 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c26c480
dev-lang/zig: do not die on `eselect` in `pkg_postrm` (leftover)
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40598
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index 15de59370bbb..d893e2e33ea2 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -351,5 +351,5 @@ pkg_postinst() {
}
pkg_postrm() {
- eselect zig update ifunset || die
+ eselect zig update ifunset
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 32f75feb938e89b1b4c60e261576546ec1a1dbdc
Author: Eric Joldasov landless-city net>
AuthorDate: Tue Feb 4 16:53:00 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:28:11 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f75feb
dev-lang/zig-bin: 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.
Closes: https://bugs.gentoo.org/949225
Signed-off-by: Eric Joldasov landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/zig-bin-0.13.0.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
index ba3a7c7bda35..3b8dd1ae891a 100644
--- a/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.13.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -85,5 +85,5 @@ pkg_postinst() {
}
pkg_postrm() {
- eselect zig update ifunset || die
+ eselect zig update ifunset
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e
Author: Eric Joldasov landless-city net>
AuthorDate: Tue Feb 4 16:51:58 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:28:11 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbe02e3
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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r2.ebuild | 2 +-
dev-lang/zig/zig-.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild
b/dev-lang/zig/zig-0.13.0-r2.ebuild
index d8fa77b14495..a17a501b392e 100644
--- a/dev-lang/zig/zig-0.13.0-r2.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r2.ebuild
@@ -271,5 +271,5 @@ pkg_postinst() {
}
pkg_postrm() {
- eselect zig update ifunset || die
+ eselect zig update ifunset
}
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index bf7387685f3c..8fb29ab10b9e 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -344,5 +344,5 @@ pkg_postinst() {
}
pkg_postrm() {
- eselect zig update ifunset || die
+ eselect zig update ifunset
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 58e7dab666a19cc4481f0ed3f570141efa286408
Author: Eric Joldasov landless-city net>
AuthorDate: Sun Jan 19 20:18:49 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:28:12 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e7dab6
dev-lang/zig-bin: sync 0.10.1-r3 with 0.13.0 and update install message
Hopefully makes it more clear why this version is still in tree.
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40215
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild | 33 +++
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
index d3bcaa24399a..4e0d582f7f85 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -43,16 +43,15 @@ IUSE="doc"
BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
IDEPEND="app-eselect/eselect-zig"
-# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
-# and all other Zig libraries are meant to be consumed in source form,
-# because they can use compile-time mechanics (and it is easier for
distributions to patch them)
-# Here we use this feature for fixing programs that use standard library
-# Note: Zig build system is also part of standard library, so we can fix it too
+# Zig provides its standard library and some compiler code in source form
"/opt/zig-bin-{PV}/lib/".
+# Here we use this feature to fix programs that use standard library.
+# Note: Zig build system is also part of standard library, so we can fix it
too.
+# Don't remove this comment so that other contributors won't be misleaded by
"-bin" suffix.
PATCHES=(
"${FILESDIR}/zig-0.10.1-musl-1.2.4-lfs64.patch"
)
-QA_PREBUILT="opt/${P}/zig"
+QA_PREBUILT="opt/zig-bin-${PV}/zig"
src_unpack() {
verify-sig_src_unpack
@@ -68,20 +67,20 @@ src_install() {
rm -r ./doc/ || die
doins -r "${S}"
- fperms 0755 "/opt/${P}/zig"
- dosym -r "/opt/${P}/zig" "/usr/bin/zig-bin-${PV}"
+ fperms 0755 /opt/zig-bin-${PV}/zig
+ dosym -r /opt/zig-bin-${PV}/zig /usr/bin/zig-bin-${PV}
}
pkg_postinst() {
- eselect zig update ifunset
+ eselect zig update ifunset || die
- elog "0.10.1 release uses self-hosted compiler by default and fixes
some bugs from 0.10.0"
- elog "But your code still can be un-compilable since some features
still not implemented or bugs not fixed"
- elog "Upstream recommends:"
- elog " * Using old compiler if experiencing such breakage (flag
'-fstage1')"
- elog " * Waiting for release 0.11.0 with old compiler removed (these
changes are already merged in )"
- elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
- elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
+ elog "0.10.1 release uses self-hosted compiler by default and fixes
some bugs from 0.10.0."
+ elog "If you wanted to try async/await syntax (which is still absent in
newer versions),"
+ elog "use '-fstage1' flag to enable old C++-based compiler, since only
stage1 supports this syntax."
+ elog ""
+ elog "See also:
https://ziglang.org/download/0.10.0/release-notes.html#Falling-short-of-stage1
,"
+ elog
"https://github.com/ziglang/zig/wiki/FAQ#what-is-the-status-of-async-in-zig";
+ elog "and https://github.com/ziglang/zig/issues/6025";
}
pkg_postrm() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 7cdd301e55b3bf954e95b9c49ba830b3164df22e
Author: Eric Joldasov landless-city net>
AuthorDate: Sun Jan 19 20:09:39 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:28:10 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cdd301e
dev-lang/zig: drop 0.13.0-r1
Signed-off-by: Eric Joldasov landless-city.net>
Signed-off-by: Sam James gentoo.org>
.../zig/files/zig-0.13.0-test-fmt-no-doc.patch | 17 --
dev-lang/zig/zig-0.13.0-r1.ebuild | 227 -
2 files changed, 244 deletions(-)
diff --git a/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
b/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
deleted file mode 100644
index 7bbda741dc6f..
--- a/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-# Docs contain examples of badly formatted code,
-# so they should be excluded for test-fmt to pass.
-# In the upstream, the "doc" directory
-# was removed from fmt_include_paths in
-# https://github.com/ziglang/zig/commit/cb1d1bdf
-
a/build.zig
-+++ b/build.zig
-@@ -428,7 +428,7 @@
- }
- const optimization_modes = chosen_opt_modes_buf[0..chosen_mode_index];
-
--const fmt_include_paths = &.{ "doc", "lib", "src", "test", "tools",
"build.zig" };
-+const fmt_include_paths = &.{ "lib", "src", "test", "tools", "build.zig"
};
- const fmt_exclude_paths = &.{"test/cases"};
- const do_fmt = b.addFmt(.{
- .paths = fmt_include_paths,
diff --git a/dev-lang/zig/zig-0.13.0-r1.ebuild
b/dev-lang/zig/zig-0.13.0-r1.ebuild
deleted file mode 100644
index 867fa84f3b19..
--- a/dev-lang/zig/zig-0.13.0-r1.ebuild
+++ /dev/null
@@ -1,227 +0,0 @@
-# Copyright 2019-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_MAX_SLOT=18
-inherit edo check-reqs cmake llvm multiprocessing toolchain-funcs
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org https://github.com/ziglang/zig";
-
-BDEPEND="test? ( !!https://github.com/ziglang/zig.git";
- inherit git-r3
-else
- VERIFY_SIG_METHOD=minisig
-
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
- inherit verify-sig
-
- SRC_URI="
- https://ziglang.org/download/${PV}/${P}.tar.xz
- verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
-
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
- "
- KEYWORDS="~amd64 ~arm ~arm64"
-
- BDEPEND+=" verify-sig? ( sec-keys/minisig-keys-zig-software-foundation
)"
-fi
-
-# project itself: MIT
-# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
-# Files that are unnecessary for cross-compilation are removed by upstream
-# and therefore their licenses (if any special) are not included.
-# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
-# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
-# lib/libc/musl: MIT BSD-2
-# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
-# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
-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+"
-SLOT="$(ver_cut 1-2)"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-BUILD_DIR="${S}/build"
-
-# 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 here.
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see
-# options that are passed to LLVM CMake building (excluding "static" ofc).
-DEPEND="
- llvm-core/clang:${LLVM_MAX_SLOT}=
- llvm-core/lld:${LLVM_MAX_SLOT}=
- llvm-core/llvm:${LLVM_MAX_SLOT}=[zstd]
-"
-
-RDEPEND="
- ${DEPEND}
-"
-
-IDEPEND="app-eselect/eselect-zig"
-
-# see https://github.com/ziglang/zig/issues/3382
-# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
-
-# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
-# Zig uses self-hosted compiler only
-CHECKREQS_MEMORY="4G"
-
-PATCHES=(
- "${FILESDIR}/${P}-test-fmt-no-doc.patch"
- "${FILESDIR}/${P}-test-std-kernel-version.patch"
- "${DISTDIR}/${P}-llvm-18.1.8-r6-fix.patch"
-)
-
-llvm_check_deps() {
- has_version "llvm-core/clang:${LLVM_SLOT}"
-}
-
-ctarget_to_zigtarget() {
- # Zig's Target Format: arch-os-abi
- local CTARGET="${CTARGET:-${CHOST}}"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 6586ae03e438478e8c2db09b2355b519043c2760
Author: sin-ack protonmail com>
AuthorDate: Fri Feb 14 19:46:57 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:24:54 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6586ae03
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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 14 +++---
dev-lang/zig/zig-.ebuild | 14 +++---
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index 5d982900f831..97bcdb764771 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -99,6 +99,11 @@ pkg_setup() {
llvm-r1_pkg_setup
fi
+ # Requires running stage3 which is built for cross-target.
+ if use doc && tc-is-cross-compiler; then
+ die "USE=doc is not yet supported when cross-compiling"
+ fi
+
check-reqs_pkg_setup
}
@@ -204,10 +209,13 @@ src_compile() {
cd "${BUILD_DIR}" || die
ZIG_EXE="./zig2" zig_src_compile --prefix "${BUILD_DIR}/stage3/"
- ./stage3/bin/zig env || die "Zig compilation failed"
+ # Requires running stage3 which is built for cross-target.
+ if ! tc-is-cross-compiler; then
+ ./stage3/bin/zig env || die "Zig compilation failed"
- if use doc; then
- ZIG_EXE="./stage3/bin/zig" zig_src_compile langref --prefix
"${S}/docgen/"
+ if use doc; then
+ ZIG_EXE="./stage3/bin/zig" zig_src_compile langref
--prefix "${S}/docgen/"
+ fi
fi
}
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index dda68889ca43..6b440c6bb88b 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -92,6 +92,11 @@ pkg_setup() {
llvm-r1_pkg_setup
fi
+ # Requires running stage3 which is built for cross-target.
+ if use doc && tc-is-cross-compiler; then
+ die "USE=doc is not yet supported when cross-compiling"
+ fi
+
check-reqs_pkg_setup
}
@@ -197,10 +202,13 @@ src_compile() {
cd "${BUILD_DIR}" || die
ZIG_EXE="./zig2" zig_src_compile --prefix "${BUILD_DIR}/stage3/"
- ./stage3/bin/zig env || die "Zig compilation failed"
+ # Requires running stage3 which is built for cross-target.
+ if ! tc-is-cross-compiler; then
+ ./stage3/bin/zig env || die "Zig compilation failed"
- if use doc; then
- ZIG_EXE="./stage3/bin/zig" zig_src_compile langref --prefix
"${S}/docgen/"
+ if use doc; then
+ ZIG_EXE="./stage3/bin/zig" zig_src_compile langref
--prefix "${S}/docgen/"
+ fi
fi
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: aec404d30863f2304c1f593ac2a3161b5c2e9534
Author: Eric Joldasov landless-city net>
AuthorDate: Wed Dec 18 21:41:13 2024 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:24:55 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec404d3
dev-lang/zig: use `llvm-r2.eclass`, add cross-compilation support for `USE=llvm`
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/39765
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r3.ebuild | 127 +-
dev-lang/zig/zig-.ebuild | 127 +-
2 files changed, 196 insertions(+), 58 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r3.ebuild
b/dev-lang/zig/zig-0.13.0-r3.ebuild
index 97bcdb764771..15de59370bbb 100644
--- a/dev-lang/zig/zig-0.13.0-r3.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -9,7 +9,7 @@ LLVM_OPTIONAL=1
ZIG_SLOT="$(ver_cut 1-2)"
ZIG_OPTIONAL=1
-inherit check-reqs cmake flag-o-matic edo llvm-r1 toolchain-funcs zig
+inherit check-reqs cmake flag-o-matic edo llvm-r2 toolchain-funcs zig
DESCRIPTION="A robust, optimal, and maintainable programming language"
HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
@@ -58,18 +58,14 @@ BUILD_DIR="${WORKDIR}/${P}_build"
# They are not required "on their own", so please don't add them here.
# You can check https://github.com/ziglang/zig-bootstrap in future, to see
# options that are passed to LLVM CMake building (excluding "static" ofc).
-DEPEND="
- llvm? (
- $(llvm_gen_dep '
- llvm-core/clang:${LLVM_SLOT}
- llvm-core/lld:${LLVM_SLOT}
- llvm-core/llvm:${LLVM_SLOT}[zstd]
- ')
- )
-"
-BDEPEND+="
- ${DEPEND}
-"
+LLVM_DEPEND="$(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/lld:${LLVM_SLOT}[zstd]
+ llvm-core/llvm:${LLVM_SLOT}[zstd]
+')"
+
+BDEPEND+=" llvm? ( ${LLVM_DEPEND} )"
+DEPEND="llvm? ( ${LLVM_DEPEND} )"
RDEPEND="${DEPEND}"
IDEPEND="app-eselect/eselect-zig"
@@ -90,13 +86,13 @@ CHECKREQS_MEMORY="4G"
pkg_setup() {
# Skip detecting zig executable.
- ZIG_EXE="not-applicable" ZIG_VER="${PV}" zig_pkg_setup
+ declare -r -g ZIG_VER="${PV}"
+ ZIG_EXE="not-applicable" zig_pkg_setup
- export ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ declare -r -g
ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
if use llvm; then
- tc-is-cross-compiler && die "USE=llvm is not yet supported when
cross-compiling"
- llvm-r1_pkg_setup
+ [[ ${MERGE_TYPE} != binary ]] && llvm_cbuild_setup
fi
# Requires running stage3 which is built for cross-target.
@@ -151,7 +147,7 @@ src_configure() {
--prefix-lib-dir lib/
# These are built separately
- -Dno-langref
+ -Dno-langref=true
-Dstd-docs=false
# More commands and options if "debug" is enabled.
@@ -159,6 +155,32 @@ src_configure() {
# More asserts and so on by default if "debug" is enabled.
--release=$(usex debug safe fast)
)
+
+ # Scenarios of compilation:
+
+ # With LLVM, native:
+ # CMake:
+ # * generate "config.h" for LLVM libraries and build "zigcpp"
+ # * build "zig2" using common "config.h" and "zigcpp"
+ # build.zig:
+ # * build "stage3" using common "config.h" and "zigcpp"
+
+ # With LLVM, cross-compiled:
+ # CMake:
+ # * generate cross-target "config.h" for LLVM libraries from ESYSROOT
+ # and build cross-target "zigcpp", and stash them away
+ # * generate native "config.h" for LLVM libraries from BROOT and
+ # build native "zigcpp"
+ # * build native "zig2" using native "config.h" and "zigcpp"
+ # build.zig:
+ # * build cross-target "stage3" using stashed "config.h" and "zigcpp"
+
+ # Without LLVM:
+ # bootstrap.c:
+ # * build native "zig2"
+ # build.zig:
+ # * build (cross-)target "stage3"
+
if use llvm; then
my_zbs_args+=(
-Denable-llvm=true
@@ -170,31 +192,78 @@ src_configure() {
-Denable-llvm=false
)
fi
-
zig_src_configure
if use llvm; then
- # Build for native only, it's for zig2 (build-time executable)
- # LLVM from BDEPEND
local mycmakeargs=(
-DZIG_SHARED_LLVM=ON
-DZIG_USE_LLVM_CONFIG=ON
-
- -DZIG_TARGET_TRIPLE=native
- -DZIG_TARGET_MCPU=native
-DZIG_HOST_TARGET_TRIPLE="${ZIG_HOST_AS_TARGET}"
-
- -DCMAKE_P
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: eaaa8b9b68a6d7c6f8d36bced910856c0860413f
Author: Eric Joldasov landless-city net>
AuthorDate: Tue Dec 17 21:23:02 2024 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:24:54 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaaa8b9b
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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/metadata.xml | 1 +
dev-lang/zig/{zig-.ebuild => zig-0.13.0-r3.ebuild} | 16 +---
dev-lang/zig/zig-.ebuild | 7 +--
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/dev-lang/zig/metadata.xml b/dev-lang/zig/metadata.xml
index 2364982009cc..34e44a88bfa3 100644
--- a/dev-lang/zig/metadata.xml
+++ b/dev-lang/zig/metadata.xml
@@ -10,6 +10,7 @@
Proxy Maintainers
+ Build with debug extensions enabled.
Build with LLVM backend and extensions
enabled.
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-0.13.0-r3.ebuild
similarity index 93%
copy from dev-lang/zig/zig-.ebuild
copy to dev-lang/zig/zig-0.13.0-r3.ebuild
index 9fe4558461eb..5d982900f831 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r3.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-LLVM_COMPAT=( 19 )
+LLVM_COMPAT=( 18 )
LLVM_OPTIONAL=1
ZIG_SLOT="$(ver_cut 1-2)"
@@ -24,6 +24,7 @@ else
SRC_URI="
https://ziglang.org/download/${PV}/${P}.tar.xz
verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
"
KEYWORDS="~amd64 ~arm ~arm64"
@@ -43,7 +44,7 @@ fi
# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
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+"
SLOT="${ZIG_SLOT}"
-IUSE="doc +llvm"
+IUSE="debug doc +llvm"
REQUIRED_USE="
!llvm? ( !doc )
llvm? ( ${LLVM_REQUIRED_USE} )
@@ -74,6 +75,12 @@ IDEPEND="app-eselect/eselect-zig"
DOCS=( "README.md" "doc/build.zig.zon.md" )
+PATCHES=(
+ "${FILESDIR}/zig-0.13.0-test-std-kernel-version.patch"
+ "${FILESDIR}/zig-0.13.0-skip-test-stack_iterator.patch"
+ "${DISTDIR}/${P}-llvm-18.1.8-r6-fix.patch"
+)
+
# zig.eclass does not set this for us since we use ZIG_OPTIONAL=1
QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
@@ -142,7 +149,10 @@ src_configure() {
-Dno-langref
-Dstd-docs=false
- --release=fast
+ # More commands and options if "debug" is enabled.
+ -Ddebug-extensions=$(usex debug true false)
+ # More asserts and so on by default if "debug" is enabled.
+ --release=$(usex debug safe fast)
)
if use llvm; then
my_zbs_args+=(
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 9fe4558461eb..dda68889ca43 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -43,7 +43,7 @@ fi
# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
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+"
SLOT="${ZIG_SLOT}"
-IUSE="doc +llvm"
+IUSE="debug doc +llvm"
REQUIRED_USE="
!llvm? ( !doc )
llvm? ( ${LLVM_REQUIRED_USE} )
@@ -142,7 +142,10 @@ src_configure() {
-Dno-langref
-Dstd-docs=false
- --release=fast
+ # More commands and options if "debug" is enabled.
+ -Ddebug-extensions=$(usex debug true false)
+ # More asserts and so on by default if "debug" is enabled.
+ --release=$(usex debug safe fast)
)
if use llvm; then
my_zbs_args+=(
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 7cfe7beb5c3f0f0fee6137225b927acb457c2b5d
Author: sin-ack protonmail com>
AuthorDate: Fri Feb 14 19:23:57 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Feb 16 16:24:53 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cfe7beb
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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.13.0-r2.ebuild | 22 +-
dev-lang/zig/zig-.ebuild | 22 +-
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild
b/dev-lang/zig/zig-0.13.0-r2.ebuild
index b970092ce4e4..2b05516cbff1 100644
--- a/dev-lang/zig/zig-0.13.0-r2.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2024 Gentoo Authors
+# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -210,7 +210,27 @@ src_compile() {
src_test() {
cd "${BUILD_DIR}" || die
+
+ # XXX: When we pass a libc installation to Zig, it will fail to find
+ # the bundled libraries for targets like aarch64-macos and
+ # *-linux-musl. Zig doesn't run binaries for these targets when
+ # -Dskip-non-native is passed, but they are still compiled, so
+ # the test will fail. There's no way to disable --libc once passed,
+ # so we need to strip it from ZBS_ARGS.
+ # See: https://github.com/ziglang/zig/issues/22383
+ local args_backup=("${ZBS_ARGS[@]}")
+
+ for ((i = 0; i < ${#ZBS_ARGS[@]}; i++)); do
+ if [[ "${ZBS_ARGS[i]}" == "--libc" ]]; then
+ unset ZBS_ARGS[i]
+ unset ZBS_ARGS[i+1]
+ break
+ fi
+ done
+
ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
+
+ ZBS_ARGS=("${args_backup[@]}")
}
src_install() {
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 4f0358a96629..cb7c8e8bffc1 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2024 Gentoo Authors
+# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -203,7 +203,27 @@ src_compile() {
src_test() {
cd "${BUILD_DIR}" || die
+
+ # XXX: When we pass a libc installation to Zig, it will fail to find
+ # the bundled libraries for targets like aarch64-macos and
+ # *-linux-musl. Zig doesn't run binaries for these targets when
+ # -Dskip-non-native is passed, but they are still compiled, so
+ # the test will fail. There's no way to disable --libc once passed,
+ # so we need to strip it from ZBS_ARGS.
+ # See: https://github.com/ziglang/zig/issues/22383
+ local args_backup=("${ZBS_ARGS[@]}")
+
+ for ((i = 0; i < ${#ZBS_ARGS[@]}; i++)); do
+ if [[ "${ZBS_ARGS[i]}" == "--libc" ]]; then
+ unset ZBS_ARGS[i]
+ unset ZBS_ARGS[i+1]
+ break
+ fi
+ done
+
ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
+
+ ZBS_ARGS=("${args_backup[@]}")
}
src_install() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: b68ca211734f85e6a98efd2e5c1cb96e27a7998d
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Jun 6 13:59:53 2024 +
Commit: Sam James gentoo org>
CommitDate: Sun Dec 15 09:47:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68ca211
dev-lang/zig: sync 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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 235 ++-
1 file changed, 121 insertions(+), 114 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 858ec3be9405..4f0358a96629 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -6,10 +6,13 @@ EAPI=8
LLVM_COMPAT=( 19 )
LLVM_OPTIONAL=1
-inherit check-reqs cmake edo llvm-r1 toolchain-funcs
+ZIG_SLOT="$(ver_cut 1-2)"
+ZIG_OPTIONAL=1
+
+inherit check-reqs cmake flag-o-matic edo llvm-r1 toolchain-funcs zig
DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
+HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
if [[ ${PV} == ]]; then
EGIT_REPO_URI="https://github.com/ziglang/zig.git";
inherit git-r3
@@ -39,14 +42,15 @@ fi
# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
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+"
-SLOT="$(ver_cut 1-2)"
+SLOT="${ZIG_SLOT}"
IUSE="doc +llvm"
REQUIRED_USE="
!llvm? ( !doc )
llvm? ( ${LLVM_REQUIRED_USE} )
"
-BUILD_DIR="${S}/build"
+# Used by both "cmake" and "zig" eclasses.
+BUILD_DIR="${WORKDIR}/${P}_build"
# Zig requires zstd and zlib compression support in LLVM, if using LLVM
backend.
# (non-LLVM backends don't require these)
@@ -62,173 +66,176 @@ DEPEND="
')
)
"
-
-RDEPEND="
+BDEPEND+="
${DEPEND}
"
-
+RDEPEND="${DEPEND}"
IDEPEND="app-eselect/eselect-zig"
-# see https://github.com/ziglang/zig/issues/3382
-# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
+DOCS=( "README.md" "doc/build.zig.zon.md" )
-RESTRICT="!llvm? ( test )"
+# zig.eclass does not set this for us since we use ZIG_OPTIONAL=1
+QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
# Zig uses self-hosted compiler only
CHECKREQS_MEMORY="4G"
-ctarget_to_zigtarget() {
- # Zig's Target Format: arch-os-abi
- local CTARGET="${CTARGET:-${CHOST}}"
-
- local ZIG_ARCH
- case "${CTARGET%%-*}" in
- i?86) ZIG_ARCH=x86;;
- sparcv9)ZIG_ARCH=sparc64;;
- *) ZIG_ARCH="${CTARGET%%-*}";; # Same as in CHOST
- esac
-
- local ZIG_OS
- case "${CTARGET}" in
- *linux*)ZIG_OS=linux;;
- *apple*)ZIG_OS=macos;;
- esac
-
- local ZIG_ABI
- case "${CTARGET##*-}" in
- gnu)ZIG_ABI=gnu;;
- solaris*) ZIG_OS=solaris ZIG_ABI=none;;
- darwin*)ZIG_ABI=none;;
- *) ZIG_ABI="${CTARGET##*-}";; # Same as in CHOST
- esac
-
- echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
-}
+pkg_setup() {
+ # Skip detecting zig executable.
+ ZIG_EXE="not-applicable" ZIG_VER="${PV}" zig_pkg_setup
-get_zig_mcpu() {
- local ZIG_DEFAULT_MCPU=native
- tc-is-cross-compiler && ZIG_DEFAULT_MCPU=baseline
- echo "${ZIG_MCPU:-${ZIG_DEFAULT_MCPU}}"
-}
+ export ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+
+ if us
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 082d8d82085f74a30fdeb4f1ef5a02fd13189cd1
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Jun 7 13:39:46 2024 +
Commit: Sam James gentoo org>
CommitDate: Sun Dec 15 09:47:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082d8d82
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 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 landless-city.net>
Signed-off-by: Sam James gentoo.org>
.../zig-0.13.0-skip-test-stack_iterator.patch | 32 +++
dev-lang/zig/zig-0.13.0-r2.ebuild | 248 +
2 files changed, 280 insertions(+)
diff --git a/dev-lang/zig/files/zig-0.13.0-skip-test-stack_iterator.patch
b/dev-lang/zig/files/zig-0.13.0-skip-test-stack_iterator.patch
new file mode 100644
index ..e088af2102ed
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.13.0-skip-test-stack_iterator.patch
@@ -0,0 +1,32 @@
+From: Eric Joldasov
+
+Skip standalone test "stack_iterator" that fail on Gentoo Linux x86_64.
+Fails in ReleaseSafe, ReleaseFast and ReleaseSmall, but not in Debug.
+Reported to upstream here https://github.com/ziglang/zig/issues/19944 .
+
+Signed-off-by: Eric Joldasov
+
+diff --git a/test/standalone/stack_iterator/shared_lib_unwind.zig
b/test/standalone/stack_iterator/shared_lib_unwind.zig
+index 57513a49c6..75fddb04c9 100644
+--- a/test/standalone/stack_iterator/shared_lib_unwind.zig
b/test/standalone/stack_iterator/shared_lib_unwind.zig
+@@ -35,6 +35,7 @@ extern fn frame0(
+ ) void;
+
+ pub fn main() !void {
++if (true) return;
+ // Disabled until the DWARF unwinder bugs on .aarch64 are solved
+ if (builtin.omit_frame_pointer and comptime builtin.target.isDarwin() and
builtin.cpu.arch == .aarch64) return;
+
+diff --git a/test/standalone/stack_iterator/unwind.zig
b/test/standalone/stack_iterator/unwind.zig
+index 69c463a0c1..40963af63d 100644
+--- a/test/standalone/stack_iterator/unwind.zig
b/test/standalone/stack_iterator/unwind.zig
+@@ -87,6 +87,7 @@ noinline fn frame0(expected: *[4]usize, unwound: *[4]usize)
void {
+ }
+
+ pub fn main() !void {
++if (true) return;
+ // Disabled until the DWARF unwinder bugs on .aarch64 are solved
+ if (builtin.omit_frame_pointer and comptime builtin.target.isDarwin() and
builtin.cpu.arch == .aarch64) return;
+
diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild
b/dev-lang/zig/zig-0.13.0-r2.ebuild
new file mode 100644
index ..b970092ce4e4
--- /dev/null
+++ b/dev-lang/zig/zig-0.13.0-r2.ebuild
@@ -0,0 +1,248 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 18 )
+LLVM_OPTIONAL=1
+
+ZIG_SLOT="$(ver_cut 1-2)"
+ZIG_OPTIONAL=1
+
+inherit check-reqs cmake flag-o-matic edo llvm-r1 toolchain-funcs zig
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/ https://github.com/ziglang/zig/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
+ "
+ KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: f4a5c79c896bde3dbf6fe3618fd86f68c003577a
Author: Eric Joldasov landless-city net>
AuthorDate: Sun Nov 3 00:08:53 2024 +
Commit: Sam James gentoo org>
CommitDate: Wed Nov 6 13:35:14 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4a5c79c
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 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 () 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 landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/39187
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest| 1 +
dev-lang/zig/{zig-0.13.0.ebuild => zig-0.13.0-r1.ebuild} | 14 ++
2 files changed, 15 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 6ab62b044f50..3126303a057c 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,2 +1,3 @@
+DIST zig-0.13.0-llvm-18.1.8-r6-fix.patch 45968 BLAKE2B
a07c47b22b079d324b200fe84af5c89ffe51a1c81f50ca894a80f9f9db51a9d4119ae51c2e4e84a9b4f0111b2b809978b88adca42480ee800693afbd78f47387
SHA512
148b3f4807763dfb6a4d4e201890fa8204deaf73e620a8b592dfa03b997bc16ed01ea26e4d85f242473e91ccc45b1a06af22f786851f8e26cec1ac821b14efdc
DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20fe118e8362373336b6460e514028978584087f6e7f25ed8b8e6991610edce625676a1dd80c1975c5f9ef48775
SHA512
6f5f31f4ba71a11d8b16c7a5a613e124095e503fa6b02d2b77e5b177674c739287e81d98d96dc261fed24bc836caf196f71c3fcc7a6518387df86ba9e03df4dd
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
diff --git a/dev-lang/zig/zig-0.13.0.ebuild b/dev-lang/zig/zig-0.13.0-r1.ebuild
similarity index 91%
rename from dev-lang/zig/zig-0.13.0.ebuild
rename to dev-lang/zig/zig-0.13.0-r1.ebuild
index e55bb8ee700e..ef0d90d4fa76 100644
--- a/dev-lang/zig/zig-0.13.0.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r1.ebuild
@@ -21,6 +21,7 @@ else
SRC_URI="
https://ziglang.org/download/${PV}/${P}.tar.xz
verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+
https://codeberg.org/BratishkaErik/distfiles/releases/download/dev-lang%2Fzig-${PV}/${P}-llvm-18.1.8-r6-fix.patch
"
KEYWORDS="~amd64 ~arm ~arm64"
@@ -73,6 +74,7 @@ CHECKREQS_MEMORY="4G"
PATCHES=(
"${FILESDIR}/${P}-test-fmt-no-doc.patch"
"${FILESDIR}/${P}-test-std-kernel-version.patch"
+ "${DISTDIR}/${P}-llvm-18.1.8-r6-fix.patch"
)
llvm_check_deps() {
@@ -124,6 +126,13 @@ pkg_setup() {
check-reqs_pkg_setup
}
+src_unpack() {
+ if use verify-sig; then
+ verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.minisig}
+ fi
+ default
+}
+
src_configure() {
# Useful for debugging and a little bit more deterministic.
export ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache"
@@ -142,6 +151,11 @@ src_configure() {
}
src_compile() {
+ # Remove "limit memory usage" flags, it's already verified by
+ # CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
+ # according to CI OOM failures, which are higher than during Gentoo
build.
+ sed -i -e '/\.max_rss = .*,/d' build.zig || die
+
cmake_src_compile
"${BUILD_DIR}/stage3/bin/zig" env || die "Zig compilation failed"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 6c3c4f0fcc8dbdc84a461279797610dd402ad561 Author: Eric Joldasov landless-city net> AuthorDate: Fri Sep 20 12:49:45 2024 + Commit: Michał Górny gentoo org> CommitDate: Sat Sep 21 07:40:43 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c3c4f0f dev-lang/zig: update to LLVM 19 for Signed-off-by: Eric Joldasov landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/38704 Signed-off-by: Michał Górny gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index f7997e5184e6..335ac0eab28c 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_COMPAT=( 18 ) +LLVM_COMPAT=( 19 ) LLVM_OPTIONAL=1 inherit check-reqs cmake edo llvm-r1 toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig/
commit: 1adc0bf0ee5b5f6328cae09f925ad75d3c01af01
Author: Eric Joldasov landless-city net>
AuthorDate: Wed Aug 7 10:30:40 2024 +
Commit: Eli Schwartz gentoo org>
CommitDate: Fri Aug 23 02:03:14 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1adc0bf0
dev-lang/zig: drop 0.11.0-r1, 0.12.0
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/38005
Signed-off-by: Eli Schwartz gentoo.org>
dev-lang/zig/Manifest | 4 -
.../zig/files/zig-0.11.0-first-try-getconf.patch | 113 -
dev-lang/zig/zig-0.11.0-r1.ebuild | 186 -
dev-lang/zig/zig-0.12.0.ebuild | 182
4 files changed, 485 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 538062fe0caf..6ab62b044f50 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,6 +1,2 @@
-DIST zig-0.11.0.tar.xz 15275316 BLAKE2B
603e4995a36d214ba71cf05b719a04732c8927995c8207ab8fdd574dca3410cdc5ccc8f6aa9964807afc04a5cbce1a3910a6cde4cf12e585cdf7684833217eb2
SHA512
c19a8ae6d440a16dd5e77941fc77c036d1f284f1784376625e63b65f30b4acad62f9f4217bc818c401f88c2c33f8722f26fc467c3e23c29a89178c4b1882d1c4
-DIST zig-0.11.0.tar.xz.minisig 312 BLAKE2B
8df407f07dde36280c945300fd8b803e6e59c026eb7a3eb56e6d2f4fe1047672e17946a3bbe23ccfe9be07b65331e17690e95fd348353be22f7b6d9b73b3f9ca
SHA512
565dd1eacb7dd697e6b1ff54517adc1e4775d2523afaeb4f9a3dd404df871b187862211ecbbcf90b42e3a03853677fc1603e7fc8fc5ba7126a054679faa601ca
-DIST zig-0.12.0.tar.xz 17099152 BLAKE2B
2a1248302868156c4ddcb154d075af29886a95a4c29de02ff0981e76a85f5d4109dd5c38f95c2c16f5c942bab7d120ae068c1e122ab8ad421c0213b7e996956c
SHA512
0c3d9396fea4905245c7e32ce6bd9b4ff140f061cd8a957929e4c84cf105f5bbcbf2e7c030013ac649edb569e909f65d928b3e8a86f35c9076fb62e996feea14
-DIST zig-0.12.0.tar.xz.minisig 312 BLAKE2B
4b3d1ae45d3b6d81054a39255c0892d9376d05da9ff1076bcf740310c9650b0154ddc39f19caee9dae293719d58a63764e43b694b83fe7031c87ab434aa377f5
SHA512
6e14c1e1926beeb249cb88fb2247ff401f679b64785c3ec8a924e33c894174deb77b48286469a863761bce0ca57524f904995eacf544919dda387c140e6e829e
DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20fe118e8362373336b6460e514028978584087f6e7f25ed8b8e6991610edce625676a1dd80c1975c5f9ef48775
SHA512
6f5f31f4ba71a11d8b16c7a5a613e124095e503fa6b02d2b77e5b177674c739287e81d98d96dc261fed24bc836caf196f71c3fcc7a6518387df86ba9e03df4dd
DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
diff --git a/dev-lang/zig/files/zig-0.11.0-first-try-getconf.patch
b/dev-lang/zig/files/zig-0.11.0-first-try-getconf.patch
deleted file mode 100644
index 5a63e9e74ad9..
--- a/dev-lang/zig/files/zig-0.11.0-first-try-getconf.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-From: Eric Joldasov
-
-Based on https://github.com/ziglang/zig/pull/12567 and
https://github.com/ziglang/zig/pull/17671
-with small fixes, all ported to 0.11.0.
-
-First try `getconf GNU_LIBC_VERSION` to detect glibc version,
-If there are any errors, skip to the upstream logic.
-
-Also fix glibc version parsing: if version string does not contain third
(patch) component, "std.SemanticVersion.parse" returns parsing error.
-For example, this currently happens with "GLIBC_2.37" or "glibc 2.37" inputs.
-To fix this, we use copy-pasted "std.zig.CrossTarget.parse" function here,
that sets omitted patch component to 0.
-
-After applying this patch, both `zig build-exe --show-builtin` and `zig env`
show correct version on my default/linux/amd64/17.1/desktop/plasma :
-glibc 2.37.
-
-Bug: https://bugs.gentoo.org/914731
-Bug: https://bugs.gentoo.org/914101
-
-diff --git a/lib/std/zig/system/NativeTargetInfo.zig
b/lib/std/zig/system/NativeTargetInfo.zig
-index 99a1a8f2e..0250db968 100644
a/lib/std/zig/system/NativeTargetInfo.zig
-+++ b/lib/std/zig/system/NativeTargetInfo.zig
-@@ -19,6 +19,32 @@ dynamic_linker: DynamicLinker = DynamicLinker{},
-
- pub const DynamicLinker = Target.DynamicLinker;
-
-+// Copy-pasted from `std.zig.CrossTarget.parse` to avoid introducing
unexpected new public function as part of standard library.
-+/// Parses a version with an omitted patch component, such as "1.0",
-+/// which SemanticVersion.parse is not capable of.
-+fn parseWithOptionalPatchField(ver: []const u8) error{ InvalidVersion,
Overflow }!std.SemanticVersion {
-+const parseVersionComponent = struct {
-+fn parseVersionComponent(component: []const u8) !usize {
-+return std.fmt.parseUnsigned(usize, component, 10) catch |err| {
-+switch (err) {
-+error.InvalidCharacter => return error.InvalidVersion,
-+
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/, dev-lang/zig-bin/files/
commit: 2fab6f1a7ff8c4d5170b1fdbc9d9db20ca507061 Author: Eric Joldasov landless-city net> AuthorDate: Wed Aug 7 10:31:31 2024 + Commit: Eli Schwartz gentoo org> CommitDate: Fri Aug 23 02:03:13 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fab6f1a dev-lang/zig-bin: drop 0.11.0-r1, 0.12.0 Signed-off-by: Eric Joldasov landless-city.net> Signed-off-by: Eli Schwartz gentoo.org> dev-lang/zig-bin/Manifest | 26 - .../files/zig-0.11.0-first-try-getconf.patch | 113 - dev-lang/zig-bin/zig-bin-0.11.0-r1.ebuild | 85 dev-lang/zig-bin/zig-bin-0.12.0.ebuild | 90 4 files changed, 314 deletions(-) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index beafee5ec4cb..20d7959e1acc 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,48 +1,22 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f -DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580 SHA512 07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63 -DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92 SHA512 0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c -DIST zig-linux-aarch64-0.12.0.tar.xz 41849060 BLAKE2B a12a6c946a365b391b323f51c7b25f855dddaed7a768067da0abfb64ca2440a3ba36b6b5987d5129485e506f45e7f90e98ef29f9242aa71b1dc286426fbc8403 SHA512 6fba718ff4cdf58f9a9db9183b9d436eedea3317c7e91dfa495b47f0dc95d2042784d4692cb65907cb9c3c74484b4e15adeeefd0c1ac462064848bdad4d6e4c4 -DIST zig-linux-aarch64-0.12.0.tar.xz.minisig 326 BLAKE2B 9cf7cdd6a1029e61c695610a4b77aafd915c23108c7a2315b51a2115b1b9f6e944d72fea84dbcc87f0e2e7eab2180ed095434b834a1a87f1c0424a8800db27c8 SHA512 7d0468fa56f6fcc8960a1dba43be6695fb7231e1de8b07f8d4c8b3d4ec8917e3c0cb19b7539db8e316b993bf5396197ab2d16e357fa5d541c7f88da2d7429038 DIST zig-linux-aarch64-0.13.0.tar.xz 43090688 BLAKE2B 658376ddd6f74ced4e8d875573e53e236ce65d11bf098db7fc1c6a119b88dc97c45212101e0b3a4cfb7d0f4481d696fbb65b765344f44451d20c5bfb36cfbc14 SHA512 0e36c26da0088aec54939af0cbe5219132d56cb8bb1f298ca50e1a628d3fbdfd401441695013b6d3fd282905bb273ccc160b4f0dbced236aa1408278f532d99a DIST zig-linux-aarch64-0.13.0.tar.xz.minisig 326 BLAKE2B 2f4008c036a309bf3efdfa719a7e4cca0c13c0c5a93e6a8c2e9c75cff7ea9a000cc52f695487c1b1199eebece4853b11ca4d3a22935f12b6d07b9f465da01c2e SHA512 a5635610a17f61e8608379bee0e10c8a43a565ddf22394da214e28b6a84fadd6809bdcdb7996ebc2bc2bfa6d1fa4a5e47191f6aa8536450b01cae03871145679 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc -DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50 SHA512 f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008 -DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc SHA512 8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd -DIST zig-linux-armv7a-0.12.0.tar.xz 42638808 BLAKE2B 58e905a5519729ae8e549be354558d2df72c4d07fafb00c2e78a2b92cf562fe4cabe826992cc0b3165fded1d7e7bffac23af13
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 6858bf9594c429f99f321dab72ddf96a08270981 Author: Eric Joldasov getgoogleoff me> AuthorDate: Fri Jun 7 13:53:16 2024 + Commit: Sam James gentoo org> CommitDate: Wed Aug 7 03:15:20 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6858bf95 dev-lang/zig-bin: add 0.13.0 Signed-off-by: Eric Joldasov getgoogleoff.me> Signed-off-by: Aliaksei Urbanski gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37257 Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 12 + dev-lang/zig-bin/zig-bin-0.13.0.ebuild | 89 ++ 2 files changed, 101 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 8912f192b2e9..beafee5ec4cb 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -4,12 +4,16 @@ DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B fd4e1f242475bfdc94f418817d DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92 SHA512 0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c DIST zig-linux-aarch64-0.12.0.tar.xz 41849060 BLAKE2B a12a6c946a365b391b323f51c7b25f855dddaed7a768067da0abfb64ca2440a3ba36b6b5987d5129485e506f45e7f90e98ef29f9242aa71b1dc286426fbc8403 SHA512 6fba718ff4cdf58f9a9db9183b9d436eedea3317c7e91dfa495b47f0dc95d2042784d4692cb65907cb9c3c74484b4e15adeeefd0c1ac462064848bdad4d6e4c4 DIST zig-linux-aarch64-0.12.0.tar.xz.minisig 326 BLAKE2B 9cf7cdd6a1029e61c695610a4b77aafd915c23108c7a2315b51a2115b1b9f6e944d72fea84dbcc87f0e2e7eab2180ed095434b834a1a87f1c0424a8800db27c8 SHA512 7d0468fa56f6fcc8960a1dba43be6695fb7231e1de8b07f8d4c8b3d4ec8917e3c0cb19b7539db8e316b993bf5396197ab2d16e357fa5d541c7f88da2d7429038 +DIST zig-linux-aarch64-0.13.0.tar.xz 43090688 BLAKE2B 658376ddd6f74ced4e8d875573e53e236ce65d11bf098db7fc1c6a119b88dc97c45212101e0b3a4cfb7d0f4481d696fbb65b765344f44451d20c5bfb36cfbc14 SHA512 0e36c26da0088aec54939af0cbe5219132d56cb8bb1f298ca50e1a628d3fbdfd401441695013b6d3fd282905bb273ccc160b4f0dbced236aa1408278f532d99a +DIST zig-linux-aarch64-0.13.0.tar.xz.minisig 326 BLAKE2B 2f4008c036a309bf3efdfa719a7e4cca0c13c0c5a93e6a8c2e9c75cff7ea9a000cc52f695487c1b1199eebece4853b11ca4d3a22935f12b6d07b9f465da01c2e SHA512 a5635610a17f61e8608379bee0e10c8a43a565ddf22394da214e28b6a84fadd6809bdcdb7996ebc2bc2bfa6d1fa4a5e47191f6aa8536450b01cae03871145679 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50 SHA512 f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008 DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc SHA512 8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd DIST zig-linux-armv7a-0.12.0.tar.xz 42638808 BLAKE2B 58e905a5519729ae8e549be354558d2df72c4d07fafb00c2e78a2b92cf562fe4cabe826992cc0b3165fded1d7e7bffac23af13256aa3cba9497f6561b819e531 SHA512 9cf8afa94afd47a54131e80fad8dc2852cfd2243e33d06eb2ba607cd7de186f7f1245a84efce8556e180fbee6a3c05448b3ab568d93233a16f398b258526867f DIST zig-linux-armv7a-0.12.0.tar.xz.minisig 325 BLAKE2B 47de3ac2f3abaabae21060a85ffbccb9db1b8df4c67ca02ea9208913c2ec765d6e7b713a8863358cb0a00519397445f269db6c70622fe658bcb7ef34922ba5b0 SHA512 c51884ea6d0849cf97d9e4a206af64a33a66bab5feac610f61ed5239c2122c40a33589fbed5e07d7baefa5e8181dc914a946fb4cfba91480f7581cb56ba358eb +DIST zig-linux-armv7a-0.13.0.tar.xz 43998916 BLAKE2B 5ab0f39209d900690f28a73bade854aecbd77d6d7bccfdca97d49e5fc40d198023f2f9b1e96eaa9afa6a368c6f35575aeac52422d486a691dd4779ca118836ca SHA512 d93005a14dae40e6de66ad0e3150ac15284c01839ae0a19531a4e2f54a628b9fe3bcb08b6d526b96ba9d79d232c5c0c2b813877359c76b927435085671c57ab6 +DIST zig-linux-armv7a-0.13.0.tar.xz.minisig 325 BLAKE2B 3b1fa76b70cf364f218af9299812ec175d03d0b4bf3d6748737d26fc9ef55b97f24b1ce34c62e16fb44e72b16659d2f41069d59e662
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 2cd85ecfc76344ae70181a0e2aabd5534098202e
Author: Aliaksei Urbanski gmail com>
AuthorDate: Fri Jun 28 00:33:32 2024 +
Commit: Sam James gentoo org>
CommitDate: Wed Aug 7 03:15:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cd85ecf
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 gmail.com>
Signed-off-by: Aliaksei Urbanski gmail.com>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 +
.../zig/files/zig-0.13.0-test-fmt-no-doc.patch | 17 ++
.../files/zig-0.13.0-test-std-kernel-version.patch | 28 +++
dev-lang/zig/zig-0.13.0.ebuild | 213 +
4 files changed, 260 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 59c8c3e88aaa..538062fe0caf 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -2,3 +2,5 @@ DIST zig-0.11.0.tar.xz 15275316 BLAKE2B
603e4995a36d214ba71cf05b719a04732c892799
DIST zig-0.11.0.tar.xz.minisig 312 BLAKE2B
8df407f07dde36280c945300fd8b803e6e59c026eb7a3eb56e6d2f4fe1047672e17946a3bbe23ccfe9be07b65331e17690e95fd348353be22f7b6d9b73b3f9ca
SHA512
565dd1eacb7dd697e6b1ff54517adc1e4775d2523afaeb4f9a3dd404df871b187862211ecbbcf90b42e3a03853677fc1603e7fc8fc5ba7126a054679faa601ca
DIST zig-0.12.0.tar.xz 17099152 BLAKE2B
2a1248302868156c4ddcb154d075af29886a95a4c29de02ff0981e76a85f5d4109dd5c38f95c2c16f5c942bab7d120ae068c1e122ab8ad421c0213b7e996956c
SHA512
0c3d9396fea4905245c7e32ce6bd9b4ff140f061cd8a957929e4c84cf105f5bbcbf2e7c030013ac649edb569e909f65d928b3e8a86f35c9076fb62e996feea14
DIST zig-0.12.0.tar.xz.minisig 312 BLAKE2B
4b3d1ae45d3b6d81054a39255c0892d9376d05da9ff1076bcf740310c9650b0154ddc39f19caee9dae293719d58a63764e43b694b83fe7031c87ab434aa377f5
SHA512
6e14c1e1926beeb249cb88fb2247ff401f679b64785c3ec8a924e33c894174deb77b48286469a863761bce0ca57524f904995eacf544919dda387c140e6e829e
+DIST zig-0.13.0.tar.xz 17220728 BLAKE2B
f4bbacc2012950c556bebc28fc322fc6424bf20fe118e8362373336b6460e514028978584087f6e7f25ed8b8e6991610edce625676a1dd80c1975c5f9ef48775
SHA512
6f5f31f4ba71a11d8b16c7a5a613e124095e503fa6b02d2b77e5b177674c739287e81d98d96dc261fed24bc836caf196f71c3fcc7a6518387df86ba9e03df4dd
+DIST zig-0.13.0.tar.xz.minisig 312 BLAKE2B
2d061257c9c75f9c36b01cfb08dcd2040538a125b9ea2cae8617ae5496e685b165933ce8981494419522b7e19b51fc69a651ecaa4a8930753acf2e4ae3d6e00f
SHA512
21c6139c06cba6c5e23a3305fed0c0f1b9b32d9140bd686c26365ce0279d5f53cd081894eaba29f0c1ed51b2e831edf7bd4ae6a7eaee5018a252e312e9b65507
diff --git a/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
b/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
new file mode 100644
index ..7bbda741dc6f
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.13.0-test-fmt-no-doc.patch
@@ -0,0 +1,17 @@
+# Docs contain examples of badly formatted code,
+# so they should be excluded for test-fmt to pass.
+# In the upstream, the "doc" directory
+# was removed from fmt_include_paths in
+# https://github.com/ziglang/zig/commit/cb1d1bdf
+
+--- a/build.zig
b/build.zig
+@@ -428,7 +428,7 @@
+ }
+ const optimization_modes = chosen_opt_modes_buf[0..chosen_mode_index];
+
+-const fmt_include_paths = &.{ "doc", "lib", "src", "test", "tools",
"build.zig" };
++const fmt_include_paths = &.{ "lib", "src", "test", "tools", "build.zig"
};
+ const fmt_exclude_paths = &.{"test/cases"};
+ const do_fmt = b.addFmt(.{
+ .paths = fmt_include_paths,
diff --git a/dev-lang/zig/files/zig-0.13.0-test-std-kernel-version.patch
b/dev-lang/zig/files/zig-0.13.0-test-std-kernel-version.patch
new file mode 100644
index ..2d2dc22a375a
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.13.0-test-std-kernel-version.patch
@@ -0,0 +1,28 @@
+# https://github.com/ziglang/zig/pull/20001
+# https://github.com/Jiboo/zig/commit/856fe4af
+
+Author: Jean-Baptiste "Jiboo" Lepesme
+Date: Sun, 19 May 2024 15:02:42 +0200
+
+IoUring: fix an issue in tests where InvalidVersion might get thrown by
+skipKernelLessThan, due to some kernel versions not being SemVer compliant.
+
+diff --git a/lib/std/os/linux/IoUring.zig b/lib/std/os/linux/IoUring.zig
+index 3bf3c077fc3b..b2a4da486907 100644
+--- a/lib/std/os/linux/IoUring.zig
b/lib/std/os/linux/IoUring.zig
+@@ -3883,7 +3883,13 @@ inline fn skipKernelLessThan(required:
std.SemanticVersion) !void {
+ }
+
+ const release = mem.sliceTo(&uts.release, 0);
+-var current = try std.SemanticVersion.parse(release);
++// Strips potential extra, as kernel version might not be semver
compliant, example "6.8.9-300.fc40.x86_64"
++const extra_index = std.mem.indexOfAny(u8, release, "-+");
++const stripped = release[0..(extra_index orelse release.len)];
++// Make sure the input don't rely on the extra we just str
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 5b1ed6293014dce1016a26d3532ba467113762da
Author: Eric Joldasov landless-city net>
AuthorDate: Wed Jul 24 09:57:21 2024 +
Commit: Joonas Niilola gentoo org>
CommitDate: Mon Aug 5 07:38:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b1ed629
dev-lang/zig: fix building with `doc` USE-flag enabled on
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/37703
Signed-off-by: Joonas Niilola gentoo.org>
dev-lang/zig/zig-.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index d278d521c061..f7997e5184e6 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -178,8 +178,8 @@ src_compile() {
if use doc; then
cd "${BUILD_DIR}" || die
- edo ./stage3/bin/zig build std-docs --prefix "${S}/docgen/"
- edo ./stage3/bin/zig build langref --prefix "${S}/docgen/"
+ edo ./stage3/bin/zig build std-docs --zig-lib-dir
"${BUILD_DIR}/stage3/lib/zig/" --prefix "${S}/docgen/"
+ edo ./stage3/bin/zig build langref --zig-lib-dir
"${BUILD_DIR}/stage3/lib/zig/" --prefix "${S}/docgen/"
fi
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 60d381a8f2ac3b00179de898a1bd46c4cc75bbd9 Author: Eric Joldasov landless-city net> AuthorDate: Fri May 24 15:15:30 2024 + Commit: Florian Schmaus gentoo org> CommitDate: Fri May 24 19:27:54 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60d381a8 dev-lang/zig-bin: add 0.12.0 * 32-bit PowerPC target archive removed by upstream. * Remove `doc` USE-flag. Archive no longer includes ~43 MiB folder with standard library documentation, there is nothing to omit and save space. `zig std` now compiles documentation on-the-fly. * Add (hopefully helpful) notes for users on how to get this new documentation. Signed-off-by: Eric Joldasov landless-city.net> Signed-off-by: Florian Schmaus gentoo.org> dev-lang/zig-bin/Manifest | 12 + dev-lang/zig-bin/zig-bin-0.12.0.ebuild | 90 ++ 2 files changed, 102 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index f350b3403242..8912f192b2e9 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -2,23 +2,35 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580 SHA512 07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63 DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92 SHA512 0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c +DIST zig-linux-aarch64-0.12.0.tar.xz 41849060 BLAKE2B a12a6c946a365b391b323f51c7b25f855dddaed7a768067da0abfb64ca2440a3ba36b6b5987d5129485e506f45e7f90e98ef29f9242aa71b1dc286426fbc8403 SHA512 6fba718ff4cdf58f9a9db9183b9d436eedea3317c7e91dfa495b47f0dc95d2042784d4692cb65907cb9c3c74484b4e15adeeefd0c1ac462064848bdad4d6e4c4 +DIST zig-linux-aarch64-0.12.0.tar.xz.minisig 326 BLAKE2B 9cf7cdd6a1029e61c695610a4b77aafd915c23108c7a2315b51a2115b1b9f6e944d72fea84dbcc87f0e2e7eab2180ed095434b834a1a87f1c0424a8800db27c8 SHA512 7d0468fa56f6fcc8960a1dba43be6695fb7231e1de8b07f8d4c8b3d4ec8917e3c0cb19b7539db8e316b993bf5396197ab2d16e357fa5d541c7f88da2d7429038 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50 SHA512 f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008 DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc SHA512 8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd +DIST zig-linux-armv7a-0.12.0.tar.xz 42638808 BLAKE2B 58e905a5519729ae8e549be354558d2df72c4d07fafb00c2e78a2b92cf562fe4cabe826992cc0b3165fded1d7e7bffac23af13256aa3cba9497f6561b819e531 SHA512 9cf8afa94afd47a54131e80fad8dc2852cfd2243e33d06eb2ba607cd7de186f7f1245a84efce8556e180fbee6a3c05448b3ab568d93233a16f398b258526867f +DIST zig-linux-armv7a-0.12.0.tar.xz.minisig 325 BLAKE2B 47de3ac2f3abaabae21060a85ffbccb9db1b8df4c67ca02ea9208913c2ec765d6e7b713a8863358cb0a00519397445f269db6c70622fe658bcb7ef34922ba5b0 SHA512 c51884ea6d0849cf97d9e4a206af64a33a66bab5feac610f61ed5239c2122c40a33589fbed5e07d7baefa5e8181dc914a946fb4cfba91480f7581cb56ba358eb DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f SHA512 97345a8f7f15a83e51635ec667e869833a597511a1b
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 7d37295b36e0f6e7c9a55b1bad92917acd58483f Author: Eric Joldasov landless-city net> AuthorDate: Sat Mar 30 08:14:36 2024 + Commit: Sam James gentoo org> CommitDate: Mon May 20 07:48:25 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d37295b dev-lang/zig-bin: add verify-sig support Signed-off-by: Eric Joldasov landless-city.net> Signed-off-by: Sam James gentoo.org> dev-lang/zig-bin/Manifest | 12 dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild | 20 +--- dev-lang/zig-bin/zig-bin-0.11.0-r1.ebuild | 22 +++--- 3 files changed, 48 insertions(+), 6 deletions(-) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index 7ce5d4b9c74c..f350b3403242 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,12 +1,24 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 +DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6 SHA512 297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580 SHA512 07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63 +DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92 SHA512 0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d +DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592 SHA512 7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50 SHA512 f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008 +DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc SHA512 8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f SHA512 97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3 +DIST zig-linux-i386-0.10.1.tar.xz.minisig 323 BLAKE2B e25778cf26696ae0450186b6173dc69cfc9eb165903d5c4b1bcb9d01b55646f1af5047e129a1241200b7d7bd041bc9aa85841eee3a9366b7e88a2eccce3dae88 SHA512 52e66eb9a486e853330f125bad2baf63b87e3544ef1cc12cd59889f3c3a8a7ada5363307eb29d797c54202ebc5a3edb87452d6b09f53f099f51f79c053cf8b7d DIST zig-linux-powerpc-0.11.0.tar.xz 44539972 BLAKE2B b713c23f537c8f47be7aae7bf0609d056dc6817aac207ba39df0a53d1c391f1c64bc05edbb53fb5584c60cd6963f35fa56448440c5065dc21b5cf978fbb0bbb4 SHA512 faabbbae501b56c91fec036c209a6d6aea0c974749a777eb13f273e06fde960c7b2a2b29caf83a43fef740652db313933b3eeb72a9c0445ad412a7f8023da3af +DIST zig-linux-powerpc-0.11.0.tar.xz.minisig 326 BLAKE2B ddf87eece5a2238a72d672af245de57ec3163d6849b84a72375dd08e12b9f4d068fd1584abfe0d9dbf449b802383e522bef1a4e21217788ca5638b885c1030c0 SHA512 c762e4a2414aee08fa4a7afd26660cf43c81478fa1a154cd7e7ecdcff15aa3d4ab8263fabe271ce9bd5191a1564b38bb7f96ee7afc2317f71d60c0fd527e32f6 DIST zig-linux-powerpc64le-0.11.0.tar.xz 44656184 BLAKE2B 597947c4bee73847abf0941819477bf8a47a4d019a8060e79133e3d01b43325c0acfae7a8d57a4d84e1cd9dfe63b3439fac4e4372d6b538e9992a9364d65ee73 SHA512 fc1dbe9115e2f92f03a6934d32c65d1de4cbe0cf070d6f46
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 7f0030f20b6e01ae7deb80143dd3a39e0d69234e
Author: Eric Joldasov landless-city net>
AuthorDate: Sat Mar 30 08:34:32 2024 +
Commit: Sam James gentoo org>
CommitDate: Mon May 20 07:48:25 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f0030f2
dev-lang/zig: add verify-sig support
Signed-off-by: Eric Joldasov landless-city.net>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 2 ++
dev-lang/zig/zig-0.11.0-r1.ebuild | 13 +++--
dev-lang/zig/zig-0.12.0.ebuild| 11 ++-
dev-lang/zig/zig-.ebuild | 11 ++-
4 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index e4ec481d676a..59c8c3e88aaa 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,2 +1,4 @@
DIST zig-0.11.0.tar.xz 15275316 BLAKE2B
603e4995a36d214ba71cf05b719a04732c8927995c8207ab8fdd574dca3410cdc5ccc8f6aa9964807afc04a5cbce1a3910a6cde4cf12e585cdf7684833217eb2
SHA512
c19a8ae6d440a16dd5e77941fc77c036d1f284f1784376625e63b65f30b4acad62f9f4217bc818c401f88c2c33f8722f26fc467c3e23c29a89178c4b1882d1c4
+DIST zig-0.11.0.tar.xz.minisig 312 BLAKE2B
8df407f07dde36280c945300fd8b803e6e59c026eb7a3eb56e6d2f4fe1047672e17946a3bbe23ccfe9be07b65331e17690e95fd348353be22f7b6d9b73b3f9ca
SHA512
565dd1eacb7dd697e6b1ff54517adc1e4775d2523afaeb4f9a3dd404df871b187862211ecbbcf90b42e3a03853677fc1603e7fc8fc5ba7126a054679faa601ca
DIST zig-0.12.0.tar.xz 17099152 BLAKE2B
2a1248302868156c4ddcb154d075af29886a95a4c29de02ff0981e76a85f5d4109dd5c38f95c2c16f5c942bab7d120ae068c1e122ab8ad421c0213b7e996956c
SHA512
0c3d9396fea4905245c7e32ce6bd9b4ff140f061cd8a957929e4c84cf105f5bbcbf2e7c030013ac649edb569e909f65d928b3e8a86f35c9076fb62e996feea14
+DIST zig-0.12.0.tar.xz.minisig 312 BLAKE2B
4b3d1ae45d3b6d81054a39255c0892d9376d05da9ff1076bcf740310c9650b0154ddc39f19caee9dae293719d58a63764e43b694b83fe7031c87ab434aa377f5
SHA512
6e14c1e1926beeb249cb88fb2247ff401f679b64785c3ec8a924e33c894174deb77b48286469a863761bce0ca57524f904995eacf544919dda387c140e6e829e
diff --git a/dev-lang/zig/zig-0.11.0-r1.ebuild
b/dev-lang/zig/zig-0.11.0-r1.ebuild
index 633b6e1c6399..8114e11a4f79 100644
--- a/dev-lang/zig/zig-0.11.0-r1.ebuild
+++ b/dev-lang/zig/zig-0.11.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2023 Gentoo Authors
+# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -12,8 +12,17 @@ if [[ ${PV} == ]]; then
EGIT_REPO_URI="https://github.com/ziglang/zig.git";
inherit git-r3
else
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
# project itself: MIT
diff --git a/dev-lang/zig/zig-0.12.0.ebuild b/dev-lang/zig/zig-0.12.0.ebuild
index 73a78c57226a..2b89e41832af 100644
--- a/dev-lang/zig/zig-0.12.0.ebuild
+++ b/dev-lang/zig/zig-0.12.0.ebuild
@@ -12,8 +12,17 @@ if [[ ${PV} == ]]; then
EGIT_REPO_URI="https://github.com/ziglang/zig.git";
inherit git-r3
else
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
# project itself: MIT
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index d3ce3edd625b..a6c2c79a6a38 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -14,8 +14,17 @@ if [[ ${PV} == ]]; then
EGIT_REPO_URI="https://github.com/ziglang/zig.git";
inherit git-r3
else
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ VERIFY_SIG_METHOD=minisig
+
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/minisig-keys/zig-software-foundation.pub
+ inherit verify-sig
+
+ SRC_URI="
+ https://ziglang.org/download/${PV}/${P}.tar.xz
+ verify-sig? (
https://ziglang.org/download/${PV}/${P}.tar.xz.minisig )
+ "
KEYWORDS="~amd64 ~arm ~arm64"
+
+ BDEPEND="verify-sig? ( sec-keys/minisig-keys-zig-software-foundation )"
fi
# project itself: MIT
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 570d80252431fe2ebd6ab7d6f24384becbb1546a
Author: Eric Joldasov landless-city net>
AuthorDate: Sat Mar 30 08:42:17 2024 +
Commit: Sam James gentoo org>
CommitDate: Mon May 20 07:48:26 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=570d8025
dev-lang/zig: update LLVM to 18, fix build without LLVM on
Signed-off-by: Eric Joldasov landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/35997
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index a6c2c79a6a38..d278d521c061 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-LLVM_COMPAT=( 17 )
+LLVM_COMPAT=( 18 )
LLVM_OPTIONAL=1
inherit check-reqs cmake edo llvm-r1 toolchain-funcs
@@ -138,7 +138,7 @@ src_configure() {
-Dtarget="$(get_zig_target)"
-Dcpu="$(get_zig_mcpu)"
-Doptimize=Debug
- -Dno-autodocs
+ -Dstd-docs=false
-Dno-langref
-Denable-llvm=false
-Dforce-link-libc
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ec54c19f5b6c28b03d2c1beba2d07d92a4df2f00
Author: 0x5a4 wienstroer net>
AuthorDate: Thu May 2 18:54:51 2024 +
Commit: Sam James gentoo org>
CommitDate: Sun May 19 15:20:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec54c19f
dev-lang/zig: add 0.12.0
Signed-off-by: 0x5a4 wienstroer.net>
Closes: https://github.com/gentoo/gentoo/pull/36517
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 1 +
dev-lang/zig/zig-0.12.0.ebuild | 173 +
2 files changed, 174 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 0041c029d4ff..e4ec481d676a 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1 +1,2 @@
DIST zig-0.11.0.tar.xz 15275316 BLAKE2B
603e4995a36d214ba71cf05b719a04732c8927995c8207ab8fdd574dca3410cdc5ccc8f6aa9964807afc04a5cbce1a3910a6cde4cf12e585cdf7684833217eb2
SHA512
c19a8ae6d440a16dd5e77941fc77c036d1f284f1784376625e63b65f30b4acad62f9f4217bc818c401f88c2c33f8722f26fc467c3e23c29a89178c4b1882d1c4
+DIST zig-0.12.0.tar.xz 17099152 BLAKE2B
2a1248302868156c4ddcb154d075af29886a95a4c29de02ff0981e76a85f5d4109dd5c38f95c2c16f5c942bab7d120ae068c1e122ab8ad421c0213b7e996956c
SHA512
0c3d9396fea4905245c7e32ce6bd9b4ff140f061cd8a957929e4c84cf105f5bbcbf2e7c030013ac649edb569e909f65d928b3e8a86f35c9076fb62e996feea14
diff --git a/dev-lang/zig/zig-0.12.0.ebuild b/dev-lang/zig/zig-0.12.0.ebuild
new file mode 100644
index ..73a78c57226a
--- /dev/null
+++ b/dev-lang/zig/zig-0.12.0.ebuild
@@ -0,0 +1,173 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=17
+inherit edo cmake llvm check-reqs toolchain-funcs
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+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+"
+SLOT="$(ver_cut 1-2)"
+IUSE="doc"
+
+BUILD_DIR="${S}/build"
+
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "static" ofc).
+DEPEND="
+ sys-devel/clang:${LLVM_MAX_SLOT}=
+ sys-devel/lld:${LLVM_MAX_SLOT}=
+ sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
+"
+
+RDEPEND="
+ ${DEPEND}
+"
+
+IDEPEND="app-eselect/eselect-zig"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
+
+# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
+# Zig uses self-hosted compiler only
+CHECKREQS_MEMORY="4G"
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
+ctarget_to_zigtarget() {
+ # Zig's Target Format: arch-os-abi
+ local CTARGET="${CTARGET:-${CHOST}}"
+
+ local ZIG_ARCH
+ case "${CTARGET%%-*}" in
+ i?86) ZIG_ARCH=x86;;
+ sparcv9)ZIG_ARCH=sparc64;;
+ *) ZIG_ARCH="${CTARGET%%-*}";; # Same as in CHOST
+ esac
+
+ local ZIG_OS
+ case "${CTARGET}" in
+ *linux*)ZIG_OS=linux;;
+ *apple*)ZIG_OS=macos;;
+ esac
+
+ local ZIG_ABI
+ case "${CTARGET##*-}" in
+ gnu)ZIG_ABI=gnu;;
+ solaris*) ZIG_OS=solaris ZIG_ABI=none;;
+ darwin*)ZIG_ABI=none;;
+ *) ZIG_ABI="${CTARGET##*-}";; # Same as in CHOST
+ esac
+
+ echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
+}
+
+get_zig_mcpu() {
+ local ZIG_DEFAULT_MCPU=native
+ tc-is-cross-compiler && ZIG_DEFA
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 5dc3eca9297aa7f5908411f7763770a0294631e2
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Feb 21 04:19:47 2024 +
Commit: Florian Schmaus gentoo org>
CommitDate: Wed Feb 28 09:11:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dc3eca9
dev-lang/zig: add "test-c-import" step in
Extracted from "test-behaviour" in
https://www.github.com/ziglang/zig/pull/19016 .
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/35457
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 4628af24780a..d3ce3edd625b 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -179,7 +179,7 @@ src_test() {
local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm
-Dskip-non-native \
-Doptimize=ReleaseSafe -Dtarget=$(get_zig_target)
-Dcpu=$(get_zig_mcpu)"
local ZIG_TEST_STEPS=(
- test-cases test-fmt test-behavior test-compiler-rt
test-universal-libc test-compare-output
+ test-fmt test-cases test-behavior test-c-import
test-compiler-rt test-universal-libc test-compare-output
test-standalone test-c-abi test-link test-stack-traces test-cli
test-asm-link test-translate-c
test-run-translated-c test-std
)
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: a689d1251d826a329a937e19dae19bae823cc033
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Sun Feb 11 14:58:05 2024 +
Commit: Michał Górny gentoo org>
CommitDate: Sun Feb 11 15:57:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a689d125
dev-lang/zig: Migrate to llvm-r1 in
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/35273
Signed-off-by: Michał Górny gentoo.org>
dev-lang/zig/zig-.ebuild | 29 -
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index a29f09a3db19..4628af24780a 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -1,10 +1,12 @@
-# Copyright 2019-2023 Gentoo Authors
+# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-LLVM_MAX_SLOT=17
-inherit edo cmake llvm check-reqs toolchain-funcs
+LLVM_COMPAT=( 17 )
+LLVM_OPTIONAL=1
+
+inherit check-reqs cmake edo llvm-r1 toolchain-funcs
DESCRIPTION="A robust, optimal, and maintainable programming language"
HOMEPAGE="https://ziglang.org/";
@@ -30,7 +32,10 @@ fi
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+"
SLOT="$(ver_cut 1-2)"
IUSE="doc +llvm"
-REQUIRED_USE="!llvm? ( !doc )"
+REQUIRED_USE="
+ !llvm? ( !doc )
+ llvm? ( ${LLVM_REQUIRED_USE} )
+"
BUILD_DIR="${S}/build"
@@ -41,9 +46,11 @@ BUILD_DIR="${S}/build"
# options that are passed to LLVM CMake building (excluding "static" ofc).
DEPEND="
llvm? (
- sys-devel/clang:${LLVM_MAX_SLOT}=
- sys-devel/lld:${LLVM_MAX_SLOT}=
- sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
+ $(llvm_gen_dep '
+ sys-devel/clang:${LLVM_SLOT}
+ sys-devel/lld:${LLVM_SLOT}
+ sys-devel/llvm:${LLVM_SLOT}[zstd]
+ ')
)
"
@@ -63,10 +70,6 @@ RESTRICT="!llvm? ( test )"
# Zig uses self-hosted compiler only
CHECKREQS_MEMORY="4G"
-llvm_check_deps() {
- has_version "sys-devel/clang:${LLVM_SLOT}"
-}
-
ctarget_to_zigtarget() {
# Zig's Target Format: arch-os-abi
local CTARGET="${CTARGET:-${CHOST}}"
@@ -114,7 +117,7 @@ pkg_setup() {
export ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
- use llvm && llvm_pkg_setup
+ use llvm && llvm-r1_pkg_setup
check-reqs_pkg_setup
}
@@ -140,7 +143,7 @@ src_configure() {
-DZIG_TARGET_TRIPLE="$(get_zig_target)"
-DZIG_TARGET_MCPU="$(get_zig_mcpu)"
-DZIG_USE_LLVM_CONFIG=ON
- -DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+ -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)"
-DCMAKE_INSTALL_PREFIX="${ZIG_SYS_INSTALL_DEST}"
)
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ff13cba4edbd2a712f1d863b96fa549f74a9e91b
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Tue Dec 12 14:35:44 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Wed Dec 13 07:47:23 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff13cba4
dev-lang/zig: remove ".max_rss" fields initializers from build.zig in
They are too high and cause errors like below:
* https://www.github.com/ziglang/zig/issues/18263
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/34252
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-.ebuild | 5 +
1 file changed, 5 insertions(+)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 6e98f73a3af4..a29f09a3db19 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -148,6 +148,11 @@ src_configure() {
}
src_compile() {
+ # Remove "limit memory usage" flags, it's already verified by
+ # CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
+ # according to CI OOM failures, which are higher than during Gentoo
build.
+ sed -i -e '/\.max_rss = .*,/d' build.zig || die
+
if ! use llvm; then
$(tc-getCC) -o bootstrap bootstrap.c || die "Zig's bootstrap.c
compilation failed"
edob ./bootstrap
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig-bin/files/
commit: 08419414eebb1bb26e9e72cffb66ce81a0e64751
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Nov 17 14:24:26 2023 +
Commit: Sam James gentoo org>
CommitDate: Wed Nov 22 11:36:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08419414
dev-lang/zig{,-bin}: fix getconf patch for instances with whitespaces in
between outputs
Fixes: 42ac667416fe133255c3baca620e9af61315cb3b
Fixes: 69c2497bbaf42a517fe3449f749609b4449b7952
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/33871
Signed-off-by: Sam James gentoo.org>
.../files/zig-0.11.0-first-try-getconf.patch | 38 --
.../zig/files/zig-0.11.0-first-try-getconf.patch | 38 --
2 files changed, 42 insertions(+), 34 deletions(-)
diff --git a/dev-lang/zig-bin/files/zig-0.11.0-first-try-getconf.patch
b/dev-lang/zig-bin/files/zig-0.11.0-first-try-getconf.patch
index 6d1b3ca7e5b7..5a63e9e74ad9 100644
--- a/dev-lang/zig-bin/files/zig-0.11.0-first-try-getconf.patch
+++ b/dev-lang/zig-bin/files/zig-0.11.0-first-try-getconf.patch
@@ -17,14 +17,14 @@ Bug: https://bugs.gentoo.org/914731
Bug: https://bugs.gentoo.org/914101
diff --git a/lib/std/zig/system/NativeTargetInfo.zig
b/lib/std/zig/system/NativeTargetInfo.zig
-index 99a1a8f2e..d1032a716 100644
+index 99a1a8f2e..0250db968 100644
--- a/lib/std/zig/system/NativeTargetInfo.zig
+++ b/lib/std/zig/system/NativeTargetInfo.zig
@@ -19,6 +19,32 @@ dynamic_linker: DynamicLinker = DynamicLinker{},
-
+
pub const DynamicLinker = Target.DynamicLinker;
-
-+// Copy-pasted from `std.zig.CrossTarget.parse` to avoid changing visibility
of mentioned function.
+
++// Copy-pasted from `std.zig.CrossTarget.parse` to avoid introducing
unexpected new public function as part of standard library.
+/// Parses a version with an omitted patch component, such as "1.0",
+/// which SemanticVersion.parse is not capable of.
+fn parseWithOptionalPatchField(ver: []const u8) error{ InvalidVersion,
Overflow }!std.SemanticVersion {
@@ -38,7 +38,7 @@ index 99a1a8f2e..d1032a716 100644
+};
+}
+}.parseVersionComponent;
-+var version_components = mem.split(u8, ver, ".");
++var version_components = mem.splitScalar(u8, ver, '.');
+const major = version_components.first();
+const minor = version_components.next() orelse return
error.InvalidVersion;
+const patch = version_components.next() orelse "0";
@@ -53,10 +53,10 @@ index 99a1a8f2e..d1032a716 100644
pub const DetectError = error{
FileSystem,
SystemResources,
-@@ -307,6 +333,35 @@ fn detectAbiAndDynamicLinker(
+@@ -307,6 +333,39 @@ fn detectAbiAndDynamicLinker(
}
const ld_info_list = ld_info_list_buffer[0..ld_info_list_len];
-
+
+if (is_linux and !os_is_non_native and cross_target.glibc_version ==
null) try_getconf: {
+var buf: [4096]u8 = undefined;
+var fba = std.heap.FixedBufferAllocator.init(&buf);
@@ -68,20 +68,24 @@ index 99a1a8f2e..d1032a716 100644
+.max_output_bytes = 1024,
+}) catch break :try_getconf;
+if (!std.mem.startsWith(u8, getconf.stdout, "glibc ")) break
:try_getconf;
-+const version_string = getconf.stdout["glibc ".len..];
++const version_string = std.mem.trim(u8, getconf.stdout["glibc
".len..], &std.ascii.whitespace);
+const glibc_version = parseWithOptionalPatchField(version_string)
catch break :try_getconf;
+
+var os_with_glibc = os;
+os_with_glibc.version_range.linux.glibc = glibc_version;
+
++const target: Target = .{
++.cpu = cpu,
++.os = os_with_glibc,
++.abi = .gnu,
++.ofmt = cross_target.ofmt orelse
Target.ObjectFormat.default(os_with_glibc.tag, cpu.arch),
++};
+const result: NativeTargetInfo = .{
-+.target = .{
-+.cpu = cpu,
-+.os = os_with_glibc,
-+.abi = cross_target.abi orelse Target.Abi.default(cpu.arch,
os_with_glibc),
-+.ofmt = cross_target.ofmt orelse
Target.ObjectFormat.default(os_with_glibc.tag, cpu.arch),
-+},
-+.dynamic_linker = cross_target.dynamic_linker,
++.target = target,
++.dynamic_linker = if (cross_target.dynamic_linker.get() == null)
++target.standardDynamicLinkerPath()
++else
++cross_target.dynamic_linker,
+};
+return result;
+}
@@ -89,7 +93,7 @@ index 99a1a8f2e..d1032a716 100644
// Best case scenario: the executable is dynamically linked, and we can
iterate
// over our own shared objects and find a dynamic linker.
const elf_file = blk: {
-@@ -563,7 +618,7 @@ fn glibcVerFromSoFile(file: fs.File) !std.SemanticVersion {
+@@ -563,7 +622,7 @@ fn glibcVerFromSoFile(file: fs.File) !std.SemanticVersion {
while (it.next()) |s| {
i
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 907ccc13308ae0393eb165b43d4fc5a9e5af0ae5 Author: Eric Joldasov getgoogleoff me> AuthorDate: Thu Nov 16 18:05:24 2023 + Commit: Sam James gentoo org> CommitDate: Wed Nov 22 11:36:50 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=907ccc13 dev-lang/zig: add `llvm` USE-flag for 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 getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/33868 Signed-off-by: Sam James gentoo.org> dev-lang/zig/metadata.xml| 3 +++ dev-lang/zig/zig-.ebuild | 64 +--- 2 files changed, 57 insertions(+), 10 deletions(-) diff --git a/dev-lang/zig/metadata.xml b/dev-lang/zig/metadata.xml index a5a5818faae7..ad21fd6654d5 100644 --- a/dev-lang/zig/metadata.xml +++ b/dev-lang/zig/metadata.xml @@ -9,6 +9,9 @@ [email protected] Proxy Maintainers + + Build with LLVM backend and extensions enabled. + ziglang/zig https://github.com/ziglang/zig/issues diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index 9605234cfc43..6e98f73a3af4 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -29,7 +29,8 @@ fi # lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ 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+" SLOT="$(ver_cut 1-2)" -IUSE="doc" +IUSE="doc +llvm" +REQUIRED_USE="!llvm? ( !doc )" BUILD_DIR="${S}/build" @@ -39,9 +40,11 @@ BUILD_DIR="${S}/build" # You can check https://github.com/ziglang/zig-bootstrap in future, to see # options that are passed to LLVM CMake building (excluding "static" ofc). DEPEND=" - sys-devel/clang:${LLVM_MAX_SLOT}= - sys-devel/lld:${LLVM_MAX_SLOT}= - sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd] + llvm? ( + sys-devel/clang:${LLVM_MAX_SLOT}= + sys-devel/lld:${LLVM_MAX_SLOT}= + sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd] + ) " RDEPEND=" @@ -54,6 +57,8 @@ IDEPEND="app-eselect/eselect-zig" # For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc. QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig" +RESTRICT="!llvm? ( test )" + # Since commit https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118 # Zig uses self-hosted compiler only CHECKREQS_MEMORY="4G" @@ -103,14 +108,31 @@ get_zig_target() { } pkg_setup() { - llvm_pkg_setup + # Useful for debugging and a little bit more deterministic. + export ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache" + export ZIG_GLOBAL_CACHE_DIR="${T}/zig-global-cache" + + export ZIG_SYS_INSTALL_DEST="${EPREFIX}/usr/$(get_libdir)/zig/${PV}" + + use llvm && llvm_pkg_setup check-reqs_pkg_setup } src_configure() { - # Useful for debugging and a little bit more deterministic. - export ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache" - export ZIG_GLOBAL_CACHE_DIR="${T}/zig-global-cache" + if ! use llvm; then + mkdir -p "${BUILD_DIR}/stage3" || die + # Currently, Zig without LLVM extensions lacks most optimizations. + export ZIG_BOOTSTRAP_STAGE3_FLAGS=( + -Dtarget="$(get_zig_target)" + -Dcpu="$(get_zig_mcpu)" + -Doptimize=Debug + -Dno-autodocs + -Dno-langref + -Denable-llvm=false + -Dforce-link-libc + ) + return + fi local mycmakeargs=( -DZIG_USE_CCACHE=OFF @@ -119,13 +141,20 @@ src_configure() { -DZIG_TARGET_MCPU="$(get_zig_mcpu)" -DZIG_USE_LLVM_CONFIG=ON -DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/zig/${PV}" + -DCMAKE_INSTALL_PREFIX="${ZIG_SYS_INSTALL_DEST}" ) cmake_src_configure } src_compile() { + if ! use llvm; then + $(tc-getCC) -o bootstrap bootstrap.c || die "Zig's bootstrap.c compilation failed" + edob ./bootstrap + edo ./zig2 build install --prefix "${BUILD_DIR}/stage3/" "${ZIG_BOOTSTRAP_STAGE3_FLAGS[@]}" + return + fi + cmake_src_compile "${BUILD_DIR}/stage3/bin/zig" env || die "Zig compilation failed" @@ -154,8 +183,15 @@ src_test() { } src_install() { + local DOCS=( "README.md" "doc/build.zig.zon.md" ) use do
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 4d67993edccbfabf302a222c3a35658d80c900fb Author: Eric Joldasov getgoogleoff me> AuthorDate: Tue Sep 19 18:34:43 2023 + Commit: Sam James gentoo org> CommitDate: Tue Sep 26 15:54:23 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d67993e dev-lang/zig: update to LLVM 17 for See also https://www.github.com/ziglang/zig/pull/17202 . Signed-off-by: Eric Joldasov getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/32935 Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index 1644ef100c5c..e6ab3dbeeb61 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_MAX_SLOT=16 +LLVM_MAX_SLOT=17 inherit edo cmake llvm check-reqs toolchain-funcs DESCRIPTION="A robust, optimal, and maintainable programming language"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: aa7c2042fb656a133727e2b643beed14d7ee958e Author: Eric Joldasov getgoogleoff me> AuthorDate: Fri Aug 4 08:49:41 2023 + Commit: Jakov Smolić gentoo org> CommitDate: Fri Aug 25 03:57:59 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa7c2042 dev-lang/zig-bin: add 0.11.0 Signed-off-by: Eric Joldasov getgoogleoff.me> Signed-off-by: Jakov Smolić gentoo.org> dev-lang/zig-bin/Manifest | 7 dev-lang/zig-bin/zig-bin-0.11.0.ebuild | 67 ++ 2 files changed, 74 insertions(+) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index a7c177c3f4d6..7ce5d4b9c74c 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,5 +1,12 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e SHA512 44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6 +DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580 SHA512 07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632 SHA512 4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d +DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50 SHA512 f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008 DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f SHA512 97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3 +DIST zig-linux-powerpc-0.11.0.tar.xz 44539972 BLAKE2B b713c23f537c8f47be7aae7bf0609d056dc6817aac207ba39df0a53d1c391f1c64bc05edbb53fb5584c60cd6963f35fa56448440c5065dc21b5cf978fbb0bbb4 SHA512 faabbbae501b56c91fec036c209a6d6aea0c974749a777eb13f273e06fde960c7b2a2b29caf83a43fef740652db313933b3eeb72a9c0445ad412a7f8023da3af +DIST zig-linux-powerpc64le-0.11.0.tar.xz 44656184 BLAKE2B 597947c4bee73847abf0941819477bf8a47a4d019a8060e79133e3d01b43325c0acfae7a8d57a4d84e1cd9dfe63b3439fac4e4372d6b538e9992a9364d65ee73 SHA512 fc1dbe9115e2f92f03a6934d32c65d1de4cbe0cf070d6f468632c906966048400a806d8ec8540fde7a1b195a8ae8238fde5ddd94c2d54a0af70d9060d006cf89 DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c SHA512 1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0 +DIST zig-linux-riscv64-0.11.0.tar.xz 43532324 BLAKE2B f82a7a32b94a084767fa205bf8b66371bfebd4753f647930a5689d727a2211c9cd37f76a855732356a220a64515f8146c5b450207be59854f08132ccf178d23c SHA512 f2ab35c6a7c3452a5dd825d03fa8b5329786a705dbc04260980fefc64e24f4d61cb22c95c10b9952cbc58bdd8741503aa98ad8ed4a8c0a0e856a0e8ba9eb1ca7 +DIST zig-linux-x86-0.11.0.tar.xz 49824456 BLAKE2B 4a9b4c9551ffe555d1283c9d5aab6649fc5ea5807b9465d18c10cae622beca23df114ab4f503b9d86e14ce26cbf6ac07df8e60521fbc2c3784c9d25eeabf852d SHA512 aaa2adb128ae0cc8e6f43323b78dc60699b80f56b0e1be7524ac7e9ac71513229c4224d2ef7d63fedb74c513c31d5614fe34cbcfb0cc4bb268952427d082594f DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34 SHA512 1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc +DIST zig-linux-x86_64-0.11.0.tar.xz 44961892 BLAKE2B b0780573dbd372c7a9efec32e6860050b15603a80e00e64757a6c09a02757febc14d3df32ff089f418996fb55bf6fb50774393037f86cbecd49f06c250e5bbe3 SHA512 992e49a28edc9bed44c124a887c4700e707c2eef6a6f3adb551c568103242c3a5304af00d95994a511670c2099f476aa5068eef538f6065afe9bc149c7b9 diff --git a/dev-lang/zig-bin/zig-bin-0.11.0.ebuild b/dev-lang/zig-bin/zig-bin-0.11.0.ebuild new file mode 100644 index ..2ff67d9e16aa --- /dev/null +++ b/dev-lang/zig-bin/zig-bin-0.11.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ececf403a1e5ee445cc95c5de14f98e9cccf751e
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Aug 4 08:53:38 2023 +
Commit: Jakov Smolić gentoo org>
CommitDate: Fri Aug 25 03:58:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ececf403
dev-lang/zig: add 0.11.0
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Jakov Smolić gentoo.org>
dev-lang/zig/Manifest | 1 +
dev-lang/zig/zig-0.11.0.ebuild | 167 +
2 files changed, 168 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 529aa0c2bc35..99b9116507be 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1 +1,2 @@
DIST zig-0.10.1.tar.xz 15143112 BLAKE2B
4954d95ad763000eedf73a78e62bc0e99d65bba91c7127cdf1ea4503eb67817265daf572f645b7efbe9e24087e690b2768f0b2bc6c43b5fd76eab33143e964fe
SHA512
d443adf61556bc95470537c6b0371a0ac99d19a06b15635cf1e5055ae7849039680c9006105e06e1bd6ba0fc12da14c54c1d28ac597c7dee17ee3a5cd9cf79f8
+DIST zig-0.11.0.tar.xz 15275316 BLAKE2B
603e4995a36d214ba71cf05b719a04732c8927995c8207ab8fdd574dca3410cdc5ccc8f6aa9964807afc04a5cbce1a3910a6cde4cf12e585cdf7684833217eb2
SHA512
c19a8ae6d440a16dd5e77941fc77c036d1f284f1784376625e63b65f30b4acad62f9f4217bc818c401f88c2c33f8722f26fc467c3e23c29a89178c4b1882d1c4
diff --git a/dev-lang/zig/zig-0.11.0.ebuild b/dev-lang/zig/zig-0.11.0.ebuild
new file mode 100644
index ..1644ef100c5c
--- /dev/null
+++ b/dev-lang/zig/zig-0.11.0.ebuild
@@ -0,0 +1,167 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=16
+inherit edo cmake llvm check-reqs toolchain-funcs
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+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+"
+SLOT="$(ver_cut 1-2)"
+IUSE="doc"
+
+BUILD_DIR="${S}/build"
+
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "static" ofc).
+DEPEND="
+ sys-devel/clang:${LLVM_MAX_SLOT}=
+ sys-devel/lld:${LLVM_MAX_SLOT}=
+ sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
+"
+
+RDEPEND="
+ ${DEPEND}
+"
+
+IDEPEND="app-eselect/eselect-zig"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
+
+# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
+# Zig uses self-hosted compiler only
+CHECKREQS_MEMORY="4G"
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
+ctarget_to_zigtarget() {
+ # Zig's Target Format: arch-os-abi
+ local CTARGET="${CTARGET:-${CHOST}}"
+
+ local ZIG_ARCH
+ case "${CTARGET%%-*}" in
+ i?86) ZIG_ARCH=x86;;
+ sparcv9)ZIG_ARCH=sparc64;;
+ *) ZIG_ARCH="${CTARGET%%-*}";; # Same as in CHOST
+ esac
+
+ local ZIG_OS
+ case "${CTARGET}" in
+ *linux*)ZIG_OS=linux;;
+ *apple*)ZIG_OS=macos;;
+ esac
+
+ local ZIG_ABI
+ case "${CTARGET##*-}" in
+ gnu)ZIG_ABI=gnu;;
+ solaris*) ZIG_OS=solaris ZIG_ABI=none;;
+ darwin*)ZIG_ABI=none;;
+ *) ZIG_ABI="${CTARGET##*-}";; # Same as in CHOST
+ esac
+
+ echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
+}
+
+get_zig_mcpu() {
+ local ZIG_DEFAULT_MCPU=native
+ tc-is-cross-compiler && ZIG_DEFAULT_MCPU=baseline
+ ec
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 04a33463261c264137b6e4466cb83c0695d3f6d6
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Jul 26 08:52:40 2023 +
Commit: Sam James gentoo org>
CommitDate: Thu Jul 27 11:45:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04a33463
dev-lang/zig: make doc generation for 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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/32052
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 41467b2d0539..1644ef100c5c 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -126,8 +126,8 @@ src_compile() {
if use doc; then
cd "${BUILD_DIR}" || die
- edo ./stage3/bin/zig run ../doc/docgen.zig -- --zig
./stage3/bin/zig ../doc/langref.html.in "${S}/langref.html"
- edo ./stage3/bin/zig test ../lib/std/std.zig --zig-lib-dir
../lib -fno-emit-bin -femit-docs="${S}/std"
+ edo ./stage3/bin/zig build std-docs --prefix "${S}/docgen/"
+ edo ./stage3/bin/zig build langref --prefix "${S}/docgen/"
fi
}
@@ -148,7 +148,7 @@ src_test() {
}
src_install() {
- use doc && local HTML_DOCS=( "langref.html" "std" )
+ use doc && local HTML_DOCS=( "docgen/doc/langref.html" "docgen/doc/std"
)
cmake_src_install
cd "${ED}/usr/$(get_libdir)/zig/${PV}/" || die
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 3126404cca731e732d4a413fbd24edc052b5e410
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Tue Jul 25 18:30:39 2023 +
Commit: Sam James gentoo org>
CommitDate: Wed Jul 26 03:32:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3126404c
dev-lang/zig: fix building on with "doc" USE-flag enabled
ZIG_NO_LANGREF variable was disabled in
https://github.com/ziglang/zig/commit/32a175740c8750a7db550011795a4c22c0d0bc93.
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/32035
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index dd8650c3aa2c..41467b2d0539 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -116,7 +116,6 @@ src_configure() {
-DZIG_USE_LLVM_CONFIG=ON
-DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
- -DZIG_NO_LANGREF="$(usex !doc ON OFF)"
)
cmake_src_configure
@@ -127,7 +126,7 @@ src_compile() {
if use doc; then
cd "${BUILD_DIR}" || die
- mv ./stage3/doc/langref.html "${S}" || die
+ edo ./stage3/bin/zig run ../doc/docgen.zig -- --zig
./stage3/bin/zig ../doc/langref.html.in "${S}/langref.html"
edo ./stage3/bin/zig test ../lib/std/std.zig --zig-lib-dir
../lib -fno-emit-bin -femit-docs="${S}/std"
fi
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig/
commit: 8f377950b088ae4240db530fee28ddb3a23c2013
Author: Violet Purcell inventati org>
AuthorDate: Fri Jul 7 19:17:09 2023 +
Commit: Sam James gentoo org>
CommitDate: Sun Jul 9 02:02:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f377950
dev-lang/zig: Backport fix for musl 1.2.4
Signed-off-by: Violet Purcell inventati.org>
Signed-off-by: Sam James gentoo.org>
.../zig/files/zig-0.10.1-musl-1.2.4-lfs64.patch| 220 +
.../{zig-0.10.1-r2.ebuild => zig-0.10.1-r3.ebuild} | 1 +
2 files changed, 221 insertions(+)
diff --git a/dev-lang/zig/files/zig-0.10.1-musl-1.2.4-lfs64.patch
b/dev-lang/zig/files/zig-0.10.1-musl-1.2.4-lfs64.patch
new file mode 100644
index ..05a550a7920e
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.10.1-musl-1.2.4-lfs64.patch
@@ -0,0 +1,220 @@
+From
https://github.com/ziglang/zig/commit/b20ccff515364cdb8f3e733cc950e53ab77656db
Mon Sep 17 00:00:00 2001
+From: Andrew Kelley
+Date: Mon, 19 Jun 2023 15:17:01 -0700
+Subject: [PATCH] std.os: update logic for 64-bit symbol choice
+
+musl v1.2.4 dropped the "64"-suffixed aliases for legacy "LFS64" ("large
+file support") interfaces, so this commit changes the corresponding Zig
+logic to call the correct names.
+--- a/lib/std/os.zig
b/lib/std/os.zig
+@@ -890,10 +890,7 @@ pub fn pread(fd: fd_t, buf: []u8, offset: u64)
PReadError!usize {
+ };
+ const adjusted_len = @min(max_count, buf.len);
+
+-const pread_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pread64
+-else
+-system.pread;
++const pread_sym = if (lfs64_abi) system.pread64 else system.pread;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -966,10 +963,7 @@ pub fn ftruncate(fd: fd_t, length: u64)
TruncateError!void {
+ }
+
+ while (true) {
+-const ftruncate_sym = if (builtin.os.tag == .linux and
builtin.link_libc)
+-system.ftruncate64
+-else
+-system.ftruncate;
++const ftruncate_sym = if (lfs64_abi) system.ftruncate64 else
system.ftruncate;
+
+ const ilen = @bitCast(i64, length); // the OS treats this as unsigned
+ switch (errno(ftruncate_sym(fd, ilen))) {
+@@ -1034,10 +1028,7 @@ pub fn preadv(fd: fd_t, iov: []const iovec, offset:
u64) PReadError!usize {
+
+ const iov_count = math.cast(u31, iov.len) orelse math.maxInt(u31);
+
+-const preadv_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.preadv64
+-else
+-system.preadv;
++const preadv_sym = if (lfs64_abi) system.preadv64 else system.preadv;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1311,10 +1302,7 @@ pub fn pwrite(fd: fd_t, bytes: []const u8, offset: u64)
PWriteError!usize {
+ };
+ const adjusted_len = @min(max_count, bytes.len);
+
+-const pwrite_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwrite64
+-else
+-system.pwrite;
++const pwrite_sym = if (lfs64_abi) system.pwrite64 else system.pwrite;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1400,10 +1388,7 @@ pub fn pwritev(fd: fd_t, iov: []const iovec_const,
offset: u64) PWriteError!usiz
+ }
+ }
+
+-const pwritev_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwritev64
+-else
+-system.pwritev;
++const pwritev_sym = if (lfs64_abi) system.pwritev64 else system.pwritev;
+
+ const iov_count = if (iov.len > IOV_MAX) IOV_MAX else @intCast(u31,
iov.len);
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+@@ -1514,10 +1499,7 @@ pub fn openZ(file_path: [*:0]const u8, flags: u32,
perm: mode_t) OpenError!fd_t
+ return open(mem.sliceTo(file_path, 0), flags, perm);
+ }
+
+-const open_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.open64
+-else
+-system.open;
++const open_sym = if (lfs64_abi) system.open64 else system.open;
+
+ while (true) {
+ const rc = open_sym(file_path, flags, perm);
+@@ -1730,10 +1712,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8,
flags: u32, mode: mode_t)
+ return openat(dir_fd, mem.sliceTo(file_path, 0), flags, mode);
+ }
+
+-const openat_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.openat64
+-else
+-system.openat;
++const openat_sym = if (lfs64_abi) system.openat64 else system.openat;
+
+ while (true) {
+ const rc = openat_sym(dir_fd, file_path, flags, mode);
+@@ -4117,10 +4096,7 @@ pub fn fstat(fd: fd_t) FStatError!Stat {
+ @compileError("fstat is not yet implemented on Windows");
+ }
+
+-const fstat_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.fsta
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/
commit: 4df05bbbdf80c84c3f373ad75789ec0a6d13cbb4
Author: Violet Purcell inventati org>
AuthorDate: Sat Jul 8 18:23:12 2023 +
Commit: Sam James gentoo org>
CommitDate: Sun Jul 9 02:02:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df05bbb
dev-lang/zig-bin: Backport fix for musl 1.2.4
Signed-off-by: Violet Purcell inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31791
Signed-off-by: Sam James gentoo.org>
.../files/zig-0.10.1-musl-1.2.4-lfs64.patch| 220 +
...n-0.10.1-r2.ebuild => zig-bin-0.10.1-r3.ebuild} | 4 +-
2 files changed, 223 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch
b/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch
new file mode 100644
index ..05a550a7920e
--- /dev/null
+++ b/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch
@@ -0,0 +1,220 @@
+From
https://github.com/ziglang/zig/commit/b20ccff515364cdb8f3e733cc950e53ab77656db
Mon Sep 17 00:00:00 2001
+From: Andrew Kelley
+Date: Mon, 19 Jun 2023 15:17:01 -0700
+Subject: [PATCH] std.os: update logic for 64-bit symbol choice
+
+musl v1.2.4 dropped the "64"-suffixed aliases for legacy "LFS64" ("large
+file support") interfaces, so this commit changes the corresponding Zig
+logic to call the correct names.
+--- a/lib/std/os.zig
b/lib/std/os.zig
+@@ -890,10 +890,7 @@ pub fn pread(fd: fd_t, buf: []u8, offset: u64)
PReadError!usize {
+ };
+ const adjusted_len = @min(max_count, buf.len);
+
+-const pread_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pread64
+-else
+-system.pread;
++const pread_sym = if (lfs64_abi) system.pread64 else system.pread;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -966,10 +963,7 @@ pub fn ftruncate(fd: fd_t, length: u64)
TruncateError!void {
+ }
+
+ while (true) {
+-const ftruncate_sym = if (builtin.os.tag == .linux and
builtin.link_libc)
+-system.ftruncate64
+-else
+-system.ftruncate;
++const ftruncate_sym = if (lfs64_abi) system.ftruncate64 else
system.ftruncate;
+
+ const ilen = @bitCast(i64, length); // the OS treats this as unsigned
+ switch (errno(ftruncate_sym(fd, ilen))) {
+@@ -1034,10 +1028,7 @@ pub fn preadv(fd: fd_t, iov: []const iovec, offset:
u64) PReadError!usize {
+
+ const iov_count = math.cast(u31, iov.len) orelse math.maxInt(u31);
+
+-const preadv_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.preadv64
+-else
+-system.preadv;
++const preadv_sym = if (lfs64_abi) system.preadv64 else system.preadv;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1311,10 +1302,7 @@ pub fn pwrite(fd: fd_t, bytes: []const u8, offset: u64)
PWriteError!usize {
+ };
+ const adjusted_len = @min(max_count, bytes.len);
+
+-const pwrite_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwrite64
+-else
+-system.pwrite;
++const pwrite_sym = if (lfs64_abi) system.pwrite64 else system.pwrite;
+
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1400,10 +1388,7 @@ pub fn pwritev(fd: fd_t, iov: []const iovec_const,
offset: u64) PWriteError!usiz
+ }
+ }
+
+-const pwritev_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwritev64
+-else
+-system.pwritev;
++const pwritev_sym = if (lfs64_abi) system.pwritev64 else system.pwritev;
+
+ const iov_count = if (iov.len > IOV_MAX) IOV_MAX else @intCast(u31,
iov.len);
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+@@ -1514,10 +1499,7 @@ pub fn openZ(file_path: [*:0]const u8, flags: u32,
perm: mode_t) OpenError!fd_t
+ return open(mem.sliceTo(file_path, 0), flags, perm);
+ }
+
+-const open_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.open64
+-else
+-system.open;
++const open_sym = if (lfs64_abi) system.open64 else system.open;
+
+ while (true) {
+ const rc = open_sym(file_path, flags, perm);
+@@ -1730,10 +1712,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8,
flags: u32, mode: mode_t)
+ return openat(dir_fd, mem.sliceTo(file_path, 0), flags, mode);
+ }
+
+-const openat_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.openat64
+-else
+-system.openat;
++const openat_sym = if (lfs64_abi) system.openat64 else system.openat;
+
+ while (true) {
+ const rc = openat_sym(dir_fd, file_path, flags, mode);
+@@ -4117,10 +4096,7 @@ pub fn fstat(fd: fd_t) FStatError!Stat {
+ @compileError("fstat is not yet implemented on Windows");
+ }
+
+-const f
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 5f5728acd68617bfe062aad2a0358447befac578
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Sun Apr 16 07:03:08 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat May 13 03:28:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5728ac
dev-lang/zig-bin: update LICENSE
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
index 745201699674..4674b943f38f 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
@@ -12,7 +12,18 @@ SRC_URI="
riscv? (
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
-LICENSE="MIT"
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 )
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+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+"
SLOT="$(ver_cut 1-2)"
KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="doc"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 02196982135a2b96e825e93d3f2019a146a9350d Author: Eric Joldasov getgoogleoff me> AuthorDate: Sun Apr 16 07:03:27 2023 + Commit: Sam James gentoo org> CommitDate: Sat May 13 03:28:16 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02196982 dev-lang/zig: update LICENSE Signed-off-by: Eric Joldasov getgoogleoff.me> Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-0.10.1-r2.ebuild | 13 - dev-lang/zig/zig-.ebuild | 13 - 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dev-lang/zig/zig-0.10.1-r2.ebuild b/dev-lang/zig/zig-0.10.1-r2.ebuild index fc06e3a6e545..6200470dec94 100644 --- a/dev-lang/zig/zig-0.10.1-r2.ebuild +++ b/dev-lang/zig/zig-0.10.1-r2.ebuild @@ -16,7 +16,18 @@ else KEYWORDS="~amd64 ~arm ~arm64" fi -LICENSE="MIT" +# project itself: MIT +# There are bunch of projects under "lib/" folder that are needed for cross-compilation. +# Files that are unnecessary for cross-compilation are removed by upstream +# and therefore their licenses (if any special) are not included. +# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain +# lib/libc/musl: MIT BSD-2 +# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND +# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ +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+" SLOT="$(ver_cut 1-2)" IUSE="doc" diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index 2fbe3863ef40..2346feadd70a 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -16,7 +16,18 @@ else KEYWORDS="~amd64 ~arm ~arm64" fi -LICENSE="MIT" +# project itself: MIT +# There are bunch of projects under "lib/" folder that are needed for cross-compilation. +# Files that are unnecessary for cross-compilation are removed by upstream +# and therefore their licenses (if any special) are not included. +# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain +# lib/libc/musl: MIT BSD-2 +# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND +# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ +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+" SLOT="$(ver_cut 1-2)" IUSE="doc"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 17236bf13b73ff1558fec245631e14f370fbe117
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Mon May 1 13:58:59 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat May 13 03:28:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17236bf1
dev-lang/zig: update testing process for
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/30616
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 2346feadd70a..dd8650c3aa2c 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -116,6 +116,7 @@ src_configure() {
-DZIG_USE_LLVM_CONFIG=ON
-DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/zig/${PV}"
+ -DZIG_NO_LANGREF="$(usex !doc ON OFF)"
)
cmake_src_configure
@@ -126,17 +127,25 @@ src_compile() {
if use doc; then
cd "${BUILD_DIR}" || die
- edo ./zig2 run ../doc/docgen.zig -- --zig ./zig2
../doc/langref.html.in "${S}/langref.html"
- edo ./zig2 test ../lib/std/std.zig --zig-lib-dir ../lib
-fno-emit-bin -femit-docs="${S}/std"
+ mv ./stage3/doc/langref.html "${S}" || die
+ edo ./stage3/bin/zig test ../lib/std/std.zig --zig-lib-dir
../lib -fno-emit-bin -femit-docs="${S}/std"
fi
}
src_test() {
cd "${BUILD_DIR}" || die
local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm
-Dskip-non-native \
- -Drelease -Dtarget=$(get_zig_target) -Dcpu=$(get_zig_mcpu)"
- # TBF zig2 -> stage3/bin/zig when (if)
https://github.com/ziglang/zig/pull/14255 will be merged
- edo ./zig2 build test ${ZIG_TEST_ARGS}
+ -Doptimize=ReleaseSafe -Dtarget=$(get_zig_target)
-Dcpu=$(get_zig_mcpu)"
+ local ZIG_TEST_STEPS=(
+ test-cases test-fmt test-behavior test-compiler-rt
test-universal-libc test-compare-output
+ test-standalone test-c-abi test-link test-stack-traces test-cli
test-asm-link test-translate-c
+ test-run-translated-c test-std
+ )
+
+ local step
+ for step in "${ZIG_TEST_STEPS[@]}" ; do
+ edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS}
+ done
}
src_install() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 03156f4e282b290c6323a2720f430fe037d4cdb6 Author: Eric Joldasov getgoogleoff me> AuthorDate: Fri Apr 7 04:08:58 2023 + Commit: Michał Górny gentoo org> CommitDate: Fri Apr 7 04:19:02 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03156f4e dev-lang/zig: update to LLVM 16 for Signed-off-by: Eric Joldasov getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/30508 Signed-off-by: Michał Górny gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index f0ac403fd612..2fbe3863ef40 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_MAX_SLOT=15 +LLVM_MAX_SLOT=16 inherit edo cmake llvm check-reqs toolchain-funcs DESCRIPTION="A robust, optimal, and maintainable programming language"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 67e28ad1e4320b9ecb7b4f1925cd328252bd2a65
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Mar 16 15:03:10 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Fri Mar 17 09:44:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67e28ad1
dev-lang/zig: drop 0.10.0-r1, 0.10.1
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/Manifest | 1 -
.../zig/files/zig-0.10.0-avoid-cmake-bug.patch | 63 -
dev-lang/zig/zig-0.10.0-r1.ebuild | 101 -
dev-lang/zig/zig-0.10.1.ebuild | 99
4 files changed, 264 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 22f469292044..529aa0c2bc35 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,2 +1 @@
-DIST zig-0.10.0.tar.xz 14530912 BLAKE2B
5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c
SHA512
9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682
DIST zig-0.10.1.tar.xz 15143112 BLAKE2B
4954d95ad763000eedf73a78e62bc0e99d65bba91c7127cdf1ea4503eb67817265daf572f645b7efbe9e24087e690b2768f0b2bc6c43b5fd76eab33143e964fe
SHA512
d443adf61556bc95470537c6b0371a0ac99d19a06b15635cf1e5055ae7849039680c9006105e06e1bd6ba0fc12da14c54c1d28ac597c7dee17ee3a5cd9cf79f8
diff --git a/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
b/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
deleted file mode 100644
index bfc8ac3fde7f..
--- a/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-https://github.com/ziglang/zig/commit/fe2bd9dda8467b775da4fe3bd535aece9e07ee1b
-Bug https://bugs.gentoo.org/886569
-
-From fe2bd9dda8467b775da4fe3bd535aece9e07ee1b Mon Sep 17 00:00:00 2001
-From: Eric Joldasov
-Date: Wed, 4 Jan 2023 01:04:48 +0600
-Subject: [PATCH] cmake: move 'continue' statement to avoid cmake bug
-
- cmake/Findllvm.cmake | 32 +++-
- 1 file changed, 11 insertions(+), 21 deletions(-)
-
-diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
-index 60a52056d8d..d8662034579 100644
a/cmake/Findllvm.cmake
-+++ b/cmake/Findllvm.cmake
-@@ -79,7 +79,11 @@ if(ZIG_USE_LLVM_CONFIG)
- OUTPUT_VARIABLE LLVM_TARGETS_BUILT_SPACES
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- string(REPLACE " " ";" LLVM_TARGETS_BUILT "${LLVM_TARGETS_BUILT_SPACES}")
--function(NEED_TARGET TARGET_NAME)
-+
-+set(ZIG_LLVM_REQUIRED_TARGETS
"AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore")
-+
-+set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED TRUE)
-+foreach(TARGET_NAME IN LISTS ZIG_LLVM_REQUIRED_TARGETS)
- list (FIND LLVM_TARGETS_BUILT "${TARGET_NAME}" _index)
- if (${_index} EQUAL -1)
- # Save the error message, in case this is the last llvm-config we find
-@@ -87,27 +91,13 @@ if(ZIG_USE_LLVM_CONFIG)
-
- # Ignore this directory and try the search again
- list(APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR}")
--continue()
-+set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED FALSE)
-+break()
- endif()
--endfunction(NEED_TARGET)
--NEED_TARGET("AArch64")
--NEED_TARGET("AMDGPU")
--NEED_TARGET("ARM")
--NEED_TARGET("AVR")
--NEED_TARGET("BPF")
--NEED_TARGET("Hexagon")
--NEED_TARGET("Lanai")
--NEED_TARGET("Mips")
--NEED_TARGET("MSP430")
--NEED_TARGET("NVPTX")
--NEED_TARGET("PowerPC")
--NEED_TARGET("RISCV")
--NEED_TARGET("Sparc")
--NEED_TARGET("SystemZ")
--NEED_TARGET("VE")
--NEED_TARGET("WebAssembly")
--NEED_TARGET("X86")
--NEED_TARGET("XCore")
-+endforeach()
-+if (NOT ZIG_LLVM_REQUIRED_TARGETS_ENABLED)
-+ continue()
-+endif()
-
- # Got it!
- break()
diff --git a/dev-lang/zig/zig-0.10.0-r1.ebuild
b/dev-lang/zig/zig-0.10.0-r1.ebuild
deleted file mode 100644
index 4d9a45ee5fb0..
--- a/dev-lang/zig/zig-0.10.0-r1.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 2019-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_MAX_SLOT=15
-inherit edo cmake llvm check-reqs
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
-if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
- inherit git-r3
-else
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
- KEYWORDS="~amd64 ~arm ~arm64"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-BUILD_DIR="${S}/build"
-
-# 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
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: e34c100d237fa204248e7a514651ab81cb9cd32c
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Mar 16 15:03:26 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Fri Mar 17 09:44:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34c100d
dev-lang/zig-bin: drop 0.10.0, 0.10.1
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/30150
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig-bin/Manifest | 5
dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 52 --
dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 52 --
3 files changed, 109 deletions(-)
diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 041d376db094..a7c177c3f4d6 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,10 +1,5 @@
-DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
SHA512
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
SHA512
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
-DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
SHA512
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
SHA512
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
-DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
SHA512
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
SHA512
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
-DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
SHA512
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B
a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c
SHA512
1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0
-DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
SHA512
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B
d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34
SHA512
1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc
diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
deleted file mode 100644
index 41c7ad1570e5..
--- a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
-SRC_URI="
- amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
- arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
- arm64? (
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
- riscv? (
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
- x86? ( https://ziglang.org/download/${PV}/zig-lin
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 5e8f76136eb2a9cdb9d50869ecabe88e669008dc
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Mar 9 14:06:59 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Fri Mar 10 07:00:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e8f7613
dev-lang/zig: adjust QA_FLAGS_IGNORED for new placements
Closes: https://bugs.gentoo.org/900543
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-0.10.1-r2.ebuild | 2 +-
dev-lang/zig/zig-.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.1-r2.ebuild
b/dev-lang/zig/zig-0.10.1-r2.ebuild
index 7c16e1d9761c..fc06e3a6e545 100644
--- a/dev-lang/zig/zig-0.10.1-r2.ebuild
+++ b/dev-lang/zig/zig-0.10.1-r2.ebuild
@@ -40,7 +40,7 @@ IDEPEND="app-eselect/eselect-zig"
# see https://github.com/ziglang/zig/issues/3382
# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/bin/zig"
+QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index c744d732215e..f0ac403fd612 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -41,7 +41,7 @@ IDEPEND="app-eselect/eselect-zig"
# see https://github.com/ziglang/zig/issues/3382
# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/bin/zig"
+QA_FLAGS_IGNORED="usr/.*/zig/${PV}/bin/zig"
# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
# Zig uses self-hosted compiler only
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 62c12329b91daf81370acaa9873cebeab8b7f289
Author: Florian Schmaus gentoo org>
AuthorDate: Thu Mar 9 17:55:36 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 17:55:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c12329
dev-lang/zig: sync live
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-.ebuild | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index b3846db59b81..c744d732215e 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -35,9 +35,10 @@ DEPEND="
RDEPEND="
${DEPEND}
- app-eselect/eselect-zig
"
+IDEPEND="app-eselect/eselect-zig"
+
# see https://github.com/ziglang/zig/issues/3382
# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
QA_FLAGS_IGNORED="usr/bin/zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/, dev-lang/zig/
commit: 7b5492a0d2e76edefce33a23b0f5c9e72a020f36
Author: Florian Schmaus gentoo org>
AuthorDate: Thu Mar 9 17:50:33 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 17:51:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b5492a0
dev-lang/zig(-bin): eselect-zig is an IDEPEND
Signed-off-by: Florian Schmaus gentoo.org>
.../zig-bin/{zig-bin-0.10.1-r1.ebuild => zig-bin-0.10.1-r2.ebuild} | 2 +-
dev-lang/zig/{zig-0.10.1-r1.ebuild => zig-0.10.1-r2.ebuild}| 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
similarity index 98%
rename from dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
rename to dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
index 30514b6b713a..745201699674 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
@@ -17,7 +17,7 @@ SLOT="$(ver_cut 1-2)"
KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="doc"
-RDEPEND="app-eselect/eselect-zig"
+IDEPEND="app-eselect/eselect-zig"
# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
# and all other Zig libraries are meant to be consumed in source form,
# because they can use compile-time mechanics (and it is easier for
distributions to patch them)
diff --git a/dev-lang/zig/zig-0.10.1-r1.ebuild
b/dev-lang/zig/zig-0.10.1-r2.ebuild
similarity index 99%
rename from dev-lang/zig/zig-0.10.1-r1.ebuild
rename to dev-lang/zig/zig-0.10.1-r2.ebuild
index d92a0e709dda..7c16e1d9761c 100644
--- a/dev-lang/zig/zig-0.10.1-r1.ebuild
+++ b/dev-lang/zig/zig-0.10.1-r2.ebuild
@@ -34,9 +34,10 @@ DEPEND="
RDEPEND="
${DEPEND}
- app-eselect/eselect-zig
"
+IDEPEND="app-eselect/eselect-zig"
+
# see https://github.com/ziglang/zig/issues/3382
# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
QA_FLAGS_IGNORED="usr/bin/zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: e2bc05c42635e53cc3f98b344b81cf50b0cc6e88
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Jan 25 04:52:56 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 10:53:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2bc05c4
dev-lang/zig-bin: slotting
* Slot Zig and handle /usr/bin/zig via eselect-zig
* Add "doc" USE flag for installing language reference and stdlib
documentation
Followup to previous commit 6ea1afff4a2aa9c753eb154e51decb2b5996b029.
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild | 56 +++
1 file changed, 56 insertions(+)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
new file mode 100644
index ..81c98e238a76
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+SRC_URI="
+ amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+ arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
+ arm64? (
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+ riscv? (
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+ x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="doc"
+
+RDEPEND="app-eselect/eselect-zig"
+# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
+# and all other Zig libraries are meant to be consumed in source form,
+# because they can use compile-time mechanics (and it is easier for
distributions to patch them)
+# Here we use this feature for fixing programs that use standard library
+# Note: Zig build system is also part of standard library, so we can fix it too
+#PATCHES=( )
+
+QA_PREBUILT="opt/${P}/zig"
+
+src_unpack() {
+ unpack ${A}
+
+ mv "${WORKDIR}/"* "${S}" || die
+}
+
+src_install() {
+ insinto /opt/
+
+ use doc && local HTML_DOCS=( "doc/langref.html" "doc/std/" )
+ einstalldocs
+ rm -r ./doc/ || die
+
+ doins -r "${S}"
+ fperms 0755 "/opt/${P}/zig"
+ dosym -r "/opt/${P}/zig" "/usr/bin/zig-bin-${PV}"
+}
+
+pkg_postinst() {
+ elog "0.10.1 release uses self-hosted compiler by default and fixes
some bugs from 0.10.0"
+ elog "But your code still can be un-compilable since some features
still not implemented or bugs not fixed"
+ elog "Upstream recommends:"
+ elog " * Using old compiler if experiencing such breakage (flag
'-fstage1')"
+ elog " * Waiting for release 0.11.0 with old compiler removed (these
changes are already merged in )"
+ elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
+ elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
+}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: f3ea1cde63c36f09e5ed98f763beb89aec062ff5
Author: Florian Schmaus gentoo org>
AuthorDate: Thu Mar 9 10:47:44 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 10:53:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3ea1cde
dev-lang/zig: ensure 'zig' symlink is valid if possible
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-0.10.1-r1.ebuild | 6 ++
dev-lang/zig/zig-.ebuild | 8
2 files changed, 14 insertions(+)
diff --git a/dev-lang/zig/zig-0.10.1-r1.ebuild
b/dev-lang/zig/zig-0.10.1-r1.ebuild
index cb8839ac166d..d92a0e709dda 100644
--- a/dev-lang/zig/zig-0.10.1-r1.ebuild
+++ b/dev-lang/zig/zig-0.10.1-r1.ebuild
@@ -155,6 +155,8 @@ src_install() {
}
pkg_postinst() {
+ eselect zig update ifunset
+
elog "0.10.1 release uses self-hosted compiler by default and fixes
some bugs from 0.10.0"
elog "But your code still can be un-compilable since some features
still not implemented or bugs not fixed"
elog "Upstream recommends:"
@@ -163,3 +165,7 @@ pkg_postinst() {
elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
}
+
+pkg_postrm() {
+ eselect zig update ifunset
+}
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 17f5c3e65408..b3846db59b81 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -137,3 +137,11 @@ src_install() {
mv lib2/ lib/ || die
dosym -r "/usr/$(get_libdir)/zig/${PV}/bin/zig" "/usr/bin/zig-${PV}"
}
+
+pkg_postinst() {
+ eselect zig update ifunset
+}
+
+pkg_postrm() {
+ eselect zig update ifunset
+}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 8fadfe488122a31156de1ea0118a4f9e7d7943f7
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Mon Jan 23 04:09:15 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 10:53:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fadfe48
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 getgoogleoff.me>
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig/zig-0.10.1-r1.ebuild | 165 ++
dev-lang/zig/zig-.ebuild | 82 +--
2 files changed, 241 insertions(+), 6 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.1-r1.ebuild
b/dev-lang/zig/zig-0.10.1-r1.ebuild
new file mode 100644
index ..2325724c6f9e
--- /dev/null
+++ b/dev-lang/zig/zig-0.10.1-r1.ebuild
@@ -0,0 +1,165 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=15
+inherit edo cmake llvm check-reqs toolchain-funcs
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+IUSE="doc"
+
+BUILD_DIR="${S}/build"
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "static" ofc).
+DEPEND="
+ sys-devel/clang:${LLVM_MAX_SLOT}=
+ sys-devel/lld:${LLVM_MAX_SLOT}=
+ sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
+"
+
+RDEPEND="
+ ${DEPEND}
+ app-eselect/eselect-zig
+"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/zig"
+
+# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
+# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
+# (transpiled to C via C backend) for bootstrapping
+CHECKREQS_MEMORY="10G"
+
+PATCHES=(
+ "${FILESDIR}/zig-0.10.0-build-dir-install-stage3.patch"
+)
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
+ctarget_to_zigtarget() {
+ # Zig's Target Format: arch-os-abi
+ local CTARGET="${CTARGET:-${CHOST}}"
+
+ local ZIG_ARCH
+ case "${CTARGET%%-*}" in
+ i?86) ZIG_ARCH=x86;;
+ sparcv9)ZIG_ARCH=sparc64;;
+ *) ZIG_ARCH="${CTARGET%%-*}";; # Same as in CHOST
+ esac
+
+ local ZIG_OS
+ case "${CTARGET}" in
+ *linux*)ZIG_OS=linux;;
+ *apple*)ZIG_OS=macos;;
+ esac
+
+ local ZIG_ABI
+ case "${CTARGET##*-}" in
+ gnu)ZIG_ABI=gnu;;
+ solaris*) ZIG_OS=solaris ZIG_ABI=none;;
+ darwin*)ZIG_ABI=none;;
+ *) ZIG_ABI="${CTARGET##*-}";; # Same as in CHOST
+ esac
+
+ echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
+}
+
+get_zig_mcpu() {
+ local ZIG_DEFAULT_MCPU=native
+ tc-is-cross-compiler && ZIG_DEFAULT_MCPU=baseline
+ echo "${ZIG_MCPU:-${ZIG_DEFAULT_MCPU}}"
+}
+
+get_zig_target() {
+ local ZIG_DEFAULT_TARGET=native
+ tc-is-cross-compiler && ZIG_DEFAULT_TARGET="$(ctarget_to_zigtarget)"
+ echo "${ZIG_TARGET:-${ZIG_DEFAULT_TARGET}}"
+}
+
+pkg_setup() {
+ llvm_pkg_setup
+ ewarn "This version requires 10G of memory for building compiler."
+ ewarn "If you don't have enough memory, you can wait until 0.11.0
release"
+ ewarn "or (if you are risky) use version (currently requires only
4GB)"
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DZIG_USE_CCACHE=OFF
+ -DZIG_SHARED_LLVM=ON
+ -DZIG_TARGET_TRIPLE="$(get_zig_target)"
+ -DZIG_TARGET_MCPU="$(get_zig_mcpu)"
+ -DZIG_USE_LLVM_CONFIG=ON
+ -DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+ -DCMAKE_INS
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 765823f832c01d4332d40e59d32b626cb40985a6
Author: Florian Schmaus gentoo org>
AuthorDate: Thu Mar 9 10:46:24 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 10:53:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=765823f8
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 gentoo.org>
dev-lang/zig/zig-0.10.1-r1.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.1-r1.ebuild
b/dev-lang/zig/zig-0.10.1-r1.ebuild
index 2325724c6f9e..cb8839ac166d 100644
--- a/dev-lang/zig/zig-0.10.1-r1.ebuild
+++ b/dev-lang/zig/zig-0.10.1-r1.ebuild
@@ -97,9 +97,9 @@ get_zig_target() {
pkg_setup() {
llvm_pkg_setup
- ewarn "This version requires 10G of memory for building compiler."
- ewarn "If you don't have enough memory, you can wait until 0.11.0
release"
- ewarn "or (if you are risky) use version (currently requires only
4GB)"
+ elog "This version requires 10G of memory for building compiler."
+ elog "If you don't have enough memory, you can wait until 0.11.0
release"
+ elog "or (if you are risky) use version (currently requires only
4GB)"
check-reqs_pkg_setup
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: c84c3e24f35da1e43bedf798dc3f5ea7e6215d93
Author: Florian Schmaus gentoo org>
AuthorDate: Thu Mar 9 10:48:44 2023 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Mar 9 10:53:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84c3e24
dev-lang/zig-bin: ensure 'zig' symlink is valid if possible
Signed-off-by: Florian Schmaus gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild | 6 ++
1 file changed, 6 insertions(+)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
index 81c98e238a76..30514b6b713a 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
@@ -46,6 +46,8 @@ src_install() {
}
pkg_postinst() {
+ eselect zig update ifunset
+
elog "0.10.1 release uses self-hosted compiler by default and fixes
some bugs from 0.10.0"
elog "But your code still can be un-compilable since some features
still not implemented or bugs not fixed"
elog "Upstream recommends:"
@@ -54,3 +56,7 @@ pkg_postinst() {
elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
}
+
+pkg_postrm() {
+ eselect zig update ifunset
+}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 934f9bb0ec0eeb02aad6e0b0986f24b5a2f92d69
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Jan 20 03:40:36 2023 +
Commit: Sam James gentoo org>
CommitDate: Fri Jan 20 03:54:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934f9bb0
dev-lang/zig-bin: add missing "die"
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 4 ++--
dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
index 45c577eadde5..41c7ad1570e5 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -29,7 +29,7 @@ QA_PREBUILT="opt/${P}/zig"
src_unpack() {
unpack ${A}
- mv "${WORKDIR}/"* "${S}"
+ mv "${WORKDIR}/"* "${S}" || die
}
src_install() {
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
index 4a42bdced649..7c9d05764a48 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
@@ -29,7 +29,7 @@ QA_PREBUILT="opt/${P}/zig"
src_unpack() {
unpack ${A}
- mv "${WORKDIR}/"* "${S}"
+ mv "${WORKDIR}/"* "${S}" || die
}
src_install() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: ad227223cb9511c2f563d95aa06558fddfbe728c
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Jan 20 03:46:47 2023 +
Commit: Sam James gentoo org>
CommitDate: Fri Jan 20 03:54:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad227223
dev-lang/zig: drop 0.10.0-r2
It shouldn't be here.
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/29182
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.10.0-r2.ebuild | 134 --
1 file changed, 134 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.0-r2.ebuild
b/dev-lang/zig/zig-0.10.0-r2.ebuild
deleted file mode 100644
index f3d9e009df5a..
--- a/dev-lang/zig/zig-0.10.0-r2.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2019-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_MAX_SLOT=15
-inherit edo cmake llvm check-reqs toolchain-funcs
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/";
-if [[ ${PV} == ]]; then
- EGIT_REPO_URI="https://github.com/ziglang/zig.git";
- inherit git-r3
-else
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
- KEYWORDS="~amd64 ~arm ~arm64"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-BUILD_DIR="${S}/build"
-
-# 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 here.
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see
-# options that are passed to LLVM CMake building (excluding "static" ofc).
-DEPEND="
- sys-devel/clang:${LLVM_MAX_SLOT}=
- sys-devel/lld:${LLVM_MAX_SLOT}=
- sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
-"
-
-RDEPEND="
- ${DEPEND}
- !dev-lang/zig-bin
-"
-
-# see https://github.com/ziglang/zig/issues/3382
-# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/bin/zig"
-
-# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
-# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
-# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
-# (transpiled to C via C backend) for bootstrapping
-CHECKREQS_MEMORY="10G"
-
-PATCHES=(
- "${FILESDIR}/${P}-avoid-cmake-bug.patch"
- "${FILESDIR}/${P}-build-dir-install-stage3.patch"
-)
-
-llvm_check_deps() {
- has_version "sys-devel/clang:${LLVM_SLOT}"
-}
-
-ctarget_to_zigtarget() {
- #Zig's Target Format: arch-os-abi
- local CTARGET="${CTARGET:-${CHOST}}"
-
- local ZIG_ARCH
- case "${CTARGET%%-*}" in
- i?86) ZIG_ARCH=x86;;
- sparcv9)ZIG_ARCH=sparc64;;
- *) ZIG_ARCH=${CTARGET%%-*};; # Same as in CHOST
- esac
-
- local ZIG_OS
- case "${CTARGET}" in
- *linux*)ZIG_OS=linux;;
- *apple*)ZIG_OS=macos;;
- esac
-
- local ZIG_ABI
- case "${CTARGET##*-}" in
- gnu)ZIG_ABI="gnu.2.34";;
- solaris*) ZIG_OS=solaris ZIG_ABI=none;;
- darwin*)ZIG_ABI=none;;
- *) ZIG_ABI=${CTARGET##*-};; # Same as in CHOST
- esac
-
- echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
-}
-
-pkg_setup() {
- llvm_pkg_setup
- ewarn "This version requires 10G of memory for building compiler."
- ewarn "If you don't have enough memory, you can wait until 0.11.0
release"
- ewarn "or (if you are risky) use version (currently requires only
4GB)"
- check-reqs_pkg_setup
-}
-
-src_configure() {
- local ZIG_MCPU=native
- tc-is-cross-compiler && ZIG_MCPU=baseline
- local mycmakeargs=(
- -DZIG_USE_CCACHE=OFF
- -DZIG_SHARED_LLVM=ON
- -DZIG_TARGET_TRIPLE=$(ctarget_to_zigtarget)
- -DZIG_TARGET_CPU=${ZIG_MCPU}
- -DZIG_USE_LLVM_CONFIG=ON
- -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})
- )
-
- cmake_src_configure
-}
-
-src_test() {
- cd "${BUILD_DIR}" || die
- local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true -Drelease -Dtarget=native"
- local ZIG_TEST_STEPS=(
- test-cases test-fmt test-behavior test-compiler-rt
test-universal-libc test-compare-output
- test-standalone test-c-abi test-link test-stack-traces test-cli
test-asm-link test-translate-c
- test-run-translated-c test-std
- )
-
- local step
- for step in "${ZIG_TEST_STEPS[@]}" ; do
- edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS}
- done
-}
-
-pkg_postinst() {
- elog "0.10.0 release introduces self-hosted compi
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 1507d26e8c4f80483bc55fbd5a9bdce843634c10
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Jan 19 15:27:31 2023 +
Commit: Sam James gentoo org>
CommitDate: Fri Jan 20 01:15:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1507d26e
dev-lang/zig: add 0.10.1
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 1 +
dev-lang/zig/zig-0.10.0-r2.ebuild | 134 ++
dev-lang/zig/zig-0.10.1.ebuild| 99
3 files changed, 234 insertions(+)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 297043a711ac..22f469292044 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1 +1,2 @@
DIST zig-0.10.0.tar.xz 14530912 BLAKE2B
5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c
SHA512
9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682
+DIST zig-0.10.1.tar.xz 15143112 BLAKE2B
4954d95ad763000eedf73a78e62bc0e99d65bba91c7127cdf1ea4503eb67817265daf572f645b7efbe9e24087e690b2768f0b2bc6c43b5fd76eab33143e964fe
SHA512
d443adf61556bc95470537c6b0371a0ac99d19a06b15635cf1e5055ae7849039680c9006105e06e1bd6ba0fc12da14c54c1d28ac597c7dee17ee3a5cd9cf79f8
diff --git a/dev-lang/zig/zig-0.10.0-r2.ebuild
b/dev-lang/zig/zig-0.10.0-r2.ebuild
new file mode 100644
index ..f3d9e009df5a
--- /dev/null
+++ b/dev-lang/zig/zig-0.10.0-r2.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=15
+inherit edo cmake llvm check-reqs toolchain-funcs
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+if [[ ${PV} == ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git";
+ inherit git-r3
+else
+ SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz";
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+BUILD_DIR="${S}/build"
+
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "static" ofc).
+DEPEND="
+ sys-devel/clang:${LLVM_MAX_SLOT}=
+ sys-devel/lld:${LLVM_MAX_SLOT}=
+ sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
+"
+
+RDEPEND="
+ ${DEPEND}
+ !dev-lang/zig-bin
+"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/zig"
+
+# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
+# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
+# (transpiled to C via C backend) for bootstrapping
+CHECKREQS_MEMORY="10G"
+
+PATCHES=(
+ "${FILESDIR}/${P}-avoid-cmake-bug.patch"
+ "${FILESDIR}/${P}-build-dir-install-stage3.patch"
+)
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
+ctarget_to_zigtarget() {
+ #Zig's Target Format: arch-os-abi
+ local CTARGET="${CTARGET:-${CHOST}}"
+
+ local ZIG_ARCH
+ case "${CTARGET%%-*}" in
+ i?86) ZIG_ARCH=x86;;
+ sparcv9)ZIG_ARCH=sparc64;;
+ *) ZIG_ARCH=${CTARGET%%-*};; # Same as in CHOST
+ esac
+
+ local ZIG_OS
+ case "${CTARGET}" in
+ *linux*)ZIG_OS=linux;;
+ *apple*)ZIG_OS=macos;;
+ esac
+
+ local ZIG_ABI
+ case "${CTARGET##*-}" in
+ gnu)ZIG_ABI="gnu.2.34";;
+ solaris*) ZIG_OS=solaris ZIG_ABI=none;;
+ darwin*)ZIG_ABI=none;;
+ *) ZIG_ABI=${CTARGET##*-};; # Same as in CHOST
+ esac
+
+ echo "${ZIG_ARCH}-${ZIG_OS}-${ZIG_ABI}"
+}
+
+pkg_setup() {
+ llvm_pkg_setup
+ ewarn "This version requires 10G of memory for building compiler."
+ ewarn "If you don't have enough memory, you can wait until 0.11.0
release"
+ ewarn "or (if you are risky) use version (currently requires only
4GB)"
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ local ZIG_MCPU=native
+ tc-is-cross-compiler && ZIG_MCPU=baseline
+ local mycmakeargs=(
+ -DZIG_USE_CCACHE=OFF
+ -DZIG_SHARED_LLVM=ON
+ -DZIG_TARGET_TRIPLE=$(ctarget_to_zigtarget)
+ -DZIG_TARGET_CPU=${ZIG_MCPU}
+ -DZIG_USE_LLVM_CONFIG=ON
+
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 320abc12152c02258b6f22b67a3b75b90b8d3c08
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Jan 19 15:24:41 2023 +
Commit: Sam James gentoo org>
CommitDate: Fri Jan 20 01:15:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320abc12
dev-lang/zig-bin: add 0.10.1
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/Manifest | 5
dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 52 ++
2 files changed, 57 insertions(+)
diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 66658fc5412e..041d376db094 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,5 +1,10 @@
DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
SHA512
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
+DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
SHA512
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
SHA512
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
+DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
SHA512
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
SHA512
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
+DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
SHA512
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
SHA512
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
+DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B
a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c
SHA512
1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0
DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
SHA512
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
+DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B
d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34
SHA512
1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc
diff --git a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
new file mode 100644
index ..4a42bdced649
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+SRC_URI="
+ amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+ arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
+ arm64? (
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+ riscv? (
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+ x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="!dev-lang/zig"
+# Zig provides its standard libr
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: e27d250289fea5fed738efbc2f64b5e6e5a86386
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Jan 13 11:57:44 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat Jan 14 19:14:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e27d2502
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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/29090
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.10.0-r1.ebuild | 29 -
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.0-r1.ebuild
b/dev-lang/zig/zig-0.10.0-r1.ebuild
index f47f22799167..4d9a45ee5fb0 100644
--- a/dev-lang/zig/zig-0.10.0-r1.ebuild
+++ b/dev-lang/zig/zig-0.10.0-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
LLVM_MAX_SLOT=15
-inherit cmake llvm check-reqs
+inherit edo cmake llvm check-reqs
DESCRIPTION="A robust, optimal, and maintainable programming language"
HOMEPAGE="https://ziglang.org/";
@@ -76,22 +76,17 @@ src_configure() {
src_test() {
cd "${BUILD_DIR}" || die
- local ZIG_TESTARGS=("-Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true -Drelease -Dtarget=native")
- ./stage3/bin/zig build test-cases ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-fmt ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-behavior ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-compiler-rt ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-universal-libc ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-compare-output ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-standalone ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-c-abi ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-link ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-stack-traces ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-cli ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-asm-link ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-translate-c ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-run-translated-c ${ZIG_TESTARGS[@]} || die
- ./stage3/bin/zig build test-std ${ZIG_TESTARGS[@]} || die
+ local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true -Drelease -Dtarget=native"
+ local ZIG_TEST_STEPS=(
+ test-cases test-fmt test-behavior test-compiler-rt
test-universal-libc test-compare-output
+ test-standalone test-c-abi test-link test-stack-traces test-cli
test-asm-link test-translate-c
+ test-run-translated-c test-std
+ )
+
+ local step
+ for step in "${ZIG_TEST_STEPS[@]}" ; do
+ edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS}
+ done
}
pkg_postinst() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig/
commit: 766ffdacc8e269ad975a010bb9124024e7272fd7
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Fri Jan 13 11:47:46 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat Jan 14 19:14:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766ffdac
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 getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
.../zig-0.10.0-build-dir-install-stage3.patch | 24 +-
.../{zig-0.10.0.ebuild => zig-0.10.0-r1.ebuild}| 0
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
b/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
index c44632f5111e..5704e4ba7921 100644
--- a/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
+++ b/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
@@ -1,18 +1,32 @@
From: Eric Joldasov
Install 'zig' binary in 'build_dir/stage3' directory so that we can find it
and use for testing.
+Also split "add_custom_target(stage3 ALL" and command that it invokes, so that
it won't retry it during installation,
+as target will be considered not out-of-date. (Bug
https://bugs.gentoo.org/890457 and https://bugs.gentoo.org/890459).
Upstream PR https://github.com/ziglang/zig/pull/14255.
+
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -1094,7 +1094,7 @@ set(ZIG_BUILD_ARGS
+@@ -1094,10 +1094,14 @@ set(ZIG_BUILD_ARGS
)
add_custom_target(stage3 ALL
-COMMAND zig2 build compile ${ZIG_BUILD_ARGS}
-+COMMAND zig2 build --prefix "${CMAKE_BINARY_DIR}/stage3" ${ZIG_BUILD_ARGS}
- DEPENDS zig2
- COMMENT STATUS "Building stage3"
- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
+-DEPENDS zig2
+-COMMENT STATUS "Building stage3"
+-WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
++ DEPENDS "${CMAKE_BINARY_DIR}/stage3/bin/zig"
++)
++
++add_custom_command(
++ OUTPUT "${CMAKE_BINARY_DIR}/stage3/bin/zig"
++ COMMAND zig2 build --prefix "${CMAKE_BINARY_DIR}/stage3" ${ZIG_BUILD_ARGS}
++ COMMENT STATUS "Building stage3"
++ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
+ )
+
+ install(CODE "set(ZIG_EXECUTABLE \"${ZIG_EXECUTABLE}\")")
+
--- a/build.zig
+++ b/build.zig
@@ -148,10 +148,6 @@ pub fn build(b: *Builder) !void {
diff --git a/dev-lang/zig/zig-0.10.0.ebuild b/dev-lang/zig/zig-0.10.0-r1.ebuild
similarity index 100%
rename from dev-lang/zig/zig-0.10.0.ebuild
rename to dev-lang/zig/zig-0.10.0-r1.ebuild
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 28fcae31f91eb30b62c8d55b39207238d377f0c2
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Jan 4 11:44:25 2023 +
Commit: Sam James gentoo org>
CommitDate: Wed Jan 11 06:04:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28fcae31
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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/29059
Signed-off-by: Sam James gentoo.org>
.../zig-0.10.0-build-dir-install-stage3.patch | 28 ++
dev-lang/zig/zig-0.10.0.ebuild | 18 +-
2 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
b/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
new file mode 100644
index ..c44632f5111e
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.10.0-build-dir-install-stage3.patch
@@ -0,0 +1,28 @@
+From: Eric Joldasov
+
+Install 'zig' binary in 'build_dir/stage3' directory so that we can find it
and use for testing.
+Upstream PR https://github.com/ziglang/zig/pull/14255.
+--- a/CMakeLists.txt
b/CMakeLists.txt
+@@ -1094,7 +1094,7 @@ set(ZIG_BUILD_ARGS
+ )
+
+ add_custom_target(stage3 ALL
+-COMMAND zig2 build compile ${ZIG_BUILD_ARGS}
++COMMAND zig2 build --prefix "${CMAKE_BINARY_DIR}/stage3" ${ZIG_BUILD_ARGS}
+ DEPENDS zig2
+ COMMENT STATUS "Building stage3"
+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
+--- a/build.zig
b/build.zig
+@@ -148,10 +148,6 @@ pub fn build(b: *Builder) !void {
+ };
+
+ const exe = b.addExecutable("zig", main_file);
+-
+-const compile_step = b.step("compile", "Build the self-hosted compiler");
+-compile_step.dependOn(&exe.step);
+-
+ exe.stack_size = stack_size;
+ exe.strip = strip;
+ exe.sanitize_thread = sanitize_thread;
diff --git a/dev-lang/zig/zig-0.10.0.ebuild b/dev-lang/zig/zig-0.10.0.ebuild
index fbc2bd7aee94..f47f22799167 100644
--- a/dev-lang/zig/zig-0.10.0.ebuild
+++ b/dev-lang/zig/zig-0.10.0.ebuild
@@ -49,6 +49,7 @@ CHECKREQS_MEMORY="10G"
PATCHES=(
"${FILESDIR}/${P}-avoid-cmake-bug.patch"
+ "${FILESDIR}/${P}-build-dir-install-stage3.patch"
)
llvm_check_deps() {
@@ -75,7 +76,22 @@ src_configure() {
src_test() {
cd "${BUILD_DIR}" || die
- ./zig2 build test -Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true || die
+ local ZIG_TESTARGS=("-Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true -Drelease -Dtarget=native")
+ ./stage3/bin/zig build test-cases ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-fmt ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-behavior ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-compiler-rt ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-universal-libc ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-compare-output ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-standalone ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-c-abi ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-link ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-stack-traces ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-cli ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-asm-link ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-translate-c ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-run-translated-c ${ZIG_TESTARGS[@]} || die
+ ./stage3/bin/zig build test-std ${ZIG_TESTARGS[@]} || die
}
pkg_postinst() {
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: 7bcf6e440e99f0d38f27011186ff98a5abe9cdc0
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Sat Jan 7 11:24:21 2023 +
Commit: Sam James gentoo org>
CommitDate: Sun Jan 8 03:24:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bcf6e44
dev-lang/zig: add patch from upstream for 0.10.0
Closes: https://bugs.gentoo.org/886569
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28997
Signed-off-by: Sam James gentoo.org>
.../zig/files/zig-0.10.0-avoid-cmake-bug.patch | 63 ++
dev-lang/zig/zig-0.10.0.ebuild | 6 ++-
2 files changed, 68 insertions(+), 1 deletion(-)
diff --git a/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
b/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
new file mode 100644
index ..bfc8ac3fde7f
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch
@@ -0,0 +1,63 @@
+https://github.com/ziglang/zig/commit/fe2bd9dda8467b775da4fe3bd535aece9e07ee1b
+Bug https://bugs.gentoo.org/886569
+
+From fe2bd9dda8467b775da4fe3bd535aece9e07ee1b Mon Sep 17 00:00:00 2001
+From: Eric Joldasov
+Date: Wed, 4 Jan 2023 01:04:48 +0600
+Subject: [PATCH] cmake: move 'continue' statement to avoid cmake bug
+
+---
+ cmake/Findllvm.cmake | 32 +++-
+ 1 file changed, 11 insertions(+), 21 deletions(-)
+
+diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
+index 60a52056d8d..d8662034579 100644
+--- a/cmake/Findllvm.cmake
b/cmake/Findllvm.cmake
+@@ -79,7 +79,11 @@ if(ZIG_USE_LLVM_CONFIG)
+ OUTPUT_VARIABLE LLVM_TARGETS_BUILT_SPACES
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ string(REPLACE " " ";" LLVM_TARGETS_BUILT "${LLVM_TARGETS_BUILT_SPACES}")
+-function(NEED_TARGET TARGET_NAME)
++
++set(ZIG_LLVM_REQUIRED_TARGETS
"AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore")
++
++set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED TRUE)
++foreach(TARGET_NAME IN LISTS ZIG_LLVM_REQUIRED_TARGETS)
+ list (FIND LLVM_TARGETS_BUILT "${TARGET_NAME}" _index)
+ if (${_index} EQUAL -1)
+ # Save the error message, in case this is the last llvm-config we find
+@@ -87,27 +91,13 @@ if(ZIG_USE_LLVM_CONFIG)
+
+ # Ignore this directory and try the search again
+ list(APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR}")
+-continue()
++set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED FALSE)
++break()
+ endif()
+-endfunction(NEED_TARGET)
+-NEED_TARGET("AArch64")
+-NEED_TARGET("AMDGPU")
+-NEED_TARGET("ARM")
+-NEED_TARGET("AVR")
+-NEED_TARGET("BPF")
+-NEED_TARGET("Hexagon")
+-NEED_TARGET("Lanai")
+-NEED_TARGET("Mips")
+-NEED_TARGET("MSP430")
+-NEED_TARGET("NVPTX")
+-NEED_TARGET("PowerPC")
+-NEED_TARGET("RISCV")
+-NEED_TARGET("Sparc")
+-NEED_TARGET("SystemZ")
+-NEED_TARGET("VE")
+-NEED_TARGET("WebAssembly")
+-NEED_TARGET("X86")
+-NEED_TARGET("XCore")
++endforeach()
++if (NOT ZIG_LLVM_REQUIRED_TARGETS_ENABLED)
++ continue()
++endif()
+
+ # Got it!
+ break()
diff --git a/dev-lang/zig/zig-0.10.0.ebuild b/dev-lang/zig/zig-0.10.0.ebuild
index c4a1219ddb22..fbc2bd7aee94 100644
--- a/dev-lang/zig/zig-0.10.0.ebuild
+++ b/dev-lang/zig/zig-0.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2022 Gentoo Authors
+# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,6 +47,10 @@ QA_FLAGS_IGNORED="usr/bin/zig"
# (transpiled to C via C backend) for bootstrapping
CHECKREQS_MEMORY="10G"
+PATCHES=(
+ "${FILESDIR}/${P}-avoid-cmake-bug.patch"
+)
+
llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
}
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 71cc785aae8ce2453258188b87e307ca42906d32
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Dec 7 01:59:30 2022 +
Commit: Sam James gentoo org>
CommitDate: Wed Dec 14 09:19:10 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71cc785a
dev-lang/zig: relax memory requirements for
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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28581
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.10.0.ebuild | 13 +
dev-lang/zig/zig-.ebuild | 11 +--
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.0.ebuild b/dev-lang/zig/zig-0.10.0.ebuild
index 0ab54280a9ba..c4a1219ddb22 100644
--- a/dev-lang/zig/zig-0.10.0.ebuild
+++ b/dev-lang/zig/zig-0.10.0.ebuild
@@ -21,7 +21,8 @@ SLOT="0"
BUILD_DIR="${S}/build"
-# Zig requires zstd and zlib compression support in LLVM, if using LLVM
backend (non-LLVM backends don't require these).
+# 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 here.
# You can check https://github.com/ziglang/zig-bootstrap in future, to see
# options that are passed to LLVM CMake building (excluding "static" ofc).
@@ -52,6 +53,9 @@ llvm_check_deps() {
pkg_setup() {
llvm_pkg_setup
+ ewarn "This version requires 10G of memory for building compiler."
+ ewarn "If you don't have enough memory, you can wait until 0.11.0
release"
+ ewarn "or (if you are risky) use version (currently requires only
4GB)"
check-reqs_pkg_setup
}
@@ -73,9 +77,10 @@ src_test() {
pkg_postinst() {
elog "0.10.0 release introduces self-hosted compiler for general use by
default"
elog "It means that your code can be un-compilable since this compiler
has some new or removed features and new or fixed bugs"
- elog "Upstream recommends using stage1 if experiencing such breakage,"
- elog "until bugfix release 0.10.1 or release 0.11.0 where old compiler
will be fully replaced"
- elog "You can use old compiler by using '-fstage1' flag"
+ elog "Upstream recommends:"
+ elog " * Using old compiler if experiencing such breakage (flag
'-fstage1')"
+ elog " * Waiting for bugfix release 0.10.1"
+ elog " * Waiting for release 0.11.0 with old compiler removed (these
changes are already merged in )"
elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
}
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index a19a2873f8cd..04794281b8d8 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -21,7 +21,8 @@ SLOT="0"
BUILD_DIR="${S}/build"
-# Zig requires zstd and zlib compression support in LLVM, if using LLVM
backend (non-LLVM backends don't require these).
+# 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 here.
# You can check https://github.com/ziglang/zig-bootstrap in future, to see
# options that are passed to LLVM CMake building (excluding "static" ofc).
@@ -39,11 +40,9 @@ RDEPEND="
# see https://github.com/ziglang/zig/issues/3382
QA_FLAGS_IGNORED="usr/bin/zig"
-# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
-# 0.10.0 release - 9.6 GiB, since we use compiler written in C++ for
bootstrapping
-# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
-# (transpiled to C via C backend) for bootstrapping
-CHECKREQS_MEMORY="10G"
+# Since commit
https://github.com/ziglang/zig/commit/e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
+# Zig uses self-hosted compiler only
+CHECKREQS_MEMORY="4G"
llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: f49f0e28babffcf0878268d01324397309682fd6
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Thu Dec 1 12:43:21 2022 +
Commit: Michał Górny gentoo org>
CommitDate: Thu Dec 1 13:57:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f49f0e28
dev-lang/zig: drop 0.9.1-r3
Closes: https://bugs.gentoo.org/876181
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28492
Signed-off-by: Michał Górny gentoo.org>
dev-lang/zig/Manifest | 2 -
.../zig-0.9.1-fix-bad-hostname-segfault.patch | 26
dev-lang/zig/files/zig-0.9.1-fix-clang16.patch | 23 ---
dev-lang/zig/files/zig-0.9.1-fix-riscv.patch | 47 --
.../zig/files/zig-0.9.1-fix-single-threaded.patch | 13
dev-lang/zig/zig-0.9.1-r3.ebuild | 72 --
6 files changed, 183 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index fd2ecb470579..297043a711ac 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,3 +1 @@
DIST zig-0.10.0.tar.xz 14530912 BLAKE2B
5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c
SHA512
9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682
-DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
SHA512
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
-DIST zig-0.9.1.tar.xz 13940828 BLAKE2B
996b0e945f61b01dddbb7c8674a9e2d2d01b93eb48fdfd2c986496330990ffa64cba15f8bd8518b90ef6f514759ba6cc3fd31d6044c5b11b92bf92e3f7f15303
SHA512
0b8a5f9b7e34e4252536f59bc91429f1e76b2bf8e01f024095919f6ecf34db56b5c86c554fbb94bdcb5255394c87f2c87519c8f34c631f53816927ec0882ae2d
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch
b/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch
deleted file mode 100644
index 2e87ecc6d6ee..
--- a/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8
-Bug https://bugs.gentoo.org/829959
-
-From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001
-From: Veikka Touminen
-Date: Sun, 10 Jul 2022 04:27:23 -0600
-Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname
-
-Fixes #12065
- lib/std/net.zig | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/std/net.zig b/lib/std/net.zig
-index 235ad8496a1..c381df9bce7 100644
a/lib/std/net.zig
-+++ b/lib/std/net.zig
-@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: mem.Allocator, name:
[]const u8, port: u16) !*A
- break :blk result;
- };
- const arena = result.arena.allocator();
--errdefer result.arena.deinit();
-+errdefer result.deinit();
-
- if (builtin.target.os.tag == .windows or builtin.link_libc) {
- const name_c = try std.cstr.addNullByte(allocator, name);
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
b/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
deleted file mode 100644
index deb563378d76..
--- a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From: Eric Joldasov
-Fix building with Clang 16
-Upstream PR https://github.com/ziglang/zig/pull/13121
-
a/src/stage1/parse_f128.c
-+++ b/src/stage1/parse_f128.c
-@@ -983,14 +983,14 @@ static int isspace(int c)
- return c == ' ' || (unsigned)c-'\t' < 5;
- }
-
--static inline float128_t makeInf128() {
-+static inline float128_t makeInf128(void) {
- union ldshape ux;
- ux.i2.hi = 0x7fffUL;
- ux.i2.lo = 0x0UL;
- return ux.f;
- }
-
--static inline float128_t makeNaN128() {
-+static inline float128_t makeNaN128(void) {
- uint64_t rand = 0UL;
- union ldshape ux;
- ux.i2.hi = 0x7fffUL | (rand & 0xUL);
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch
b/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch
deleted file mode 100644
index 372a68ea02ad..
--- a/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-https://github.com/ziglang/zig/commit/ca3c4ff2d0afcdc8fe86e7e7b41a967c88779729
-From: Shupei Fan
-zig0: properly set llvm_cpu_names and llvm_cpu_features for riscv
-
-Bug: https://bugs.gentoo.org/851732
-
a/src/stage1/zig0.cpp
-+++ b/src/stage1/zig0.cpp
-@@ -160,6 +160,17 @@ static void get_native_target(ZigTarget *target) {
- }
- }
-
-+static const char* get_baseline_llvm_cpu_name(ZigLLVM_ArchType arch) {
-+return "";
-+}
-+
-+static const char* get_baseline_llvm_cpu_features(ZigLLVM_ArchType arch)
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/
commit: ff3fac4781eca7b1250547c9627f021cebbdf2a7 Author: Eric Joldasov getgoogleoff me> AuthorDate: Thu Dec 1 12:43:10 2022 + Commit: Michał Górny gentoo org> CommitDate: Thu Dec 1 13:57:05 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff3fac47 dev-lang/zig-bin: drop 0.9.1-r1 Signed-off-by: Eric Joldasov getgoogleoff.me> Signed-off-by: Michał Górny gentoo.org> dev-lang/zig-bin/Manifest | 5 --- .../zig-bin-0.9.1-fix-bad-hostname-segfault.patch | 26 dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild | 47 -- 3 files changed, 78 deletions(-) diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest index f3a4958e521b..66658fc5412e 100644 --- a/dev-lang/zig-bin/Manifest +++ b/dev-lang/zig-bin/Manifest @@ -1,10 +1,5 @@ -DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93 SHA512 259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692 DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607 SHA512 5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1 -DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d SHA512 ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639 DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096 SHA512 31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278 -DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b SHA512 239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333 DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da SHA512 6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef -DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5 SHA512 5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255 SHA512 ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549 DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7 SHA512 87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766 -DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B 053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb SHA512 0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3 diff --git a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch deleted file mode 100644 index 2e87ecc6d6ee.. --- a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch +++ /dev/null @@ -1,26 +0,0 @@ -https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 -Bug https://bugs.gentoo.org/829959 - -From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001 -From: Veikka Touminen -Date: Sun, 10 Jul 2022 04:27:23 -0600 -Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname - -Fixes #12065 - lib/std/net.zig | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/std/net.zig b/lib/std/net.zig -index 235ad8496a1..c381df9bce7 100644 a/lib/std/net.zig -+++ b/lib/std/net.zig -@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: mem
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: bd7fdcec46962af3a5a61ba74a2d1455a14d2c68
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Tue Nov 8 03:36:52 2022 +
Commit: Sam James gentoo org>
CommitDate: Tue Nov 8 04:08:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7fdcec
dev-lang/zig: drop "threads" and "test" USE flags for
See commit f28480799d348da161f8d121df2fb99c73250ab3.
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28177
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index bbd0bb53f3a0..a19a2873f8cd 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -18,8 +18,6 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="test +threads"
-RESTRICT="!test? ( test )"
BUILD_DIR="${S}/build"
@@ -60,7 +58,6 @@ src_configure() {
local mycmakeargs=(
-DZIG_USE_CCACHE=OFF
-DZIG_SHARED_LLVM=ON
- -DZIG_SINGLE_THREADED="$(usex !threads)"
-DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})
)
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
commit: 5c000bbe19f88a5534a3c3d2a74f07045bdf5995
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Tue Nov 1 03:56:56 2022 +
Commit: Sam James gentoo org>
CommitDate: Mon Nov 7 06:52:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c000bbe
dev-lang/zig-bin: add 0.10.0
Bug: https://bugs.gentoo.org/876181
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28061
Signed-off-by: Sam James gentoo.org>
dev-lang/zig-bin/Manifest | 5
dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 52 ++
2 files changed, 57 insertions(+)
diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index c85903697075..f3a4958e521b 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,5 +1,10 @@
DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
SHA512
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
+DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
SHA512
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B
3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d
SHA512
ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
+DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
SHA512
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B
5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b
SHA512
239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333
+DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
SHA512
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B
7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5
SHA512
5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d
+DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
SHA512
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
+DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
SHA512
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B
053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb
SHA512
0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3
diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
new file mode 100644
index ..45c577eadde5
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/";
+SRC_URI="
+ amd64? (
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+ arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz
)
+ arm64? (
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+ riscv? (
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+ x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~a
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 9c3e47685b03e771b87da1f38df6cb534530c3d6
Author: Sam James gentoo org>
AuthorDate: Mon Nov 7 06:51:41 2022 +
Commit: Sam James gentoo org>
CommitDate: Mon Nov 7 06:52:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3e4768
dev-lang/zig: style tweaks
Have all functions be together.
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-0.10.0.ebuild | 14 +++---
dev-lang/zig/zig-.ebuild | 12 ++--
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/dev-lang/zig/zig-0.10.0.ebuild b/dev-lang/zig/zig-0.10.0.ebuild
index 451df4ef6f6d..0ab54280a9ba 100644
--- a/dev-lang/zig/zig-0.10.0.ebuild
+++ b/dev-lang/zig/zig-0.10.0.ebuild
@@ -36,9 +36,9 @@ RDEPEND="
!dev-lang/zig-bin
"
-llvm_check_deps() {
- has_version "sys-devel/clang:${LLVM_SLOT}"
-}
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/zig"
# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
@@ -46,6 +46,10 @@ llvm_check_deps() {
# (transpiled to C via C backend) for bootstrapping
CHECKREQS_MEMORY="10G"
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
pkg_setup() {
llvm_pkg_setup
check-reqs_pkg_setup
@@ -66,10 +70,6 @@ src_test() {
./zig2 build test -Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true || die
}
-# see https://github.com/ziglang/zig/issues/3382
-# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/bin/zig"
-
pkg_postinst() {
elog "0.10.0 release introduces self-hosted compiler for general use by
default"
elog "It means that your code can be un-compilable since this compiler
has some new or removed features and new or fixed bugs"
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index b5b25d1f884f..bbd0bb53f3a0 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -38,9 +38,8 @@ RDEPEND="
!dev-lang/zig-bin
"
-llvm_check_deps() {
- has_version "sys-devel/clang:${LLVM_SLOT}"
-}
+# see https://github.com/ziglang/zig/issues/3382
+QA_FLAGS_IGNORED="usr/bin/zig"
# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
# 0.10.0 release - 9.6 GiB, since we use compiler written in C++ for
bootstrapping
@@ -48,6 +47,10 @@ llvm_check_deps() {
# (transpiled to C via C backend) for bootstrapping
CHECKREQS_MEMORY="10G"
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
pkg_setup() {
llvm_pkg_setup
check-reqs_pkg_setup
@@ -68,6 +71,3 @@ src_test() {
cd "${BUILD_DIR}" || die
./zig2 build test -Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true || die
}
-
-# see https://github.com/ziglang/zig/issues/3382
-QA_FLAGS_IGNORED="usr/bin/zig"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: f28480799d348da161f8d121df2fb99c73250ab3
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Tue Nov 1 03:56:36 2022 +
Commit: Sam James gentoo org>
CommitDate: Mon Nov 7 06:51:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2848079
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 getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/Manifest | 1 +
dev-lang/zig/{zig-.ebuild => zig-0.10.0.ebuild} | 17 -
dev-lang/zig/zig-.ebuild| 9 -
3 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index f18eeb3ba012..fd2ecb470579 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,2 +1,3 @@
+DIST zig-0.10.0.tar.xz 14530912 BLAKE2B
5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c
SHA512
9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682
DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
SHA512
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
DIST zig-0.9.1.tar.xz 13940828 BLAKE2B
996b0e945f61b01dddbb7c8674a9e2d2d01b93eb48fdfd2c986496330990ffa64cba15f8bd8518b90ef6f514759ba6cc3fd31d6044c5b11b92bf92e3f7f15303
SHA512
0b8a5f9b7e34e4252536f59bc91429f1e76b2bf8e01f024095919f6ecf34db56b5c86c554fbb94bdcb5255394c87f2c87519c8f34c631f53816927ec0882ae2d
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-0.10.0.ebuild
similarity index 61%
copy from dev-lang/zig/zig-.ebuild
copy to dev-lang/zig/zig-0.10.0.ebuild
index f4f7a100d588..451df4ef6f6d 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-0.10.0.ebuild
@@ -18,8 +18,6 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="test +threads"
-RESTRICT="!test? ( test )"
BUILD_DIR="${S}/build"
@@ -42,7 +40,10 @@ llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
}
-# see
https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements
+# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
+# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for
bootstrapping
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
+# (transpiled to C via C backend) for bootstrapping
CHECKREQS_MEMORY="10G"
pkg_setup() {
@@ -54,7 +55,6 @@ src_configure() {
local mycmakeargs=(
-DZIG_USE_CCACHE=OFF
-DZIG_SHARED_LLVM=ON
- -DZIG_SINGLE_THREADED="$(usex !threads)"
-DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})
)
@@ -67,8 +67,15 @@ src_test() {
}
# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
QA_FLAGS_IGNORED="usr/bin/zig"
pkg_postinst() {
- elog "If you want to use stage1 backend, use -fstage1 flag"
+ elog "0.10.0 release introduces self-hosted compiler for general use by
default"
+ elog "It means that your code can be un-compilable since this compiler
has some new or removed features and new or fixed bugs"
+ elog "Upstream recommends using stage1 if experiencing such breakage,"
+ elog "until bugfix release 0.10.1 or release 0.11.0 where old compiler
will be fully replaced"
+ elog "You can use old compiler by using '-fstage1' flag"
+ elog "Also see:
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler";
+ elog "and
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade";
}
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index f4f7a100d588..b5b25d1f884f 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -42,7 +42,10 @@ llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
}
-# see
https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements
+# see
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler
+# 0.10.0 release - 9.6 GiB, since we use compiler written in C++ for
bootstrapping
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use
self-hosted compiler
+# (transpiled to C via C backend) for bootstrapping
CHECKREQS_MEMORY="10G"
pkg_setup() {
@@ -68,7 +71,3 @@ src_test() {
# see https://github.com/zigla
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 044b0969623c0c23f5884a22dfa58b02929b5086
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Oct 26 19:00:03 2022 +
Commit: Sam James gentoo org>
CommitDate: Sun Oct 30 09:39:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=044b0969
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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/27964
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index cc18f6e8a041..f4f7a100d588 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -23,11 +23,14 @@ RESTRICT="!test? ( test )"
BUILD_DIR="${S}/build"
+# 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 here.
+# You can check https://github.com/ziglang/zig-bootstrap in future, to see
+# options that are passed to LLVM CMake building (excluding "static" ofc).
DEPEND="
sys-devel/clang:${LLVM_MAX_SLOT}=
sys-devel/lld:${LLVM_MAX_SLOT}=
- sys-devel/llvm:${LLVM_MAX_SLOT}=
- >=sys-libs/zlib-1.2.12
+ sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
"
RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Wed Oct 19 15:34:20 2022 +
Commit: Sam James gentoo org>
CommitDate: Thu Oct 20 23:33:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fd7c39b
dev-lang/zig: use standard CMake procedure for building/installing
Upstream PR https://github.com/ziglang/zig/pull/13036
Signed-off-by: Eric Joldasov getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/27849
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/zig-.ebuild | 9 +
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index cfc9d487b029..cc18f6e8a041 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -53,7 +53,6 @@ src_configure() {
-DZIG_SHARED_LLVM=ON
-DZIG_SINGLE_THREADED="$(usex !threads)"
-DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})
- -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}/stage3"
)
cmake_src_configure
@@ -61,13 +60,7 @@ src_configure() {
src_test() {
cd "${BUILD_DIR}" || die
- ./stage3/bin/zig build test -Dstatic-llvm=false -Denable-llvm=true ||
die
-}
-
-src_install() {
- cd "${BUILD_DIR}" || die
- DESTDIR="${D}" ./zig2 build install -Denable-stage1=true
-Dstatic-llvm=false -Denable-llvm=true --prefix "${EPREFIX}"/usr || die
- dodoc ../README.md
+ ./zig2 build test -Dstatic-llvm=false -Denable-llvm=true
-Dskip-non-native=true || die
}
# see https://github.com/ziglang/zig/issues/3382
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/files/, dev-lang/zig/
commit: b15d873b0f867c6b2fe6c763bf859ea79ea41074
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Mon Oct 10 03:16:41 2022 +
Commit: Michał Górny gentoo org>
CommitDate: Tue Oct 18 15:00:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b15d873b
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 getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/27718
Signed-off-by: Michał Górny gentoo.org>
dev-lang/zig/files/zig-0.9.1-fix-clang16.patch | 23 ++
.../{zig-0.9.1-r2.ebuild => zig-0.9.1-r3.ebuild} | 2 ++
2 files changed, 25 insertions(+)
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
b/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
new file mode 100644
index ..deb563378d76
--- /dev/null
+++ b/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
@@ -0,0 +1,23 @@
+From: Eric Joldasov
+Fix building with Clang 16
+Upstream PR https://github.com/ziglang/zig/pull/13121
+
+--- a/src/stage1/parse_f128.c
b/src/stage1/parse_f128.c
+@@ -983,14 +983,14 @@ static int isspace(int c)
+ return c == ' ' || (unsigned)c-'\t' < 5;
+ }
+
+-static inline float128_t makeInf128() {
++static inline float128_t makeInf128(void) {
+ union ldshape ux;
+ ux.i2.hi = 0x7fffUL;
+ ux.i2.lo = 0x0UL;
+ return ux.f;
+ }
+
+-static inline float128_t makeNaN128() {
++static inline float128_t makeNaN128(void) {
+ uint64_t rand = 0UL;
+ union ldshape ux;
+ ux.i2.hi = 0x7fffUL | (rand & 0xUL);
diff --git a/dev-lang/zig/zig-0.9.1-r2.ebuild b/dev-lang/zig/zig-0.9.1-r3.ebuild
similarity index 94%
rename from dev-lang/zig/zig-0.9.1-r2.ebuild
rename to dev-lang/zig/zig-0.9.1-r3.ebuild
index 4adbe994a8f3..463cead06e2d 100644
--- a/dev-lang/zig/zig-0.9.1-r2.ebuild
+++ b/dev-lang/zig/zig-0.9.1-r3.ebuild
@@ -23,6 +23,7 @@ IUSE="test +threads"
RESTRICT="!test? ( test )"
PATCHES=(
+ "${FILESDIR}/${P}-fix-clang16.patch"
"${FILESDIR}/${P}-fix-single-threaded.patch"
"${FILESDIR}/${P}-fix-riscv.patch"
"${FILESDIR}/${P}-fix-bad-hostname-segfault.patch"
@@ -59,6 +60,7 @@ src_configure() {
-DZIG_USE_CCACHE=OFF
-DZIG_PREFER_CLANG_CPP_DYLIB=ON
-DZIG_SINGLE_THREADED="$(usex !threads)"
+ -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})
)
cmake_src_configure
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: 0589d0cb2e6afad82048dc5108b7bc357927c790
Author: Sam James gentoo org>
AuthorDate: Sat Oct 15 15:17:20 2022 +
Commit: Sam James gentoo org>
CommitDate: Sat Oct 15 15:17:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0589d0cb
dev-lang/zig: fix MissingSlotDep on LLD
LLD is slotted now.
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/{zig-0.9.1-r1.ebuild => zig-0.9.1-r2.ebuild} | 7 +++
dev-lang/zig/zig-.ebuild | 7 +++
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/dev-lang/zig/zig-0.9.1-r1.ebuild b/dev-lang/zig/zig-0.9.1-r2.ebuild
similarity index 90%
rename from dev-lang/zig/zig-0.9.1-r1.ebuild
rename to dev-lang/zig/zig-0.9.1-r2.ebuild
index 10a957c326e9..4adbe994a8f3 100644
--- a/dev-lang/zig/zig-0.9.1-r1.ebuild
+++ b/dev-lang/zig/zig-0.9.1-r2.ebuild
@@ -32,10 +32,9 @@ PATCHES=(
BUILD_DIR="${S}/build"
DEPEND="
- sys-devel/clang:${LLVM_MAX_SLOT}
- >=sys-devel/lld-${LLVM_MAX_SLOT}
- =sys-libs/zlib-1.2.12
"
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 92d014036577..cfc9d487b029 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -24,10 +24,9 @@ RESTRICT="!test? ( test )"
BUILD_DIR="${S}/build"
DEPEND="
- sys-devel/clang:${LLVM_MAX_SLOT}
- >=sys-devel/lld-${LLVM_MAX_SLOT}
- =sys-libs/zlib-1.2.12
"
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/
commit: b0be76203ac70656b0b6cce6b165880680c38382
Author: Eric Joldasov getgoogleoff me>
AuthorDate: Mon Sep 12 13:38:17 2022 +
Commit: Sam James gentoo org>
CommitDate: Mon Sep 19 03:40:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0be7620
dev-lang/zig: drop unnecessary patch for
Signed-off-by: Eric Joldasov getgoogleoff.me>
Signed-off-by: Sam James gentoo.org>
dev-lang/zig/files/zig--stage2-fix.patch | 12
dev-lang/zig/zig-.ebuild | 3 ---
2 files changed, 15 deletions(-)
diff --git a/dev-lang/zig/files/zig--stage2-fix.patch
b/dev-lang/zig/files/zig--stage2-fix.patch
deleted file mode 100644
index a2fe945c4a39..
--- a/dev-lang/zig/files/zig--stage2-fix.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/build.zig b/build.zig
-index c8e757dc4..b698b5680 100644
a/build.zig
-+++ b/build.zig
-@@ -577,6 +577,7 @@ fn addCmakeCfgOptionsToExe(
- else => |e| return e,
- };
- exe.linkSystemLibrary("unwind");
-+exe.linkSystemLibrary("c_nonshared");
- } else if (exe.target.isFreeBSD()) {
- try addCxxKnownPath(b, cfg, exe, b.fmt("libc++.{s}",
.{lib_suffix}), null, need_cpp_includes);
- exe.linkSystemLibrary("pthread");
diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild
index 1574aa37588a..373a6036ccb1 100644
--- a/dev-lang/zig/zig-.ebuild
+++ b/dev-lang/zig/zig-.ebuild
@@ -43,9 +43,6 @@ llvm_check_deps() {
# see
https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements
CHECKREQS_MEMORY="10G"
-# see https://github.com/ziglang/zig/issues/11137
-PATCHES=( "${FILESDIR}/${P}-stage2-fix.patch" )
-
pkg_setup() {
llvm_pkg_setup
check-reqs_pkg_setup
[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
commit: d49ff59b4a3fb539e41219d67b2319dfe6356dca Author: Eric Joldasov getgoogleoff me> AuthorDate: Wed Sep 14 14:36:42 2022 + Commit: Sam James gentoo org> CommitDate: Mon Sep 19 03:40:44 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d49ff59b dev-lang/zig: update to LLVM 15 for Closes: https://bugs.gentoo.org/871462 Signed-off-by: Eric Joldasov getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27221 Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-.ebuild b/dev-lang/zig/zig-.ebuild index 373a6036ccb1..92d014036577 100644 --- a/dev-lang/zig/zig-.ebuild +++ b/dev-lang/zig/zig-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_MAX_SLOT=14 +LLVM_MAX_SLOT=15 inherit cmake llvm check-reqs DESCRIPTION="A robust, optimal, and maintainable programming language"
