sys-apps/systemd-244 with USE="-resolvconf" or USE="-sysv-utils" fails to install when /usr/sbin is symbolic link. Example with USE="resolvconf split-usr -sysv-utils": rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/halt': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/init': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/poweroff': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/reboot': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/runlevel': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/shutdown': No such file or directory rm: cannot remove '/var/tmp/portage/sys-apps/systemd-244/image/sbin/telinit': No such file or directory * ERROR: sys-apps/systemd-244::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 4564: Called multilib-minimal_src_install * environment, line 2680: Called multilib_src_install_all * environment, line 3121: Called die * The specific snippet of code: * rm "${ED}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die; These symbolic links are installed into directory "bin", not "sbin". meson_options.txt contains: option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'], description : '''sbin is not a symlink to bin''') meson.build contains: if get_option('split-bin') == 'auto' split_bin = run_command('test', '-L', '/usr/sbin').returncode() != 0 else split_bin = get_option('split-bin') == 'true' endif ... rootsbindir = join_paths(rootprefixdir, split_bin ? 'sbin' : 'bin') Probably ebuilds should pass -Dsplit-bin=true, or replace literal "sbin" with a variable in these paths passed to rm and rmdir commands. Reading of sources of systemd-242 and systemd-243 suggests that they should be equally affected.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c60b967252a9c4904b8b925cfc4c8577cc204b commit b1c60b967252a9c4904b8b925cfc4c8577cc204b Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2020-01-07 07:24:40 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-01-07 07:24:40 +0000 sys-apps/systemd: pass -Dsplit-bin=true to meson configure Closes: https://bugs.gentoo.org/704900 Package-Manager: Portage-2.3.84_p2, Repoman-2.3.20_p24 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/systemd/systemd-243-r2.ebuild | 1 + sys-apps/systemd/systemd-244.ebuild | 1 + sys-apps/systemd/systemd-9999.ebuild | 1 + 3 files changed, 3 insertions(+)