summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2023-02-19 11:43:28 +0100
committerSam James <sam@gentoo.org>2023-02-21 08:01:05 +0000
commit314aa3260d8ec2fe90b1e045cce6bc0fd97494bd (patch)
treeac90a683c6ab7b10ec8e95c40adb94a38003df70 /sys-apps
parentnet-misc/s6-networking: add 2.5.1.3 (diff)
downloadgentoo-314aa3260d8ec2fe90b1e045cce6bc0fd97494bd.tar.gz
gentoo-314aa3260d8ec2fe90b1e045cce6bc0fd97494bd.tar.bz2
gentoo-314aa3260d8ec2fe90b1e045cce6bc0fd97494bd.zip
sys-apps/s6-rc: add upgrade/downgrade post-install message
Recent change in s6-rc-0.5.4.0 ebuild is not backward compatible with older versions present in the tree. Appended message will inform users about necessary post-install they need to do. Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/29649 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/s6-rc/s6-rc-0.5.3.2.ebuild13
-rw-r--r--sys-apps/s6-rc/s6-rc-0.5.3.3.ebuild11
-rw-r--r--sys-apps/s6-rc/s6-rc-0.5.4.0.ebuild11
3 files changed, 34 insertions, 1 deletions
diff --git a/sys-apps/s6-rc/s6-rc-0.5.3.2.ebuild b/sys-apps/s6-rc/s6-rc-0.5.3.2.ebuild
index 9950834606c2..47fe23696e6f 100644
--- a/sys-apps/s6-rc/s6-rc-0.5.3.2.ebuild
+++ b/sys-apps/s6-rc/s6-rc-0.5.3.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -49,3 +49,14 @@ src_configure() {
econf "${myconf[@]}"
}
+
+pkg_postinst() {
+ for ver in ${REPLACING_VERSIONS}; do
+ if ver_test "${ver}" -ge "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 downgrading from newer"
+ elog "version."
+ fi
+ done
+}
diff --git a/sys-apps/s6-rc/s6-rc-0.5.3.3.ebuild b/sys-apps/s6-rc/s6-rc-0.5.3.3.ebuild
index 58f87ce13f36..a64dada495c4 100644
--- a/sys-apps/s6-rc/s6-rc-0.5.3.3.ebuild
+++ b/sys-apps/s6-rc/s6-rc-0.5.3.3.ebuild
@@ -50,3 +50,14 @@ src_configure() {
econf "${myconf[@]}"
}
+
+pkg_postinst() {
+ for ver in ${REPLACING_VERSIONS}; do
+ if ver_test "${ver}" -ge "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 downgrading from newer"
+ elog "version."
+ fi
+ done
+}
diff --git a/sys-apps/s6-rc/s6-rc-0.5.4.0.ebuild b/sys-apps/s6-rc/s6-rc-0.5.4.0.ebuild
index 855a1d6e3baf..30a021e291ff 100644
--- a/sys-apps/s6-rc/s6-rc-0.5.4.0.ebuild
+++ b/sys-apps/s6-rc/s6-rc-0.5.4.0.ebuild
@@ -52,3 +52,14 @@ src_configure() {
econf "${myconf[@]}"
}
+
+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
+}