Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Installing systemd units with gx86 packages
Date: Sun, 24 Apr 2011 22:11:52
Message-Id: 20110424221110.GB24437@linux1
In Reply to: Re: [gentoo-dev] Installing systemd units with gx86 packages by "Canek Peláez Valdés"
1 On Sun, Apr 24, 2011 at 04:55:14PM -0500, Canek Peláez Valdés wrote:
2 > On Sun, Apr 24, 2011 at 4:35 PM, William Hubbs <williamh@g.o> wrote:
3 > > On Sun, Apr 24, 2011 at 09:36:30AM +0200, Michał Górny wrote:
4 > >> Fellow devs,
5 > >>
6 > >> I've started working on bringing systemd to Gentoo [1] lately,
7 > >> and I think it is important to raise the aspect of systemd unit
8 > >> inclusion in various packages in gx86 ASAP.
9 > >>
10 > >> The number of packages coming with systemd units is growing rapidly
11 > >> recently, and that especially applies to freedesktop packages.
12 > >> One side effect of that is that these packages treat systemd
13 > >> as an automagic dependency, installing systemd units whenever its
14 > >> pkgconfig file is installed. I already opened two bugs on that [2,3]
15 > >> but there would be much more...
16 > >
17 > > I think the better way to handle this will be to patch the build systems
18 > > to not make this an automagic dependency and send those patches
19 > > upstream.
20 > >
21 > > http://www.gentoo.org/proj/en/qa/automagic.xml
22 > >
23 > > I'm not a member of qa, but I agree with this position on automagic
24 > > dependencies.
25 >
26 > I'm speaking as a simple user, but I don't think the systemd unit
27 > files qualify as automagic dependencies as described by the QA
28 > document. In the first place, as Michael pointed out, we can disable
29 > them with --without-systemdsystemunitdir, so there is no magic at all.
30
31 Ah ok, I guess I missed that. The qa document says there is an automagic
32 dependency if the builder can't turn this off. But, you are asying that
33 the builder can turn it off with the --without option.
34
35 In that case, the dependency is not automagic.
36
37 > In the second place, the usual Gentoo way of enabling OpenRC services
38 > is to *add* init.d scripts in the ebuild, and this is completely
39 > orthogonal to a package installing a systemd unit file (the presence
40 > of the later does not matter to OpenRC at all).
41
42 This is another topic I may bring up at some point, if you are using
43 systemd, etc, and openrc is not even installed on your system, do you
44 need /etc/init.d at all? Once openrc goes stable, I might bring that up
45 for discussion.
46
47 >And finally, the idea
48 > of systemd is to be a completely distro-agnostic init system, without
49 > the multiple failures of SysV, and without the one-company-rule of
50 > Upstart; this seems to be actually working, hence a lot of downstream
51 > packages are willing (and eager) to ship systemd unit files. The init
52 > scripts belong to the packages, they know best how the
53 > service/whatever needs to be run.
54 >
55 > I'm using Gentoo+systemd since a couple of months, and it works
56 > incredible well. And I really like the idea of freeing the rather
57 > precious Gentoo-developers time off of writing init scripts.
58
59 heh, actually I like this idea also. :-)

Replies

Subject Author
Re: [gentoo-dev] Installing systemd units with gx86 packages "Michał Górny" <mgorny@g.o>