>>>>> On Thu, 06 Jun 2019, Michał Górny wrote:

> On Wed, 2019-06-05 at 21:10 +0200, Pacho Ramos wrote:
>> > +# Then you add appropriate dependency to your package.  The dependency
>> > +# type(s) should be:
>> > +# - DEPEND (+ RDEPEND) if the group is already needed at build time,
>> > +# - RDEPEND if it is needed at install time (e.g. you 'fowners' files
>> > +#   in pkg_preinst),
>> > +# - PDEPEND if it is only needed at runtime.
>> 
>> Maybe is a stupid question but, why is PDEPEND preferred over RDEPEND
>> for packages needing the group only at runtime?

> To delay user creation as far as possible, in case the package failed
> to build.  Not that it will usually work since Portage will install
> the user early anyway.

It isn't very useful then, and is more error prone than having RDEPEND
in both the second and third case. Plus, errors won't be necessarily
caught, because Portage will treat PDEPEND in the same way as RDEPEND
(unless there would be circular dependencies, but I don't see how that
could happen).

So, simplify and go for RDEPEND (+DEPEND if needed) only?

Ulrich

Attachment: signature.asc
Description: PGP signature

Reply via email to