Gentoo Archives: gentoo-dev

From: Tobias Klausmann <klausman@××××××××××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies
Date: Fri, 15 Jun 2007 08:08:15
Message-Id: 20070615080224.GA9570@eric.schwarzvogel.de
In Reply to: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies by Kent Fredric
1 Hi!
2
3 On Fri, 15 Jun 2007, Kent Fredric wrote:
4 > On 6/15/07, John R. Graham <n3440d@×××××.com> wrote:
5 > > I occasionally run across a package version dependency issue that cannot
6 > > be elegantly solved by the current dependency syntax. Every time I've
7 > > come across this, it's boiled down to a range. For example, package
8 > > some-cat/foo has the following versions in the tree
9 > > some-cat/foo-4.0.0-r2
10 > > some-cat/foo-4.1
11 > > some-cat/foo-4.1.1
12 > > some-cat/foo-4.1.2-r2
13 > > some-cat/foo-4.2.1-r5
14 > > some-cat/foo-4.3
15 > > some-cat/foo-4.4
16 > >
17 >
18 > /me votes for rubyesqe range syntax
19 >
20 > some-cat/foo-( s:4.1 .. s:4.2) // start at slot 4.1 , and go upto
21 > and including 4.2
22 > some-cat/foo-( s:4.1 ... s:4.2) // start at slot 4.1 and go upto, but
23 > not including 4.2
24 > some-cat/foo-( v:4.1.0 .. v:4.2.0 ) // start at version 4.1.0 and go
25 > upto and including 4.2.0
26 > some-cat/foo-( v:4.1.0 ... v:4.2.0 ) // start at version 4.1.0 and go
27 > upto , but excluding 4.2.0
28 >
29 > I know thats probably not possible in a bash env tho, but hopefully
30 > the 'range' concept will give some inspiration, as IMO, having to
31 > specify the ebuild atom name for both upper and lower values is
32 > redundant, and easily missused as lamented by Vlastimil Babka
33 >
34 > /me hides in his corner to avoid abuse from people despising ruby lovers
35 >
36 > /me goes and joins ruby addicts anonymous
37
38 As a side note, while we're talking ranged dependencies.
39
40 It would also be really, really nice to be able to (un)mask
41 ranges in /etc/portage/package.(un)mask.
42
43 Just my 1.953 Eurocent (adjusted for inflation).
44
45 Rgards,
46 Tobias
47
48 --
49 In the future, everyone will be anonymous for 15 minutes.
50 --
51 gentoo-dev@g.o mailing list