Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"?
Date: Mon, 13 Nov 2017 01:57:29
Message-Id: 20171113015713.GA9438@waltdnes.org
In Reply to: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"? by Akater
1 On Sun, Nov 12, 2017 at 10:55:04AM +0000, Akater wrote
2 > It looks like systemd scripts often (always?) get installed, regardless
3 > of USE flag settings.
4 >
5 > Why would they? Is this a policy?
6 >
7 > E.g., in
8 >
9 > cat /usr/portage/net-p2p/transmission/transmission-2.92-r2.ebuild | grep systemd_
10 > systemd_dounit daemon/transmission-daemon.service
11 > systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
12 >
13 > why not
14 >
15 > if use systemd ; then
16 > systemd_dounit daemon/transmission-daemon.service
17 > systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
18 > fi
19 >
20 > instead?
21
22 Add...
23
24 INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"
25
26 ...to /etc/portage/make.conf
27
28 Hmmmm, I wonder if you could...
29
30 rm -rf /lib/systemd /usr/lib/systemd/
31
32 ...and then create symlinks to /dev/null
33
34 --
35 Walter Dnes <waltdnes@××××××××.org>
36 I don't run "desktop environments"; I run useful applications