Gentoo Archives: gentoo-dev

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Feature Request/RFC : "Elective" virtuals
Date: Fri, 29 Jun 2012 17:34:18
Message-Id: CAATnKFCj-7WJoev4A2jnviaBWZSqbUU6qKU5Huei_-N0xDx2Gg@mail.gmail.com
In Reply to: Re: [gentoo-dev] Feature Request/RFC : "Elective" virtuals by Ian Stakenvicius
1 >
2 > Perhaps it would be best to tell users that if they'd like to see the
3 > possible choices they can run ie 'qdepends -r virtual/cron'
4 >
5
6 Quite, perhaps it could be a seperate mechanism, it would just seem
7 that for virtuals that just provide a list of alternatives, having a
8 seperate package that gives the *choice* of one of those alternatives
9 seems like redundant code. ( Most virtuals are simple non-exclusive
10 ors, so the packages that satisfy them can all be installed
11 simultaneously, however, there are a few virtuals that are inherently
12 exclusive-ors, as all the dependents exclude each other )
13
14 Perhaps it could be an additional metafield, upon which the choice of
15 one of several choices could be presented to the user by using a
16 different tool.
17
18 All packages which have an "alternatives" mechanism like this could
19 then also be indexed and the user could then only enter the selection
20 process with a separate tool which is a wrapper for portage.
21
22 I'm not sure if it makes sense or not to make it as an eselect
23 submodule that lets the user make choices and then have something else
24 apply them, or a dedicated tool; ie:
25
26 eselect alternatives list # list all the "things" that have
27 dependents that are mutually exclusive choices
28 eselect alternatives set cron --auto # selects vixie-cron
29 eselect alternatives set cron cronie
30 emerge -uvatDN @changed_alternatives
31
32 Or something like that.
33
34 You could drive it of course using external metadata not bundled with
35 the virtual's themselves, the benefit being you avoid the need to trip
36 the whole change process for virtuals and stabilisation, but the
37 downside is of course possible desynchronisation of choice metadata
38 with choices that are available via the virtual.
39
40 --
41 Kent
42
43 perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
44 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"
45
46 http://kent-fredric.fox.geek.nz