1 |
On Thu, Nov 17, 2011 at 07:41:21PM +0000, James wrote: |
2 |
> > Now, why can't the USE descriptions be like the kernel option |
3 |
> > descriptions and have something like what Pandu wrote included? |
4 |
> |
5 |
> I added this to root's .bashrc a long time ago: |
6 |
> |
7 |
> # USE flag settings hack by Ciaran McCreesh: |
8 |
> explainuseflag(){ sed -ne "s,^\([^ ]*:\)\?$1 - ,,p" $(portageq |
9 |
> portdir)/profiles/use.{,local.}desc; } |
10 |
> alias ef="explainuseflag" |
11 |
> |
12 |
> |
13 |
> Then simply use the alias for a quick check to learn about all the different |
14 |
> uses of a given flag: |
15 |
> |
16 |
> 'ef graphite' |
17 |
> |
18 |
> # ef graphite |
19 |
> Enable support for non-Roman fonts via media-gfx/graphite2 |
20 |
> Enable support for non-Roman fonts via media-gfx/graphite2 |
21 |
> Add support for the framework for loop optimizations based on a polyhedral |
22 |
> intermediate representation |
23 |
> |
24 |
> Then drill down into the a specific package's use flag meaning, using the |
25 |
> aforementioned 'equery u' delineated by Albert. |
26 |
|
27 |
You people seem to miss my point. I know perfectly well how to find |
28 |
the USE descriptions. It is just that the USE description, in this |
29 |
case (as in many others) isn't terribly useful. |
30 |
|
31 |
"Add support for the framework for loop optimizations based on a |
32 |
polyhedral intermediate representation" means absolutely gibberish to |
33 |
me. |
34 |
|
35 |
But if one were to add an additional one or two lines a la Pandu, |
36 |
about how it is supposed to make " gcc-4.5.3 use a newer method to |
37 |
detect parallelism, thus (potentially) makes programs compiled by gcc |
38 |
to have better multithreaded performance" and perhaps even a Kernel |
39 |
help page style "It is mostly stable. If unsure, say Yes." |
40 |
|
41 |
It would be ever so much more helpful for people who would like to |
42 |
find out what new flags do before deciding whether or not to follow |
43 |
the default recommended by the devs which are set into the profile. |
44 |
|
45 |
(I'm not saying this type of hand holding is necessary for all flags: |
46 |
"enable support for non-Roman fonts via media-gfx/graphite2" is |
47 |
perfectly understandable, as are most other flags about features a |
48 |
"user" is likely to interact with. But for some of the more "system" |
49 |
type flags (see also that python/perl flag business from the recent |
50 |
months), I think the USE descriptions can stand some improvement.) |
51 |
|
52 |
W |
53 |
|
54 |
-- |
55 |
Willie W. Wong wwong@××××××××××××××.edu |
56 |
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire |
57 |
et vice versa ~~~ I. Newton |