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
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(-)
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.
*** Bug 659196 has been marked as a duplicate of this bug. ***