Gentoo Archives: gentoo-alt

From: Ruud Koolen <redlizard@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Names of Prefix variants
Date: Tue, 29 Oct 2013 22:02:34
Message-Id: 201310292302.28939.redlizard@gentoo.org
In Reply to: Re: [gentoo-alt] Names of Prefix variants by Michael Haubenwallner
1 On Tuesday 29 October 2013 08:40:59 Michael Haubenwallner wrote:
2 > On 10/26/13 00:54, Ruud Koolen wrote:
3 > > It's bikeshedding time.
4 > >
5 > > The RAP project (prefix with libc) is now ready to start getting merged
6 > >
7 > > I propose "prefix-native" for rap as an alternative. Does anyone have any
8 > > good ideas for classic prefix?
9 >
10 > As you say "prefix with libc" above: Is it necessary to /split/ Prefix into
11 > $rap and $classic, or would it also fit to have $rap to /supplement/
12 > classic?
13
14 In what sense? On the profile level, we factor out the common base shared
15 between classic and rap (which is about 50%-75% of the existing profile), and
16 have both variants inherit this base (neither can inherit the other
17 directly). As for USE flags, the primary function of the new use flags is to
18 disable certain hacks in rap. Writing those as `if use prefix && ! use
19 prefix-libc` is not a nice situation, so we need both new flags.
20
21 We keep USE=prefix, of course. The vast majority of cases of prefix support in
22 ebuilds applies equally to classic and rap; those will keep using `if use
23 prefix`. The new flags are solely for the handful of ebuilds that need to
24 distinguish between the variants.
25
26 > In case of the latter, I could think of:
27 >
28 > profiles/base/make.defaults:
29 > USE_EXPAND_UNPREFIXED+=" PREFIX" # for backwards compat, or we get
30 > "prefix_prefix" USE_EXPAND_HIDDEN+=" PREFIX"
31 > USE_EXPAND_IMPLICIT+=" PREFIX"
32 > USE_EXPAND_VALUES_PREFIX="prefix prefix-libc"
33 > And to help bug#473598 eventually:
34 > USE_EXPAND_VALUES_PREFIX+=" ${USE_EXPAND_VALUES_ARCH//*-*}" # the
35 > base-archs only
36
37 I don't think I understand this.
38
39 > To distinguish between glibc/uclibc/etc, existing ELIBC could do.
40
41 Yeah, that's fine.
42
43 > For the profiles itself:
44 > profiles/default/linux/$arch/13.0/prefix and
45 > profiles/default/linux/$arch/13.0/prefix/glibc
46 > profiles/default/linux/$arch/13.0/prefix/uclibc
47 > or even
48 > profiles/default/linux/$arch/13.0/prefix and
49 > profiles/default/linux/$arch/13.0/prefix/libc/glibc
50 > profiles/default/linux/$arch/13.0/prefix/libc/uclibc
51
52 Which variant will be considered the default and thus get the glorious
53 profiles/default/linux/$arch/13.0/prefix name is a mostly unrelated matter.
54
55 -- Ruud

Replies

Subject Author
Re: [gentoo-alt] Names of Prefix variants Jeremy Olexa <darkside@g.o>
Re: [gentoo-alt] Names of Prefix variants Michael Haubenwallner <haubi@g.o>