Gentoo Archives: gentoo-portage-dev

From: Stephen Bennett <spb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [RFC] Depending on "active" version
Date: Wed, 31 Jan 2007 17:33:16
Message-Id: 20070131174726.5e9292d3@maya
In Reply to: [gentoo-portage-dev] [RFC] Depending on "active" version by Marius Mauch
1 On Tue, 30 Jan 2007 17:06:51 +0100
2 Marius Mauch <genone@g.o> wrote:
3
4 > The idea is to add a special category (let's call it "active" for
5 > now) that has the following properties:
6 > - this category doesn't exist in portdir or vdb (= no ebuilds)
7 > - when portage ($pkgmanager) encounters a "active/foo" atom in a
8 > dependency string it executes some special code (e.g.
9 > "$PORTDIR/scripts/active-check/foo =active/foo-1") to determine if
10 > that atom is satisfied
11
12 Given that in the general case the package manager can't change the
13 active provider and will have to bail with an appropriate message that
14 the user needs to change it themselves, the obvious solution to this is
15 the previously-discussed-somewhere-I-can't-remember ebuild function,
16 called on depgraph creation, to check that it will be able to compile
17 in the current system environment. It's considerably simpler and more
18 generally useful than subverting DEPEND to add weird special-case hacks
19 to it.
20 --
21 gentoo-portage-dev@g.o mailing list

Replies