1 |
On Fri, 17 Dec 2010 20:13:55 -0600 |
2 |
Donnie Berkholz <dberkholz@g.o> wrote: |
3 |
> > What about if you decide upon a early on, and then later on |
4 |
> > something hard-depends upon b? |
5 |
> |
6 |
> Then you're collapsing the graph too early. =) |
7 |
> (speaking as an utter novice) |
8 |
|
9 |
Yeah, but unfortunately, there's no way to figure out when too early |
10 |
is. What if it's one of a's dependencies that hard-depends upon b? |
11 |
Until you've decided upon something, you don't know what dependencies |
12 |
are going to be pulled in, so you're left having to make possibly |
13 |
incorrect decisions and then try to undo them later on if possible. |
14 |
|
15 |
> Why is this a problem that needs to be resolved at the specification |
16 |
> level rather than a difference between implementations? If a package |
17 |
> manager is making strange choices, |
18 |
|
19 |
The problem's how you define strange choices. If dependencies aren't |
20 |
listed best-leftmost, every package manager makes strange choices for |
21 |
some combinations. Either this can be fixed by getting developers to |
22 |
always write things best-leftmost, or it can be fixed by mandating |
23 |
specific behaviour for all package managers for || ( ) deps. I'd much |
24 |
rather we did the former. |
25 |
|
26 |
> I'd thought people already knew that this was typical behavior of an |
27 |
> || group (as per the simple example in ebuild(5)), but you've said |
28 |
> differently later in this thread. I certainly wouldn't mind |
29 |
> documenting that left is best in cases where none are installed, |
30 |
> since this has been expected behavior to those of us who do know. |
31 |
|
32 |
Well, we're running across a fair number of cases along the lines of |
33 |
the libX11 one.... https://bugs.gentoo.org/show_bug.cgi?id=348518 is |
34 |
what prompted the email -- it turns out vlc is by no means the only |
35 |
package doing this, though, which gives me two options for Paludis: add |
36 |
in a heuristic that gets that very specific case right (and update PMS |
37 |
requiring package manglers to do the same), or get people to list their |
38 |
deps the other way around. |
39 |
|
40 |
-- |
41 |
Ciaran McCreesh |