Gentoo Archives: gentoo-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Virtuals - required?
Date: Fri, 25 Jun 2004 14:20:37
Message-Id: 200406252318.05534.jstubbs@gentoo.org
In Reply to: Re: [gentoo-dev] Virtuals - required? by Jason Stubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Sunday 20 June 2004 01:17, Jason Stubbs wrote:
5 > On Sunday 20 June 2004 00:04, Ciaran McCreesh wrote:
6 > > On Sat, 19 Jun 2004 20:51:49 +0900 Jason Stubbs <jstubbs@g.o>
7 > >
8 > > wrote:
9 > > | What I'm proposing here is to drop virtuals altogether. Instead, I
10 > > | propose using meta-packages similar to kde and gnome. To give a give a
11 > > | cut down example:
12 > > |
13 > > | virtual/x11-1.ebuild:
14 > > | RDEPEND="x86? ( || ( x11-base/xfree x11-base/xorg-x11 ) )
15 > > | sparc? ( || ( x11-base/xorg-x11 x11-base/xfree ) )"
16 > >
17 > > For this to work, you'd have to do at least two things:
18 > >
19 > > 1) Hack portage to display virtuals stuff differently. Otherwise we'd
20 > > end up with reaaaaallyy really messy qpkg / equery / emerge output.
21 >
22 > This is not so much of a problem,
23 >
24 > > 2) Make RDEPEND work. Example::
25 > >
26 > > emerge fluxbox
27 > > (watch xorg-x11 get pulled in)
28 > > emerge unmerge xorg-x11
29 > > (virtual/x11 is still installed)
30 > > emerge kde
31 > > (watch stuff explode since there're no x libs)
32 >
33 > but this means that proper support is a fair way down the track - if
34 > possible at all. Even if portage prevented (by default) uninstalling
35 > packages that had others depending on it, an override would still be
36 > necessary or else a move such as the one from xfree to xorg-x11 would
37 > really be hell. ;)
38 >
39 > Well, I'll shelve that idea for the present.
40
41 Nope. It's still floating around...
42
43 Brian Harring suggested that such an ebuild could have RESTRICT="metaebuild"
44 which would signify that just its *DEPENDs should be processed. This would
45 easily allow solutions to both of the above problems.
46
47 The only other issue I can think of is blocking against virtuals. For example,
48 xfree contains DEPEND="!virtual/x11". This could be handled by portage as a
49 special case for RESTRICT="metaebuild" but that would then be one point where
50 this whole scheme is not compatible with 2.0.50 (and Nick hates special
51 cases ;). The only other option would be for virtual/x11 to have:
52
53 DEPEND="|| ( ( x11-base/xfree !x11-base/xorg-x11 )
54 ( x11-base/xorg-x11 !x11-base/xfree ) )"
55
56 However, this could get real messy real quick - but does allow for much more
57 expression. Thoughts on this?
58
59 Regards,
60 Jason Stubbs
61 -----BEGIN PGP SIGNATURE-----
62 Version: GnuPG v1.2.4 (GNU/Linux)
63
64 iQCVAwUBQNw0HFoikN4/5jfsAQLXhwP+Is/sY1DI1Lekpe9MBNJGtIu1CHF2N26Z
65 aAQH3DiPRSxw5qFvWkoMJOZLpt9eAdtIpg8moIGlJns6f8/WTRDunq9fwO2wvgbX
66 gtxhxl5pgjR3+wBlyq9dlPaBo9ZSIMUCpTv93wLr0zRCtpS6i3c0Vpyc1g5+4iaq
67 RhIJg7Wv5YA=
68 =Rwq9
69 -----END PGP SIGNATURE-----
70
71 --
72 gentoo-dev@g.o mailing list