Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659042 - sys-apps/systemd-239[resolvconf,-sysv-utils] - rmdir: failed to remove '${D}/sbin': Directory not empty
Summary: sys-apps/systemd-239[resolvconf,-sysv-utils] - rmdir: failed to remove '${D}/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
: 659196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-25 07:30 UTC by Alex Turbov
Modified: 2018-06-26 00:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Turbov 2018-06-25 07:30:39 UTC
Build failure w/ the following error:

rmdir: failed to remove '/storage/tmp/paludis/sys-apps-systemd-239/image/sbin': Directory not empty


The problem of the ebuild is here:

        if ! use resolvconf; then
                rm -f "${ED%/}${rootprefix}"/sbin/resolvconf || die
        fi

        if ! use sysv-utils; then
                rm "${ED%/}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die
                rmdir "${ED%/}${rootprefix}"/sbin || die
                rm "${ED%/}"/usr/share/man/man1/init.1 || die
                rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 || die
        fi


i.e. having `+resolvconf` and `-sysv-utils` make this happen

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2018-06-25 21:14:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840aa1653307566107f0ef2f50f894d2a863891e

commit 840aa1653307566107f0ef2f50f894d2a863891e
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-06-25 21:14:22 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-06-25 21:14:37 +0000

    sys-apps/systemd: fix install logic that removes /sbin
    
    Closes: https://bugs.gentoo.org/659042
    Package-Manager: Portage-2.3.40_p15, Repoman-2.3.9_p247

 sys-apps/systemd/systemd-239.ebuild  | 5 ++++-
 sys-apps/systemd/systemd-9999.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 2 Fred Krogh 2018-06-25 22:18:44 UTC
I perhaps have the same or related bug.  Install fails with

Running custom install script '/bin/sh -c touch $DESTDIR/usr'
rmdir: failed to remove '/var/tmp/portage/sys-apps/systemd-239/image/sbin': Directory not empty
 * ERROR: sys-apps/systemd-239::gentoo failed (install phase):
 *   (no error message)

I'll post more info. if it might be of use.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-06-26 00:15:28 UTC
*** Bug 659196 has been marked as a duplicate of this bug. ***