Re: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"?

2017-11-13 Thread Alan McKinnon
On 12/11/2017 13:47, Neil Bothwick wrote:
> On Sun, 12 Nov 2017 10:55:04 +, Akater wrote:
> 
>> It looks like systemd scripts often (always?) get installed, regardless
>> of USE flag settings.
> 
> Because they are tiny so impact of them is negligible. On the other hand,
> if you don't have them and want to switch to systemd, you would end up
> having to recompile half of world just to get the service files.
>  
>> Why would they? Is this a policy?
> 
> AFAIK, yes.
> 
> If you really want to do this, you can do it with INSTALL_MASK in
> make.conf.

but you have to ask yourself, why bother even with that?

Yes, I know there are some Lennart haters around who refuse under any
circumstances to ever have anything on a computer that might in any way
be tainted by Lennart, no matter how tangentially.

But that's just daft. No-one complains about /usr/share/doc and the
large number of docs there, many of which are larger than all the
systemd unit files combined. Or what multilib setups end up doing in /lib

It makes engineering sense to install all the various init system's unit
and scripts for all packages, then the sysadmin gets to pick which one
is in use.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"?

2017-11-12 Thread Walter Dnes
On Sun, Nov 12, 2017 at 10:55:04AM +, Akater wrote
> It looks like systemd scripts often (always?) get installed, regardless
> of USE flag settings.
> 
> Why would they? Is this a policy?
> 
> E.g., in
> 
> cat /usr/portage/net-p2p/transmission/transmission-2.92-r2.ebuild | grep 
> systemd_
> systemd_dounit daemon/transmission-daemon.service
> systemd_install_serviced 
> "${FILESDIR}"/transmission-daemon.service.conf
> 
> why not
> 
> if use systemd ; then
>systemd_dounit daemon/transmission-daemon.service
>systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
> fi
> 
> instead?

  Add...

INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"

...to /etc/portage/make.conf

  H, I wonder if you could...

rm -rf /lib/systemd /usr/lib/systemd/

...and then create symlinks to /dev/null

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"?

2017-11-12 Thread Kai Peter

On 2017-11-12 12:47, Neil Bothwick wrote:

On Sun, 12 Nov 2017 10:55:04 +, Akater wrote:

It looks like systemd scripts often (always?) get installed, 
regardless

of USE flag settings.


Because they are tiny so impact of them is negligible. On the other 
hand,

if you don't have them and want to switch to systemd, you would end up
having to recompile half of world just to get the service files.
As long the ebuild doesn't have a USE flag "systemd" - may be. If the 
(local) USE flag is for service files only, it could may be considered 
as overhead. But if there is a USE flag "system" - doesn't have the 
package to be rebuild somehow or other?



Why would they? Is this a policy?


AFAIK, yes.


--
Sent with eQmail-1.10



Re: [gentoo-user] Why do systemd scripts get installed with USE="-systemd"?

2017-11-12 Thread Neil Bothwick
On Sun, 12 Nov 2017 10:55:04 +, Akater wrote:

> It looks like systemd scripts often (always?) get installed, regardless
> of USE flag settings.

Because they are tiny so impact of them is negligible. On the other hand,
if you don't have them and want to switch to systemd, you would end up
having to recompile half of world just to get the service files.
 
> Why would they? Is this a policy?

AFAIK, yes.

If you really want to do this, you can do it with INSTALL_MASK in
make.conf.


-- 
Neil Bothwick

If you shoot a mime, should you use a silencer?


pgpXz1Whb5p3s.pgp
Description: OpenPGP digital signature


[gentoo-user] Why do systemd scripts get installed with USE="-systemd"?

2017-11-12 Thread Akater
It looks like systemd scripts often (always?) get installed, regardless
of USE flag settings.

Why would they? Is this a policy?

E.g., in

cat /usr/portage/net-p2p/transmission/transmission-2.92-r2.ebuild | grep 
systemd_
systemd_dounit daemon/transmission-daemon.service
systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf

why not

if use systemd ; then
   systemd_dounit daemon/transmission-daemon.service
   systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
fi

instead?



signature.asc
Description: PGP signature