I don't know why this fails on this particular system. On other systems it succeeds, but on this particular system: ``` Running custom install script '/bin/sh -c mkdir -p $DESTDIR//var/lib/systemd' Running custom install script '/bin/sh -c touch $DESTDIR/usr' rmdir: failed to remove '/var/tmp/portage/sys-apps/systemd-254/image/sbin': Directory not empty * ERROR: sys-apps/systemd-254::gentoo failed (install phase): ``` I have tried with MAKEOPTS=-j1 but that yielded the same result. The contents of the `sbin` directory: ``` # ls -al sbin total 0 drwxr-xr-x 2 jenkins jenkins 60 Aug 2 07:06 . drwxr-xr-x 9 jenkins jenkins 180 Aug 2 07:06 .. lrwxrwxrwx 1 jenkins jenkins 26 Aug 2 07:06 mount.ddi -> ../usr/bin/systemd-dissect ``` ``` [ebuild U ] sys-apps/systemd-254:0/2::gentoo [253.7:0/2::gentoo] USE="openssl pam (split-usr) -acl -apparmor -audit -boot% -cgroup-hybrid -cryptsetup -curl -dns-over-tls -elfutils -fido2 -gcrypt -gnutls -homed -http -idn -importd -iptables -kmod -lz4 -lzma -pcre -pkcs11 -policykit -pwquality -qrcode -resolvconf -seccomp -secureboot (-selinux) -sysv-utils -test -tpm -vanilla -xkb -zstd (-gnuefi%)" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_11%* -python3_10%" 13985 KiB ```
Please include the full build.log and emerge --info.
Created attachment 866844 [details] build.log
Created attachment 866845 [details] emerge --info
Also, I don't know why but this system uniquely had `FEATURES=nostrip`. So I took that configuration out, but it still yielded the same result.
A warning for you in case you haven't seen the news item: split-usr support will be removed in the next systemd release (255). You will need to migrate your systems to merged-usr if you want to continue using systemd. https://www.gentoo.org/support/news-items/2022-12-01-systemd-usrmerge.html https://wiki.gentoo.org/wiki/Merge-usr
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94efe7631fb9347fdaa11325ddecd432980213d9 commit 94efe7631fb9347fdaa11325ddecd432980213d9 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-08-02 15:08:20 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-08-02 15:14:51 +0000 sys-apps/systemd: do not remove "${ED}/sbin" on split-usr systemd-254 installs a symlink "/sbin/mount.ddi" whenever libblkid is available. Gentoo always has libblkid via sys-apps/util-linux. Closes: https://bugs.gentoo.org/911595 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/systemd/systemd-254.ebuild | 4 ---- 1 file changed, 4 deletions(-)