From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1454410-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F77C158023 for <garchives@archives.gentoo.org>; Mon, 7 Nov 2022 06:52:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08087E091D; Mon, 7 Nov 2022 06:52:18 +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 pigeon.gentoo.org (Postfix) with ESMTPS id E268EE091D for <gentoo-commits@lists.gentoo.org>; Mon, 7 Nov 2022 06:52:17 +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 DCE1834112D for <gentoo-commits@lists.gentoo.org>; Mon, 7 Nov 2022 06:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1177E703 for <gentoo-commits@lists.gentoo.org>; Mon, 7 Nov 2022 06:52:15 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1667803925.9c3e47685b03e771b87da1f38df6cb534530c3d6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/zig/zig-0.10.0.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: 9c3e47685b03e771b87da1f38df6cb534530c3d6 X-VCS-Branch: master Date: Mon, 7 Nov 2022 06:52:15 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e2fea681-3616-47c9-a5ba-e236b4a32b39 X-Archives-Hash: 6d31bba28f283aecaeba3288c0948efa commit: 9c3e47685b03e771b87da1f38df6cb534530c3d6 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Nov 7 06:51:41 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Nov 7 06:52:05 2022 +0000 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 <sam <AT> gentoo.org> dev-lang/zig/zig-0.10.0.ebuild | 14 +++++++------- dev-lang/zig/zig-9999.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-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index b5b25d1f884f..bbd0bb53f3a0 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.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"