On Wed, 31 Jan 2007 17:47:26 +0000
Stephen Bennett <[EMAIL PROTECTED]> wrote:

> On Tue, 30 Jan 2007 17:06:51 +0100
> Marius Mauch <[EMAIL PROTECTED]> wrote:
> 
> > The idea is to add a special category (let's call it "active" for
> > now) that has the following properties:
> > - this category doesn't exist in portdir or vdb (= no ebuilds)
> > - when portage ($pkgmanager) encounters a "active/foo" atom in a
> > dependency string it executes some special code (e.g.
> > "$PORTDIR/scripts/active-check/foo =active/foo-1") to determine if
> > that atom is satisfied
> 
> Given that in the general case the package manager can't change the
> active provider and will have to bail with an appropriate message that
> the user needs to change it themselves, the obvious solution to this is
> the previously-discussed-somewhere-I-can't-remember ebuild function,
> called on depgraph creation, to check that it will be able to compile
> in the current system environment. It's considerably simpler and more
> generally useful than subverting DEPEND to add weird special-case hacks
> to it.

Yeah, thinking about it I have to agree tat generic dep_check() support (to 
give the thing a name) would be a better solution here.

Marius
-- 
gentoo-portage-dev@gentoo.org mailing list

Reply via email to