Gentoo Archives: gentoo-dev

From: Steven J Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Re: stacking profile.bashrc?
Date: Tue, 21 Jul 2009 05:03:18
Message-Id: 1554066.iOGhVxmSRm@news.friendly-coders.info
In Reply to: Re: [gentoo-dev] Re: stacking profile.bashrc? by Zac Medico
1 Zac Medico wrote:
2
3 > Steven J Long wrote:
4 >> Zac Medico wrote:
5 >>
6 >>> The specification is really the most important part, and you have to
7 >>> give the -dev community an opportunity to participate in refining
8 >>> the spec (via RFC email, GLEP, or whatnot).
9 >>>
10 >>> It seems like this idea will probably serve for bug 179800, which is
11 >>> about allowing eclasses to register phase hooks:
12 >>>
13 >>> http://bugs.gentoo.org/show_bug.cgi?id=179800
14 >>>
15 >> Hmm given that this relies on profile.bashrc, in specification terms one
16 >> would have to ensure that http://bugs.gentoo.org/202631 (which was
17 >> recently raised in #-council) were resolved. The sunrise people raised
18 >> being able to tweak bashrc per-overlay in #-portage recently, and the
19 >> phase hooks were also raised by javaJake wrt having directory-based
20 >> hooks.
21 >
22 > For the overlay people, it seems like we need something that's a
23 > little different from the existing profile support, since profile's
24 > are user-selectable and it seems like you want something that's
25 > global/mandatory at the repository level. For example, it could be
26 > located at profiles/profile.bashrc, similar to
27 > profiles.package.mask, which is global/mandatory rather than being
28 > part of a specific user-selectable profile.
29
30 Yeah sounds right. Perhaps a per-category bashrc split (both for
31 usual /etc/portage case and for overlays) might also be useful?
32 (Overlay admin can always test PN should the need arise.)
33
34 You mentioned in #-portage that per-phase execution is no longer used, wrt
35 how overlays would only be executing bashrc at start. I take it we can
36 still test $EBUILD_PHASE? (Sorry if I've misunderstood what you were
37 saying.)
38 --
39 #friendly-coders -- We're friendly but we're not /that/ friendly ;-)

Replies

Subject Author
Re: [gentoo-dev] Re: Re: stacking profile.bashrc? Zac Medico <zmedico@g.o>