commit:     6f19e9576402e1b8a083359effd671c9463b6420
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 04:08:26 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 04:08:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f19e957

sys-apps/systemd: fix install with USE="-sysv-utils"

The runlevel and telinit symlinks are not created when sysv compat is
disabled.

Closes: https://bugs.gentoo.org/895168
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/systemd/systemd-253.ebuild  | 4 ++--
 sys-apps/systemd/systemd-9999.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-apps/systemd/systemd-253.ebuild 
b/sys-apps/systemd/systemd-253.ebuild
index d7c351354825..77c9145b2914 100644
--- a/sys-apps/systemd/systemd-253.ebuild
+++ b/sys-apps/systemd/systemd-253.ebuild
@@ -362,9 +362,9 @@ multilib_src_install_all() {
        fi
 
        if ! use sysv-utils; then
-               rm 
"${ED}${rootprefix}/${sbin}"/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}
 || die
+               rm 
"${ED}${rootprefix}/${sbin}"/{halt,init,poweroff,reboot,shutdown} || die
                rm "${ED}"/usr/share/man/man1/init.1 || die
-               rm 
"${ED}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 
|| die
+               rm "${ED}"/usr/share/man/man8/{halt,poweroff,reboot,shutdown}.8 
|| die
        fi
 
        if ! use resolvconf && ! use sysv-utils && use split-usr; then

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index d7c351354825..77c9145b2914 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -362,9 +362,9 @@ multilib_src_install_all() {
        fi
 
        if ! use sysv-utils; then
-               rm 
"${ED}${rootprefix}/${sbin}"/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}
 || die
+               rm 
"${ED}${rootprefix}/${sbin}"/{halt,init,poweroff,reboot,shutdown} || die
                rm "${ED}"/usr/share/man/man1/init.1 || die
-               rm 
"${ED}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 
|| die
+               rm "${ED}"/usr/share/man/man8/{halt,poweroff,reboot,shutdown}.8 
|| die
        fi
 
        if ! use resolvconf && ! use sysv-utils && use split-usr; then

Reply via email to