FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 08-08-2012, 01:11 PM
"Jason A. Donenfeld"
 
Default Global Systemd USE Flag

Hi,

Sorry if this has been discussed to death, but I couldn't find any
definitive decisions on it, so I thought I'd mention things in a
fairly simple manner:

Step 1: I use OpenRC/sysvinit.

Dell ~ # readlink -f /proc/1/exe
/sbin/init
Dell ~ # equery b /sbin/init
* Searching for /sbin/init ...
sys-apps/sysvinit-2.88-r3 (/sbin/init)


Step 2: There are lots of systemd service files installed.

Dell ~ # ls /usr/lib/systemd/system/*.service|wc -l
21


Step 3: What on earth is installing them?

Dell ~ # equery b /usr/lib/systemd/system/*.service
media-libs/libcanberra-0.29
(/usr/lib/systemd/system/canberra-system-shutdown-reboot.service)
media-libs/libcanberra-0.29
(/usr/lib/systemd/system/canberra-system-bootup.service)
media-libs/libcanberra-0.29
(/usr/lib/systemd/system/canberra-system-shutdown.service)
media-sound/alsa-utils-1.0.25-r2 (/usr/lib/systemd/system/alsa-restore.service)
media-sound/alsa-utils-1.0.25-r2 (/usr/lib/systemd/system/alsa-store.service)
net-misc/dhcpcd-5.5.6 (/usr/lib/systemd/system/dhcpcd.service)
net-misc/openssh-6.0_p1-r1 (/usr/lib/systemd/system/sshd@.service)
net-misc/openssh-6.0_p1-r1 (/usr/lib/systemd/system/sshd.service)
net-wireless/bluez-4.101-r1 (/usr/lib/systemd/system/bluetooth.service)
net-wireless/wpa_supplicant-1.0 (/usr/lib/systemd/system/wpa_supplicant.service)
net-wireless/wpa_supplicant-1.0
(/usr/lib/systemd/system/wpa_supplicant@.service)
sys-apps/dbus-1.6.4 (/usr/lib/systemd/system/dbus.service)
sys-auth/consolekit-0.4.5_p20120320
(/usr/lib/systemd/system/console-kit-log-system-start.service)
sys-auth/consolekit-0.4.5_p20120320
(/usr/lib/systemd/system/console-kit-daemon.service)
sys-auth/consolekit-0.4.5_p20120320
(/usr/lib/systemd/system/console-kit-log-system-restart.service)
sys-auth/consolekit-0.4.5_p20120320
(/usr/lib/systemd/system/console-kit-log-system-stop.service)
sys-auth/polkit-0.107 (/usr/lib/systemd/system/polkit.service)
sys-fs/udev-187-r1 (/usr/lib/systemd/system/systemd-udev-trigger.service)
sys-fs/udev-187-r1 (/usr/lib/systemd/system/systemd-udev-settle.service)
sys-fs/udev-187-r1 (/usr/lib/systemd/system/systemd-udevd.service)
sys-power/upower-0.9.17-r1 (/usr/lib/systemd/system/upower.service)


Yowza! All the packages that provide systemd unit files are installing
them?! But I don't even use systemd. I don't want this cruft on my
system.

Proposal: global USE flag for systemd, just like there's one for openrc.


Thanks,
Jason
 
Old 08-08-2012, 02:15 PM
Michał Górny
 
Default Global Systemd USE Flag

On Wed, 8 Aug 2012 15:11:42 +0200
"Jason A. Donenfeld" <Jason@zx2c4.com> wrote:

