commit:     353a8d6556899d841882993bf2f25ea2945d6a9e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:01 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=353a8d65

sys-apps/s6-rc: Port to ver_replacing

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

 sys-apps/s6-rc/s6-rc-0.5.5.0.ebuild | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/sys-apps/s6-rc/s6-rc-0.5.5.0.ebuild 
b/sys-apps/s6-rc/s6-rc-0.5.5.0.ebuild
index d437cf4f152c..350717552a6f 100644
--- a/sys-apps/s6-rc/s6-rc-0.5.5.0.ebuild
+++ b/sys-apps/s6-rc/s6-rc-0.5.5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit optfeature toolchain-funcs
+inherit eapi9-ver optfeature toolchain-funcs
 
 DESCRIPTION="Service manager for the s6 supervision suite"
 HOMEPAGE="https://www.skarnet.org/software/s6-rc/";
@@ -54,14 +54,12 @@ src_configure() {
 }
 
 pkg_postinst() {
-       for ver in ${REPLACING_VERSIONS}; do
-               if ver_test "${ver}" -lt "0.5.4.0"; then
-                       elog "Location of helper utilities was changed from 
/usr/libexec to /lib/s6 in"
-                       elog "version 0.5.4.0. It is necessary to recompile and 
update s6-rc database and"
-                       elog "restart s6rc-oneshot-runner service because you 
are upgrading from older"
-                       elog "version."
-               fi
-       done
+       if ver_replacing -lt "0.5.4.0"; then
+               elog "Location of helper utilities was changed from 
/usr/libexec to /lib/s6 in"
+               elog "version 0.5.4.0. It is necessary to recompile and update 
s6-rc database and"
+               elog "restart s6rc-oneshot-runner service because you are 
upgrading from older"
+               elog "version."
+       fi
 
        optfeature "man pages" app-doc/s6-rc-man-pages
 }

Reply via email to