Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaranm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Depend syntax
Date: Sun, 05 Feb 2006 21:49:41
Message-Id: 20060205214655.6e1dcc0d@snowdrop.home
1 Just a reminder that all of the following are either illegal or
2 strongly deprecated, so please don't use them even if Portage currently
3 lets you get away with it:
5 DEPEND="blah"
6 You should always use the full foo-bar/blah spec inside ebuilds.
8 DEPEND=">=foo-bar/blah"
9 If you specify an operator, you must also specify a version (and if you
10 specify a version, you must also specify an operator, but Portage
11 enforces that by way of exploding horribly).
13 DEPEND="foo? foo-bar/blah"
14 You should always use ( ) after a use? dependency.
16 DEPEND="foo? || ( ... )"
17 Extension of the above: you should use ( ) after a use? even if it's
18 immediately followed by a ||.
20 There're quite a few oddities like this in the tree. I'll be either
21 fixing them or filing bugs depending upon whether the package in
22 question is maintained.
24 --
25 Ciaran McCreesh : Gentoo Developer (King of all Londinium)
26 Mail : ciaranm at
27 Web :


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] Depend syntax Mike Frysinger <vapier@g.o>