Gentoo Archives: gentoo-portage-dev

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