Gentoo Archives: gentoo-dev

From: Steve Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: EAPI-1 (or >1, perhaps) Proposal: AND Dependencies
Date: Mon, 18 Jun 2007 05:26:31
Message-Id: f554mi$9vu$1@sea.gmane.org
In Reply to: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies by Ciaran McCreesh
1 Ciaran McCreesh wrote:
2 > Luca Barbato <lu_zero@g.o> wrote:
3 >> Ciaran McCreesh wrote:
4 >> > Paludis allows users to do some-cat/foo[>=4.0&<4-3] and
5 >> > some-cat/foo[=4.1|=4.2|=4.3] . The syntax isn't particularly pretty,
6 >> > but it's cleaner than requiring duplication of the cat/pkg. Combined
7 >> > with :slot deps it should give you everything you need.
8 >>
9 >> Seems not bad, do you have plans to refine it before proposing it for
10 >> the pms?
11 >
12 > Well, I'm happy with it like that...
13 >
14 but as you said, it ain't pretty: what about simply replacing [] with ()?
15 && to match || in portage and logical AND in C etc. seems wise too.
16 Allow both if you *have* to maintain backwards-compatibility, but it makes
17 it more like portage syntax, which folks are used to:
18 some-cat/foo(>=4.0&&<4.3) seems clean, for this example.
19
20 To my mind, | seems like a good second-level operator, so one could have:
21 cat-foo/bar(~3.6||~3.7|>=4.0&&<4.3|>=5.1) while still using the operators
22 everyone is used to for most things.
23
24 (& makes no sense in that context, of course.)
25
26
27 --
28 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: EAPI-1 (or >1, perhaps) Proposal: AND Dependencies Kent Fredric <kentfredric@×××××.com>