Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: best way to introduce USE=prefix
Date: Sat, 04 Apr 2009 11:31:07
Message-Id: 49D74508.5030903@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: best way to introduce USE=prefix by Fabian Groffen
1 Fabian Groffen wrote:
2 > On 04-04-2009 13:23:24 +0300, Petteri Räty wrote:
3 >>> However, we have toyed with other ideas. One of which is to introduce
4 >>> IUSE=prefix in prefix.eclass similar to the USE=multilib approach. I
5 >>> don't really like this idea because it exposes the use flag and we
6 >>> don't want it exposed to the users.
7 >>>
8 >> If you don't want it exposed to users, then use a USE_EXPAND variable.
9 >> Like zmedico said in EAPI 3 a normal use flag could be hidden but
10 >> probably better to not have to migrate everything with prefix support to
11 >> EAPI 3. Out of the existing USE_EXPAND variables USERLAND makes most
12 >> sense to me but we could also introduce a new one too.
13 >
14 > USE_EXPAND does something like:
15 > USERLAND="GNU" -> userland_GNU
16 >
17 > For Prefix, we just need the "prefix" USE-flag (not prefix_XXX), hence
18 > USE_EXPAND doesn't help us. Adding "prefix" to use.mask (and use.force
19 > in Prefix profiles) allows us to get the desired behaviour.
20 >
21 >
22
23 If prefix is in USERLAND then you have a userland_prefix use flag to use
24 that can be hidden.
25
26 Regards,
27 Petteri

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] RFC: best way to introduce USE=prefix Fabian Groffen <grobian@g.o>