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
Just a reminder that all of the following are either illegal or
strongly deprecated, so please don't use them even if Portage currently
lets you get away with it:

You should always use the full foo-bar/blah spec inside ebuilds.

If you specify an operator, you must also specify a version (and if you
specify a version, you must also specify an operator, but Portage
enforces that by way of exploding horribly).

DEPEND="foo? foo-bar/blah"
You should always use ( ) after a use? dependency.

DEPEND="foo? || ( ... )"
Extension of the above: you should use ( ) after a use? even if it's
immediately followed by a ||.

There're quite a few oddities like this in the tree. I'll be either
fixing them or filing bugs depending upon whether the package in
question is maintained.

Ciaran McCreesh : Gentoo Developer (King of all Londinium)
Mail            : ciaranm at
Web             :


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


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