Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/
Date: Sun, 30 Oct 2022 09:40:28
Message-Id: 1667122778.044b0969623c0c23f5884a22dfa58b02929b5086.sam@gentoo
1 commit: 044b0969623c0c23f5884a22dfa58b02929b5086
2 Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
3 AuthorDate: Wed Oct 26 19:00:03 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:39:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=044b0969
7
8 dev-lang/zig: requires zstd support in LLVM
9
10 Starting with https://github.com/ziglang/zig/commit/d42a719e8f7ba31a9e18d6be9d58691b0b38c69a Zig requires zstd compression support.
11
12 Zig requires zstd and zlib compression support in LLVM, if using LLVM backend (non-LLVM backends don't require these).
13 They are not required "on their own", so please don't add them to
14 dependencies.
15 You can check https://github.com/ziglang/zig-bootstrap in future, to see
16 options that are passed to LLVM CMake building (excluding "static" ofc).
17
18 Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
19 Closes: https://github.com/gentoo/gentoo/pull/27964
20 Signed-off-by: Sam James <sam <AT> gentoo.org>
21
22 dev-lang/zig/zig-9999.ebuild | 7 +++++--
23 1 file changed, 5 insertions(+), 2 deletions(-)
24
25 diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild
26 index cc18f6e8a041..f4f7a100d588 100644
27 --- a/dev-lang/zig/zig-9999.ebuild
28 +++ b/dev-lang/zig/zig-9999.ebuild
29 @@ -23,11 +23,14 @@ RESTRICT="!test? ( test )"
30
31 BUILD_DIR="${S}/build"
32
33 +# Zig requires zstd and zlib compression support in LLVM, if using LLVM backend (non-LLVM backends don't require these).
34 +# They are not required "on their own", so please don't add them here.
35 +# You can check https://github.com/ziglang/zig-bootstrap in future, to see
36 +# options that are passed to LLVM CMake building (excluding "static" ofc).
37 DEPEND="
38 sys-devel/clang:${LLVM_MAX_SLOT}=
39 sys-devel/lld:${LLVM_MAX_SLOT}=
40 - sys-devel/llvm:${LLVM_MAX_SLOT}=
41 - >=sys-libs/zlib-1.2.12
42 + sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd]
43 "
44
45 RDEPEND="