Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388249 - some packages install systemd services even while I have no systemd installed
Summary: some packages install systemd services even while I have no systemd installed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 416901 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-23 18:36 UTC by i.Dark_Templar
Modified: 2012-05-21 12:48 UTC (History)
4 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 i.Dark_Templar 2011-10-23 18:36:12 UTC
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
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-10-23 18:46:28 UTC
# emerge install-mask
# install-mask -a systemd
Comment 2 i.Dark_Templar 2011-10-23 18:58:04 UTC
That's not a fix, that's a workaround at most.
Comment 3 Mike Gilbert gentoo-dev 2011-10-23 22:27:26 UTC
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.
Comment 4 i.Dark_Templar 2011-10-24 09:09:12 UTC
Can you give me a link to that discussion?
Comment 5 i.Dark_Templar 2011-10-24 19:25:56 UTC
Anybody alive here?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-10-25 20:41:24 UTC
(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
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-05-21 12:48:50 UTC
*** Bug 416901 has been marked as a duplicate of this bug. ***