From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D83651582EF for ; Sun, 16 Feb 2025 16:25:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C1B39343010 for ; Sun, 16 Feb 2025 16:25:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 68910110473; Sun, 16 Feb 2025 16:25:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 53D11110473 for ; Sun, 16 Feb 2025 16:25:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD111340C7B for ; Sun, 16 Feb 2025 16:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4902F272B for ; Sun, 16 Feb 2025 16:25:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739723094.eaaa8b9b68a6d7c6f8d36bced910856c0860413f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/zig/metadata.xml dev-lang/zig/zig-0.13.0-r3.ebuild dev-lang/zig/zig-9999.ebuild X-VCS-Directories: dev-lang/zig/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: eaaa8b9b68a6d7c6f8d36bced910856c0860413f X-VCS-Branch: master Date: Sun, 16 Feb 2025 16:25:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f45476dc-9b42-4f80-b7d5-9bfaf1e47fa1 X-Archives-Hash: 30511f8d8b03f873a6474f5c2a624beb commit: eaaa8b9b68a6d7c6f8d36bced910856c0860413f Author: Eric Joldasov landless-city net> AuthorDate: Tue Dec 17 21:23:02 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 16 16:24:54 2025 +0000 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-9999.ebuild => zig-0.13.0-r3.ebuild} | 16 +++++++++++++--- dev-lang/zig/zig-9999.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-9999.ebuild b/dev-lang/zig/zig-0.13.0-r3.ebuild similarity index 93% copy from dev-lang/zig/zig-9999.ebuild copy to dev-lang/zig/zig-0.13.0-r3.ebuild index 9fe4558461eb..5d982900f831 100644 --- a/dev-lang/zig/zig-9999.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-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index 9fe4558461eb..dda68889ca43 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.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+=(