commit:     c84c3e24f35da1e43bedf798dc3f5ea7e6215d93
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  9 10:48:44 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Mar  9 10:53:59 2023 +0000
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 <flow <AT> 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
+}

Reply via email to