Gentoo Archives: gentoo-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] We have "doc" USE flag, why not a "man" USE flag too
Date: Fri, 12 Aug 2005 01:19:07
Message-Id: 200508121016.48581.jstubbs@gentoo.org
In Reply to: Re: [gentoo-dev] We have "doc" USE flag, why not a "man" USE flag too by Mike Frysinger
1 On Thursday 11 August 2005 21:26, Mike Frysinger wrote:
2 > On Thursday 11 August 2005 07:02 am, Jason Stubbs wrote:
3 > > On Thursday 11 August 2005 09:04, Mike Frysinger wrote:
4 > > > On Wednesday 10 August 2005 07:56 pm, Jason Stubbs wrote:
5 > > > > I was referring to compiler version. Portage FEATURES are not a
6 > > > > guaranteed part of an ebuild's "shell". Let me put it another way,
7 > > > > should ebuilds handle NOCOLOR as well?
8 > > >
9 > > > no, but why should NOCOLOR affect how a package is built/installed ?
10 > > > the point here is that we dont really care whether it's FEATURES or
11 > > > USE or what, as long as we have the ability to control
12 > > > DEPEND/SRC_URI/behavior in an ebuild depending on whether the user
13 > > > wants tests/manpages/etc...
14 > >
15 > > With noman and the like, how's the following for a solution? A lot of
16 > > the ebuild functions contained within portage will be moving into the
17 > > tree once signing is in. What about adding
18 > > {pre,post}_src_{compile,install,...} hooks into portage that will live
19 > > in the tree that USE="man" support can be implemented in globally? For
20 > > those packages that have a specific interest, the USE flag will be
21 > > available. Everything should be happy on the ebuild side of things. (On
22 > > the U/I side of things, stuff can be done to cut down the noise.)
23 >
24 > so you're saying that the default ebuild.sh functions are going to be
25 > moving into the tree to a place which will be auto-sourced before the
26 > ebuild and its eclasses ?
27
28 As Marius said, the list of what be moved isn't finalized yet. Essentially,
29 the goal is to move anything that is not affected by portage version into
30 the tree. What I was suggesting was extra hooks that would essentially
31 allow ebuild devs to modify ebuilds at the abstract level, such as adding a
32 "noman", "noinfo" or "nostaticlibs" to all ebuilds.
33
34 This is merely a suggestion, however. Putting aside my general dislike of
35 USE_EXPAND, adding FEATURES to it means that all portage versions (and
36 replacements) are required to have a global FEATURES setting and must have
37 a certain subset of FEATURES available that must each provide a specific
38 function. I'm not really attached to the solution I suggested; I'm just
39 looking for a way to get rid of those "must"s. Portage currently has no
40 idea what anything in USE or USE_EXPAND is or what it does. It needs to be
41 kept that way.
42
43 --
44 Jason Stubbs