From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A1539158062 for ; Thu, 9 Mar 2023 10:54:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D7B4E091D; Thu, 9 Mar 2023 10:54:11 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8983EE091D for ; Thu, 9 Mar 2023 10:54:11 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F65433BED4 for ; Thu, 9 Mar 2023 10:54:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 915F28DE for ; Thu, 9 Mar 2023 10:54:07 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1678359239.f3ea1cde63c36f09e5ed98f763beb89aec062ff5.flow@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.1-r1.ebuild dev-lang/zig/zig-9999.ebuild X-VCS-Directories: dev-lang/zig/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: f3ea1cde63c36f09e5ed98f763beb89aec062ff5 X-VCS-Branch: master Date: Thu, 9 Mar 2023 10:54:07 +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: 61bac1d0-f0c4-4d90-b798-c3f23adf3e12 X-Archives-Hash: 3f83434db1b394645d71b67f4651a0c7 commit: f3ea1cde63c36f09e5ed98f763beb89aec062ff5 Author: Florian Schmaus gentoo org> AuthorDate: Thu Mar 9 10:47:44 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Mar 9 10:53:59 2023 +0000 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-9999.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-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index 17f5c3e65408..b3846db59b81 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.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 +}