Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: zmedico@g.o
Subject: Re: [gentoo-dev] RFC: splitting virtual/
Date: Tue, 16 Aug 2011 08:28:34
Message-Id: 20110816102922.7505ff12@pomiocik.lan
In Reply to: Re: [gentoo-dev] RFC: splitting virtual/ by Zac Medico
1 On Tue, 16 Aug 2011 01:10:48 -0700
2 Zac Medico <zmedico@g.o> wrote:
3
4 > On 08/16/2011 12:40 AM, Michał Górny wrote:
5 > > On Tue, 16 Aug 2011 00:26:41 -0700
6 > > Zac Medico <zmedico@g.o> wrote:
7 > >> On 08/16/2011 12:01 AM, Micha? Górny wrote:
8 > >>>>> Considering the number of different virtuals in this category,
9 > >>>>> maybe it would be a good idea to split it a little? What I'm
10 > >>>>> proposing is maybe creating some kind of '*-virtual' categories.
11 > >>>>>
12 > >>>>> For example, half of the current virtuals are prefixed with
13 > >>>>> 'perl-'. Maybe they could be transformed into 'perl-virtual/*'?
14 > >>>>
15 > >>>> If you're going to do that, then I'd suggest giving them some
16 > >>>> sort of tag that the package manager can rely upon in order to
17 > >>>> identify them as virtuals. For example, we could have the
18 > >>>> ebuilds set PROPERTIES=virtual [2], or we could simply specify
19 > >>>> (in PMS) that any category whose name matches the '*-virtual'
20 > >>>> pattern will contain virtuals.
21 > >>>
22 > >>> Doesn't DEFINED_PHASES==- serve that purpose nowadays?
23 > >
24 > >> Actually, since EAPI 4 we have default src_install, so it's
25 > >> possible to have ebuilds that have no defined phases but still
26 > >> install stuff.
27 > >
28 > > + empty SRC_URI? I guess something like the workdir fallback
29 > > conditions in PMS.
30 >
31 > When you consider that "live" ebuilds can have empty SRC_URI and
32 > download things during src_unpack, it seems more sensible and simple
33 > to introduce PROPERTIES="live" or something like it. That way, we'll
34 > have a simple boolean flag and won't have to make any fragile
35 > assumptions.
36
37 Live ebuild have to redefine src_unpack() which makes DEFINED_PHASES!=-.
38
39 --
40 Best regards,
41 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] RFC: splitting virtual/ Zac Medico <zmedico@g.o>