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: |
4 |
|
5 |
DEPEND="blah" |
6 |
You should always use the full foo-bar/blah spec inside ebuilds. |
7 |
|
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). |
12 |
|
13 |
DEPEND="foo? foo-bar/blah" |
14 |
You should always use ( ) after a use? dependency. |
15 |
|
16 |
DEPEND="foo? || ( ... )" |
17 |
Extension of the above: you should use ( ) after a use? even if it's |
18 |
immediately followed by a ||. |
19 |
|
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. |
23 |
|
24 |
-- |
25 |
Ciaran McCreesh : Gentoo Developer (King of all Londinium) |
26 |
Mail : ciaranm at gentoo.org |
27 |
Web : http://dev.gentoo.org/~ciaranm |