Gentoo Archives: gentoo-dev

From: Vlastimil Babka <caster@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies
Date: Fri, 15 Jun 2007 04:55:43
Message-Id: 46721B29.10901@gentoo.org
In Reply to: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies by "John R. Graham"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 John R. Graham 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 > Now, package other-cat/bar has a runtime dependency on some-cat/foo but
18 > it only works with the 4.1 and 4.2 slot. The other-cat/bar ebuild was
19 > originally composed before the some-cat/foo-4.3 package came out, so the
20 > ebuild developer coded the runtime dependency as
21 > >=some-cat/foo-4.1
22 >
23 > But, when some-cat/foo-4.3 came along, it got messy. The only possible
24 > solution today that I know of is
25 > ( || =some-cat/foo-4.1* =some-cat/foo-4.2* )
26 > and this potentially grows over time as new versions stabilize.
27
28 If 4.1 and 4.2 are really SLOTs as you say, then this || syntax makes
29 good sense. Of course would be better with real slot deps :) So your
30 example is not so ideal. But nevermind.
31
32 > What I'd really like to be able to code is a range with an AND operator,
33 > something like this
34 > ( && >=some-cat/foo-4.0 <some-cat/foo-4.3 )
35
36 Syntax shouldn't repeat package name twice. It wouldn't make much sense
37 to use it with >=some-cat/foo-4.0 <some-cat/bar-4.3 would it?
38
39 > So, my question is, does this make sense? Is something like this
40 > planned for some EAPI>0? Would it be appropriate for me (a non-dev) to
41 > file a bug and link it to SpanKy's "EAPI-1 tracker" bug?
42
43 There's been bug 4315 for ages, so maybe just reassign it to PMS?
44 - --
45 Vlastimil Babka (Caster)
46 Gentoo/Java
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v1.4.7 (GNU/Linux)
49 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
50
51 iD8DBQFGchsotbrAj05h3oQRAjg8AJ46/ofZuK6EI+LnQcTivJDzOjgj4gCfWNRe
52 a56SGjmxI16imQxdkfRRoQI=
53 =bu3E
54 -----END PGP SIGNATURE-----
55 --
56 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies "John R. Graham" <n3440d@×××××.com>