Some packages install systemd services into /lib/systemd/system even while I have no systemd installed. My list is: $ equery b /lib/systemd * Searching for /lib/systemd ... media-sound/alsa-utils-1.0.24.2-r1 (/lib/systemd) net-wireless/bluez-4.96 (/lib/systemd) net-wireless/wpa_supplicant-0.7.3-r5 (/lib/systemd) sys-apps/dbus-1.4.16 (/lib/systemd) sys-auth/consolekit-0.4.5-r1 (/lib/systemd) sys-power/acpid-2.0.12 (/lib/systemd) This files should be optional because not all people use systemd. That's why it's just a garbage for me. Make a "+systemd" or "systemd" useflag for systemd support for example. That's what useflags here for. Reproducible: Always Steps to Reproduce: 1. emerge any of listed packages without systemd installed. Actual Results: Get garbage in /lib/systemd. Expected Results: Should get no garbage files. List of my garbage files: $ find /lib/systemd /lib/systemd /lib/systemd/system /lib/systemd/system/multi-user.target.wants /lib/systemd/system/multi-user.target.wants/dbus.service /lib/systemd/system/console-kit-log-system-start.service /lib/systemd/system/wpa_supplicant.service /lib/systemd/system/basic.target.wants /lib/systemd/system/basic.target.wants/console-kit-log-system-start.service /lib/systemd/system/basic.target.wants/alsa-restore.service /lib/systemd/system/halt.target.wants /lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service /lib/systemd/system/alsa-restore.service /lib/systemd/system/shutdown.target.wants /lib/systemd/system/shutdown.target.wants/alsa-store.service /lib/systemd/system/dbus.socket /lib/systemd/system/reboot.target.wants /lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service /lib/systemd/system/wpa_supplicant@.service /lib/systemd/system/dbus.service /lib/systemd/system/kexec.target.wants /lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service /lib/systemd/system/poweroff.target.wants /lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service /lib/systemd/system/console-kit-log-system-restart.service /lib/systemd/system/sockets.target.wants /lib/systemd/system/sockets.target.wants/dbus.socket /lib/systemd/system/console-kit-daemon.service /lib/systemd/system/dbus.target.wants /lib/systemd/system/dbus.target.wants/dbus.socket /lib/systemd/system/bluetooth.service /lib/systemd/system/acpid.service /lib/systemd/system/console-kit-log-system-stop.service /lib/systemd/system/alsa-store.service
# emerge install-mask # install-mask -a systemd
That's not a fix, that's a workaround at most.
This has been discussed before on the Gentoo development mailing list. Having the files there does not hurt anything or generate extra dependencies, so having a USE flag for it is a bit pointless. If you don't want them, just use INSTALL_MASK.
Can you give me a link to that discussion?
Anybody alive here?
(In reply to comment #2) > That's not a fix, that's a workaround at most. Then USE flag would be a workaround as well. INSTALL_MASK is officially supported Portage feature, and the best solution for the case. (In reply to comment #4) > Can you give me a link to that discussion? I think the most relevant discussion was one with bash-completion [1]. The systemd related idea was accepted without any replies. [1]:http://thread.gmane.org/gmane.linux.gentoo.devel/71578
*** Bug 416901 has been marked as a duplicate of this bug. ***