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 |