Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] tmpfiles virtual
Date: Wed, 16 Nov 2016 15:10:52
Message-Id: 20161116150823.GA18287@linux1.gaikai.biz
In Reply to: Re: [gentoo-dev] tmpfiles virtual by Ian Stakenvicius
1 On Wed, Nov 16, 2016 at 08:57:57AM -0500, Ian Stakenvicius wrote:
2 > On 15/11/16 02:56 PM, Mike Gilbert wrote:
3 > > On Tue, Nov 15, 2016 at 2:51 PM, Ian Stakenvicius <axs@g.o> wrote:
4 > >> On 15/11/16 02:42 PM, Michał Górny wrote:
5 > >>> On Tue, 15 Nov 2016 13:57:14 -0500
6 > >>> Ian Stakenvicius <axs@g.o> wrote:
7 > >>>
8 > >>>> On 15/11/16 12:56 PM, William Hubbs wrote:
9 > >>>>> OpenRC itself doesn't install any tmpfiles.d files, and my plan is to
10 > >>>>> make sure virtual/tmpfiles and opentmpfiles go stable at the same time
11 > >>>>> the new OpenRC does, along with at least one package that uses them.
12 > >>>>>
13 > >>>>> This will also definitely be covered in the upstream OpenRC news.
14 > >>>>>
15 > >>>>> WRT OpenRC pulling it in, it isn't a build or runtime dependency of
16 > >>>>> OpenRC, and it may not even be needed in some cases, so I'm not sure how
17 > >>>>> much sense it makes from the OpenRC level to pull it in or which type of
18 > >>>>> dependency to use for it.
19 > >>>>
20 > >>>> I'm with William on this. As long as the packages that install items
21 > >>>> (init scripts, whatever) that -do- need tmpfiles.d support depend on
22 > >>>> virtual/tmpfilesd, this will ensure it's installed regardless of
23 > >>>> whether or not openrc depends on the virtual directly.
24 > >>>
25 > >>> The ebuilds are going to only need a pkg_*-time dependency on the tool.
26 > >>> While this means RDEPEND at the moment due to our dependency class
27 > >>> limits, we may have a proper dependency type for it in EAPI 7. In this
28 > >>> case, the PM will be allowed to unmerge opentmpfiles as soon
29 > >>> as the package is installed.
30 > >>>
31 > >>
32 > >> The EBUILDS, yes.
33 > >>
34 > >> This tool isn't just for ebuilds though, it's also for managing
35 > >> tmpfiles.d processing at boot time as well as (i assume) via
36 > >> continuous daemon-like operation for the services that install files
37 > >> into /usr/lib/tmpfiles.d/ (apache, libvirtd, lvm2, mysql, samba are
38 > >> just a few that I have on my own system right now) when systemd isn't
39 > >> installed.
40 > >>
41 > >> Or am I wrong on this? It'd seem odd that we would go through this
42 > >> just to make a tool for ebuilds to use, if non-systemd systems aren't
43 > >> going to use it at boot time as well...
44 > >
45 > > Right; if the functionality is being stripped out of OpenRC, it will
46 > > definitely need to remain installed and provide init.d scripts for
47 > > processing at boot time.
48 > >
49 >
50 > Right, so we're back to how will we deal with the init scripts for
51 > openrc? I agree that the virtual suffices, and that openrc doesn't
52 > need tmpfiles.d processing and so likely shouldn't depend on the
53 > virtual. But the init scripts need to be there in some form or another.
54
55 opentmpfiles will be updated to install the service scripts which
56 will be run when OpenRC boots a system. There is nothing for
57 it to do if systemd is used to boot the system.
58
59 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] tmpfiles virtual Ian Stakenvicius <axs@g.o>