> Sorry if this has been discussed to death, but I couldn't find any
> definitive decisions on it, so I thought I'd mention things in a
> fairly simple manner:
>
> Step 1: I use OpenRC/sysvinit.
>
> Dell ~ # readlink -f /proc/1/exe
> /sbin/init
> Dell ~ # equery b /sbin/init
> * Searching for /sbin/init ...
> sys-apps/sysvinit-2.88-r3 (/sbin/init)
>
>
> Step 2: There are lots of systemd service files installed.
>
> Dell ~ # ls /usr/lib/systemd/system/*.service|wc -l
> 21
>
>
> Step 3: What on earth is installing them?
>
> Dell ~ # equery b /usr/lib/systemd/system/*.service
> media-libs/libcanberra-0.29
> (/usr/lib/systemd/system/canberra-system-shutdown-reboot.service)
> media-libs/libcanberra-0.29
> (/usr/lib/systemd/system/canberra-system-bootup.service)
> media-libs/libcanberra-0.29
> (/usr/lib/systemd/system/canberra-system-shutdown.service)
> media-sound/alsa-utils-1.0.25-r2
> (/usr/lib/systemd/system/alsa-restore.service)
> media-sound/alsa-utils-1.0.25-r2
> (/usr/lib/systemd/system/alsa-store.service) net-misc/dhcpcd-5.5.6
> (/usr/lib/systemd/system/dhcpcd.service) net-misc/openssh-6.0_p1-r1
> (/usr/lib/systemd/system/sshd@.service) net-misc/openssh-6.0_p1-r1
> (/usr/lib/systemd/system/sshd.service) net-wireless/bluez-4.101-r1
> (/usr/lib/systemd/system/bluetooth.service)
> net-wireless/wpa_supplicant-1.0
> (/usr/lib/systemd/system/wpa_supplicant.service)
> net-wireless/wpa_supplicant-1.0
> (/usr/lib/systemd/system/wpa_supplicant@.service) sys-apps/dbus-1.6.4
> (/usr/lib/systemd/system/dbus.service)
> sys-auth/consolekit-0.4.5_p20120320
> (/usr/lib/systemd/system/console-kit-log-system-start.service)
> sys-auth/consolekit-0.4.5_p20120320
> (/usr/lib/systemd/system/console-kit-daemon.service)
> sys-auth/consolekit-0.4.5_p20120320
> (/usr/lib/systemd/system/console-kit-log-system-restart.service)
> sys-auth/consolekit-0.4.5_p20120320
> (/usr/lib/systemd/system/console-kit-log-system-stop.service)
> sys-auth/polkit-0.107 (/usr/lib/systemd/system/polkit.service)
> sys-fs/udev-187-r1
> (/usr/lib/systemd/system/systemd-udev-trigger.service)
> sys-fs/udev-187-r1
> (/usr/lib/systemd/system/systemd-udev-settle.service)
> sys-fs/udev-187-r1 (/usr/lib/systemd/system/systemd-udevd.service)
> sys-power/upower-0.9.17-r1 (/usr/lib/systemd/system/upower.service)
>
>
> Yowza! All the packages that provide systemd unit files are installing
> them?! But I don't even use systemd. I don't want this cruft on my
> system.
>
> Proposal: global USE flag for systemd, just like there's one for
> openrc.

INSTALL_MASK=/usr/lib/systemd

And live happy to the day you notice your system no longer boots.

--
Best regards,
Michał Górny
 
Old 08-08-2012, 02:20 PM
"Jason A. Donenfeld"
 
Default Global Systemd USE Flag

On Wed, Aug 8, 2012 at 4:15 PM, Michał Górny <mgorny@gentoo.org> wrote:
> INSTALL_MASK=/usr/lib/systemd
>
> And live happy to the day you notice your system no longer boots.

This is a nice bandaid, and sure, it "solves" the immediate issue...
but it doesn't actually solve the actual issue: when packages
optionally install unwanted bloat, we make them an option via a USE
flag. In this case, especially, since systemd isn't even the default
(nor officially supported, whatever that amounts to), users certainly
should not have to manually add an install mask to make portage do
what it already should do.

Besides, as systemd gains momentum, we can probably expect that
various pieces of software will have options to enable a systemd mode
or a systemd build, or what have you, and then in this case, a global
USE flag becomes even more imperative.
 
Old 08-08-2012, 02:22 PM
"Jason A. Donenfeld"
 
Default Global Systemd USE Flag

On Wed, Aug 8, 2012 at 4:15 PM, Michał Górny <mgorny@gentoo.org> wrote:
> INSTALL_MASK=/usr/lib/systemd

As an unrelated side note, in case any one on the internet finds this
thread trying to "solve" this issue, it's worth pointing out that
since udev now installs that directory, the INSTALL_MASK should
actually be /usr/lib/systemd/system.
 

Thread Tools




All times are GMT. The time now is 10:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org