From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1718546-garchives=archives.gentoo.org@lists.gentoo.org>
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 8AB4C1582EF
	for <garchives@archives.gentoo.org>; Sun, 16 Feb 2025 16:29:33 +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 76E73342FE4
	for <garchives@archives.gentoo.org>; Sun, 16 Feb 2025 16:29:33 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id 8C1D6110471;
	Sun, 16 Feb 2025 16:29:29 +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 8389F110471
	for <gentoo-commits@lists.gentoo.org>; Sun, 16 Feb 2025 16:29:29 +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 3A5F3342F65
	for <gentoo-commits@lists.gentoo.org>; Sun, 16 Feb 2025 16:29:29 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C8C4D2654
	for <gentoo-commits@lists.gentoo.org>; Sun, 16 Feb 2025 16:29:27 +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: <1739723291.9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e.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.13.0-r2.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: 9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e
X-VCS-Branch: master
Date: Sun, 16 Feb 2025 16:29:27 +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: ce8a9e51-6bbb-4c1a-883e-9f3f6562e406
X-Archives-Hash: 4ed9b7b48e207dfc893f630529fee59e

commit:     9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Tue Feb  4 16:51:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 16:28:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbe02e3

dev-lang/zig: do not die on `eselect` in `pkg_postrm`

Per PMS:
> Ebuilds are allowed to call them in pkg_preinst and pkg_postinst.
> Ebuilds may also call them in pkg_prerm and pkg_postrm but must not
> rely on them being available.

Bug: https://bugs.gentoo.org/949225
Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/zig/zig-0.13.0-r2.ebuild | 2 +-
 dev-lang/zig/zig-9999.ebuild      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild b/dev-lang/zig/zig-0.13.0-r2.ebuild
index d8fa77b14495..a17a501b392e 100644
--- a/dev-lang/zig/zig-0.13.0-r2.ebuild
+++ b/dev-lang/zig/zig-0.13.0-r2.ebuild
@@ -271,5 +271,5 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-	eselect zig update ifunset || die
+	eselect zig update ifunset
 }

diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild
index bf7387685f3c..8fb29ab10b9e 100644
--- a/dev-lang/zig/zig-9999.ebuild
+++ b/dev-lang/zig/zig-9999.ebuild
@@ -344,5 +344,5 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-	eselect zig update ifunset || die
+	eselect zig update ifunset
 }