Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v2 6/9] acct-{group,user}.eclass: WIP eclasses to maintain users/groups
Date: Thu, 06 Jun 2019 07:05:47
Message-Id: w6g4l538a83.fsf@kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [PATCH v2 6/9] acct-{group,user}.eclass: WIP eclasses to maintain users/groups by "Michał Górny"
1 >>>>> On Thu, 06 Jun 2019, Michał Górny wrote:
2
3 > On Wed, 2019-06-05 at 21:10 +0200, Pacho Ramos wrote:
4 >> > +# Then you add appropriate dependency to your package. The dependency
5 >> > +# type(s) should be:
6 >> > +# - DEPEND (+ RDEPEND) if the group is already needed at build time,
7 >> > +# - RDEPEND if it is needed at install time (e.g. you 'fowners' files
8 >> > +# in pkg_preinst),
9 >> > +# - PDEPEND if it is only needed at runtime.
10 >>
11 >> Maybe is a stupid question but, why is PDEPEND preferred over RDEPEND
12 >> for packages needing the group only at runtime?
13
14 > To delay user creation as far as possible, in case the package failed
15 > to build. Not that it will usually work since Portage will install
16 > the user early anyway.
17
18 It isn't very useful then, and is more error prone than having RDEPEND
19 in both the second and third case. Plus, errors won't be necessarily
20 caught, because Portage will treat PDEPEND in the same way as RDEPEND
21 (unless there would be circular dependencies, but I don't see how that
22 could happen).
23
24 So, simplify and go for RDEPEND (+DEPEND if needed) only?
25
26 Ulrich

Attachments

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