commit:     657d6906141acef288fa31c5ffcc9641795a7337
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 26 21:23:28 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 21:26:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657d6906

sys-apps/sysvinit: fix install with EPREFIX set

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

 sys-apps/sysvinit/sysvinit-3.08.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/sysvinit/sysvinit-3.08.ebuild 
b/sys-apps/sysvinit/sysvinit-3.08.ebuild
index f5abf9ccf170..e0191c1ef4c4 100644
--- a/sys-apps/sysvinit/sysvinit-3.08.ebuild
+++ b/sys-apps/sysvinit/sysvinit-3.08.ebuild
@@ -141,7 +141,7 @@ src_compile() {
 }
 
 src_install() {
-       emake -C src install ROOT="${D}"
+       emake -C src install ROOT="${ED}"
        dodoc README doc/*
 
        insinto /etc
@@ -173,7 +173,7 @@ pkg_postinst() {
        # Reload init to fix unmounting problems of / on next reboot.
        # This is really needed, as without the new version of init cause init
        # not to quit properly on reboot, and causes a fsck of / on next reboot.
-       if [[ -z ${ROOT} ]] ; then
+       if [[ -z ${EROOT} ]] ; then
                if [[ -e /dev/initctl ]] && [[ ! -e /run/initctl ]] ; then
                        ln -s /dev/initctl /run/initctl \
                                || ewarn "Failed to set /run/initctl symlink!"

Reply via email to