From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1720378-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 34F8B1582EF
	for <garchives@archives.gentoo.org>; Sat, 22 Feb 2025 09:39:22 +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 23102343210
	for <garchives@archives.gentoo.org>; Sat, 22 Feb 2025 09:39:22 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id EE7E0110482;
	Sat, 22 Feb 2025 09:38:51 +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 D6D24110480
	for <gentoo-commits@lists.gentoo.org>; Sat, 22 Feb 2025 09:38:51 +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 92AE1343224
	for <gentoo-commits@lists.gentoo.org>; Sat, 22 Feb 2025 09:38:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B39427ED
	for <gentoo-commits@lists.gentoo.org>; Sat, 22 Feb 2025 09:38:48 +0000 (UTC)
From: "Ulrich Müller" <ulm@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, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1740217100.f1611bf183d628fe8b7d26a917c2858508036f31.ulm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sysvinit/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/sysvinit/sysvinit-3.14.ebuild
X-VCS-Directories: sys-apps/sysvinit/
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: f1611bf183d628fe8b7d26a917c2858508036f31
X-VCS-Branch: master
Date: Sat, 22 Feb 2025 09:38:48 +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: 6c738659-9c55-47bf-8b8b-c2e717b323ba
X-Archives-Hash: 8fa7c1178698a81524fe5ad3cf7d8dc5

commit:     f1611bf183d628fe8b7d26a917c2858508036f31
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:02 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 22 09:38:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1611bf1

sys-apps/sysvinit: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 sys-apps/sysvinit/sysvinit-3.14.ebuild | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/sys-apps/sysvinit/sysvinit-3.14.ebuild b/sys-apps/sysvinit/sysvinit-3.14.ebuild
index f0c321d9a654..b1c87b3dd541 100644
--- a/sys-apps/sysvinit/sysvinit-3.14.ebuild
+++ b/sys-apps/sysvinit/sysvinit-3.14.ebuild
@@ -7,7 +7,7 @@ EAPI=8
 #PLOCALES="de es fi fr hu id pl"
 PLOCALES="de es fr pl"
 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/sysvinit.asc
-inherit toolchain-funcs flag-o-matic plocale verify-sig
+inherit toolchain-funcs flag-o-matic plocale verify-sig eapi9-ver
 
 DESCRIPTION="/sbin/init - parent of all processes"
 HOMEPAGE="https://savannah.nongnu.org/projects/sysvinit"
@@ -173,12 +173,9 @@ pkg_postinst() {
 		touch "${EROOT}/var/log/boot"
 	fi
 
-	local ver
-	for ver in ${REPLACING_VERSIONS}; do
-		ver_test ${ver} -ge 3.07-r2 && continue
+	if ver_replacing -lt 3.07-r2; then
 		ewarn "Previously, the 'halt' command caused the system to power off"
 		ewarn "even if option -p was not given. This long-standing bug has"
 		ewarn "been fixed, and the command now behaves as documented."
-		break
-	done
+	fi
 }