commit: dd59a59d40a3dd8c1dd133683ad846a74ad79d44 Author: Alex Efros <powerman-asdf <AT> yandex <DOT> ru> AuthorDate: Thu May 15 06:29:43 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jun 8 05:09:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd59a59d
sys-process/runit: fix ewarn messages Signed-off-by: Alex Efros <powerman-asdf <AT> yandex.ru> Part-of: https://github.com/gentoo/gentoo/pull/42093 Closes: https://github.com/gentoo/gentoo/pull/42093 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-process/runit/runit-2.1.2-r7.ebuild | 13 ++++++++----- sys-process/runit/runit-2.2.0-r1.ebuild | 13 ++++++++----- sys-process/runit/runit-2.2.0-r2.ebuild | 13 ++++++++----- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/sys-process/runit/runit-2.1.2-r7.ebuild b/sys-process/runit/runit-2.1.2-r7.ebuild index e485e315fd87..ee54722f45e6 100644 --- a/sys-process/runit/runit-2.1.2-r7.ebuild +++ b/sys-process/runit/runit-2.1.2-r7.ebuild @@ -133,20 +133,23 @@ pkg_postinst() { migrate_from_211 fi + ewarn "To make sure sv works correctly in your currently open" + ewarn "shells, please run the following command:" + ewarn + ewarn "source /etc/profile" + ewarn + if use scripts; then - ewarn "To make sure sv works correctly in your currently open" - ewarn "shells, please run the following command:" - ewarn - ewarn "source /etc/profile" - ewarn ewarn "Currently, no task(s) will run in stage 1 & 3, you're on your own" ewarn "to put script(s) into /etc/runit/rc/, please see /etc/runit/rc.sh" ewarn "for name in different stages." + ewarn else ewarn "This build with USE=\"-scripts\" doesn\'t include any boot scripts" ewarn "into /etc/runit, you are on your own to put the scripts." ewarn "Also, /sbin/runsvdir-start is a broken symlink to /etc/runit/2, you will" ewarn "need to create script /etc/runit/2 before use it." + ewarn fi if [[ -L "${EROOT}"/var/service ]]; then diff --git a/sys-process/runit/runit-2.2.0-r1.ebuild b/sys-process/runit/runit-2.2.0-r1.ebuild index 8ef94254747f..d206947f3e98 100644 --- a/sys-process/runit/runit-2.2.0-r1.ebuild +++ b/sys-process/runit/runit-2.2.0-r1.ebuild @@ -125,20 +125,23 @@ pkg_postinst() { migrate_from_211 fi + ewarn "To make sure sv works correctly in your currently open" + ewarn "shells, please run the following command:" + ewarn + ewarn "source /etc/profile" + ewarn + if use scripts; then - ewarn "To make sure sv works correctly in your currently open" - ewarn "shells, please run the following command:" - ewarn - ewarn "source /etc/profile" - ewarn ewarn "Currently, no task(s) will run in stage 1 & 3, you're on your own" ewarn "to put script(s) into /etc/runit/rc/, please see /etc/runit/rc.sh" ewarn "for name in different stages." + ewarn else ewarn "This build with USE=\"-scripts\" doesn\'t include any boot scripts" ewarn "into /etc/runit, you are on your own to put the scripts." ewarn "Also, /sbin/runsvdir-start is a broken symlink to /etc/runit/2, you will" ewarn "need to create script /etc/runit/2 before use it." + ewarn fi if [[ -L "${EROOT}"/var/service ]]; then diff --git a/sys-process/runit/runit-2.2.0-r2.ebuild b/sys-process/runit/runit-2.2.0-r2.ebuild index 062633c5503c..8ee72fd35936 100644 --- a/sys-process/runit/runit-2.2.0-r2.ebuild +++ b/sys-process/runit/runit-2.2.0-r2.ebuild @@ -132,20 +132,23 @@ pkg_postinst() { migrate_from_211 fi + ewarn "To make sure sv works correctly in your currently open" + ewarn "shells, please run the following command:" + ewarn + ewarn "source /etc/profile" + ewarn + if use scripts; then - ewarn "To make sure sv works correctly in your currently open" - ewarn "shells, please run the following command:" - ewarn - ewarn "source /etc/profile" - ewarn ewarn "Currently, no task(s) will run in stage 1 & 3, you're on your own" ewarn "to put script(s) into /etc/runit/rc/, please see /etc/runit/rc.sh" ewarn "for name in different stages." + ewarn else ewarn "This build with USE=\"-scripts\" doesn\'t include any boot scripts" ewarn "into /etc/runit, you are on your own to put the scripts." ewarn "Also, /sbin/runsvdir-start is a broken symlink to /etc/runit/2, you will" ewarn "need to create script /etc/runit/2 before use it." + ewarn fi if [[ -L "${EROOT}"/var/service ]]; then
