Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Atom matching behavior
Date: Sun, 25 Mar 2007 22:33:44
Message-Id: 200703251756.02446.vapier@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Atom matching behavior by Thomas de Grenier de Latour
1 On Sunday 25 March 2007, Thomas de Grenier de Latour wrote:
2 > On 2007/03/25, Mike Frysinger <vapier@g.o> wrote:
3 > > > =app-dicts/aspell-en-0.5*
4 > > > ---
5 > > > app-dicts/aspell-en-0.51.0
6 > > > app-dicts/aspell-en-0.51.1
7 > >
8 > > you'd have to add more atoms to match 0.51.0, 0.52.1, 0.53.3, etc...
9 >
10 > Yes and no...
11 >
12 > On one hand, only 0.51.{0,1} exist atm, so a dep on =0.51* would be
13 > enough.
14 >
15 > Now, i understand you want to anticipate some hypothetical future
16 > versions.
17
18 it isnt hypothetical, look at the history of aspell ... it had versions that
19 matched my example
20
21 app-text/docbook-xsl-stylesheets have examples right now that match what i'm
22 talking about
23
24 > But if you go that road, then i don't buy the argument:
25 > - there are numerous ~foo/bar-1.1 deps around, which doesn't take
26 > hypothetical future 1.1.1 compatible version into account. How is
27 > this "0.5x" particular case different, why would it be more a problem
28 > than the usual case?
29 > - there are numerous =0.1* deps around written with only 0.1.x in
30 > mind... If hypothetical future versions really matter, then what about
31 > an incompatible 0.10? Imho, taking them into account pleads for
32 > dropping the substring match semantics, rather than keeping it.
33
34 it works now because package maintainers tend to follow one course or the
35 other ... in other words, people who do x.y.z releases do not generally do
36 x.yz.w releases and vice versa
37
38 but each has obvious pros and cons that arent debatable, they're fact ... so
39 if we're gonna get screwed one way or the other, best to keep old behavior
40 for EAPI=0 and leave the logical (from the point of view of the pm parsing
41 the version) switch for EAPI=1 ...
42 -mike