1 |
On 08/17/2011 12:20 AM, Michał Górny wrote: |
2 |
> On Tue, 16 Aug 2011 03:01:26 -0700 |
3 |
> Zac Medico <zmedico@g.o> wrote: |
4 |
> |
5 |
>> On 08/16/2011 02:32 AM, Ciaran McCreesh wrote: |
6 |
>>> On Tue, 16 Aug 2011 00:19:38 -0700 |
7 |
>>> Zac Medico <zmedico@g.o> wrote: |
8 |
>>>>> Isn't that another, ugly, non-PMS hack which makes people think |
9 |
>>>>> they are creating correct packages? |
10 |
>>>> |
11 |
>>>> Are you saying that you'd prefer to have package managers pull in |
12 |
>>>> redundant packages for not good reason? |
13 |
>>> |
14 |
>>> No, package managers should get things right regardless of whether |
15 |
>>> something is in the 'virtual/' category or not. If they can't get |
16 |
>>> things right, then we need to supply them with more data. |
17 |
>> |
18 |
>> Consider the virtual/jre and virtual/jdk case. Suppose that |
19 |
>> virtual/jdk isn't installed for some reason, but dev-java/sun-jdk |
20 |
>> which satisfies it is already installed. In this case, unless you |
21 |
>> know that virtual/jdk is zero-cost, it's not clear that it costs less |
22 |
>> to install virtual/jdk than to install dev-java/sun-jre-bin. There |
23 |
>> may be lots of cases like this where zero-cost metadata would be |
24 |
>> useful. |
25 |
> |
26 |
> Maybe virtual/jre & virtual/jdk should me merged into a single ebuild |
27 |
> with USE-switchable behavior? Something like: |
28 |
> |
29 |
> RDEPEND="jdk? ( || ( a-jdk b-jdk ) ) |
30 |
> !jdk? ( || ( a-jre b-jre a-jdk b-jdk ) )" |
31 |
|
32 |
Here it seems like you're introducing a USE flag in order to overcome a |
33 |
shortcoming of the dependency resolver. |
34 |
|
35 |
Note that the jre and jdk relationship isn't necessarily the only |
36 |
relationship with these properties. Wouldn't it be better to make the |
37 |
dependency resolver a bit smarter (as implemented in portage for many |
38 |
years), than to introduce a bunch of workarounds like the jdk USE flag |
39 |
that you suggest? |
40 |
-- |
41 |
Thanks, |
42 |
Zac |