Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: 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 04:57:40
Message-Id: 009f8dcb15523a2cef659cbb3d9b31ca251ba69a.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH v2 6/9] acct-{group,user}.eclass: WIP eclasses to maintain users/groups by Pacho Ramos
1 On Wed, 2019-06-05 at 21:10 +0200, Pacho Ramos wrote:
2 > El mié, 05-06-2019 a las 11:12 +0200, Michał Górny escribió:
3 > > [...]
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 for
12 > packages needing the group only at runtime?
13
14 To delay user creation as far as possible, in case the package failed to
15 build. Not that it will usually work since Portage will install
16 the user early anyway.
17
18 >
19 > If I don't misremember, PDEPEND was meant to be used to avoid circular deps
20 > issues, while using RDEPEND otherwise
21 >
22 > Thanks :)
23
24 --
25 Best regards,
26 Michał Górny

Attachments

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

Replies