1 |
Walter Dnes <waltdnes <at> waltdnes.org> writes: |
2 |
|
3 |
|
4 |
> BLEAGH! I've now broken it up into logical groupings... |
5 |
|
6 |
USE_cpu="3dnow mmx sse sse2" |
7 |
USE_font="bitmap-fonts truetype-fonts type1-fonts" |
8 |
USE_gui="X dga dri gtk2 opengl sdl xv" |
9 |
USE_multimedia="a52 aac alsa divx4linux encode exif ffmpeg flac |
10 |
gif jpeg mikmod mng mp3 mpeg ogg png quicktime theora tiff vcd |
11 |
vorbis win32codecs wmf xpm" |
12 |
USE_misc="bzip2 cdr dio dvd dvdr dvdread fortran gb imlib maildir |
13 |
mime mmap ncurses nptl nptlonly nsplugin offensive plotutils |
14 |
posix readline sharedmem slang sockets threads zlib" |
15 |
> |
16 |
|
17 |
|
18 |
I too, have many, many flags set. I broke mine up sime time ago, but |
19 |
I did not 'characterize' them as you have done. I find this a most |
20 |
excellent idea. |
21 |
|
22 |
Some time ago Cirian M. posted this little nugget to help one quickly |
23 |
determine the meaning/purpose of flags. I put it in my bashrc file: |
24 |
|
25 |
# USE flag settings by Ciaran McCreesh: |
26 |
explainuseflag(){ sed -ne "s,^\([^ ]*:\)\?$1 - ,,p" $(portageq |
27 |
portdir)/profiles/use.{,local.}desc; } |
28 |
alias ef="explainuseflag" |
29 |
|
30 |
|
31 |
> which is followed by... |
32 |
> USE="-* ${USE_cpu} ${USE_font} ${USE_gui} ${USE_multimedia} ${USE_misc}" |
33 |
|
34 |
What exactly are you hoping to be able to do with these constructs? |
35 |
(sorry, I'm missing the point of these constructs). |
36 |
|
37 |
> My USE variable still ends up with the same information, but I have an |
38 |
> easier time editing it. The only question I have is whether there are |
39 |
> any groups of reserved variable names /etc/make.conf, so that I don't |
40 |
> screw up system variables. |
41 |
|
42 |
I ran across some reserved words some time ago. But I did not save the |
43 |
URl... It might be prudent to discover the most recent system (default) |
44 |
flags as they have most recently changed. |
45 |
|
46 |
|
47 |
> This won't be the final config. I'm trying to figure out a logical |
48 |
> way to break up "USE_multimedia", but I run into programs like mplayer |
49 |
> that work with audio, video, and still images. |
50 |
|
51 |
Aren't all of these 'multimedia'? I sense you are looking for |
52 |
a cleaner breakdown of flag groups to avoid the largess of a |
53 |
'multimedia' category. But that is subjective and difficult. |
54 |
Think about it, I can have jpeg images and then motion jpeg |
55 |
video. But, the flags may effect the performance of both |
56 |
technolgies in yet differenent software packages. That's why |
57 |
the term multimedia is so prevalent. My only real suggestion |
58 |
is look at the collection of flags you have and derive a breakdown |
59 |
that works for the (current) flags you have. It will be subjective |
60 |
and highly dependent on your selected flags to come up with small |
61 |
categories. Maybe you can break it up like this: |
62 |
|
63 |
# Multimedia |
64 |
"USE_mplayer" |
65 |
"USE_ffmpeg" |
66 |
"USE_audio" |
67 |
"USE_video-players" |
68 |
|
69 |
Where your selected categories are not so rigid as audio, stills, |
70 |
video, etc....? |
71 |
|
72 |
> "USE_misc" will always be a candidate for taking stuff out. |
73 |
|
74 |
"USE_Apache" |
75 |
or |
76 |
"USE_db" might be appropriate on some systems? |
77 |
|
78 |
Indeed, even the other groups will expand/contract as time |
79 |
progresses. All in all, you have take steps that I have often |
80 |
thought about, but, have deferred expenditures of time on. I'm |
81 |
interested to follow progression of your ideas. |
82 |
|
83 |
On as similar note, I have extensive settings in the /etc/portage |
84 |
files, particularly on those servers and workstations with |
85 |
multimeida. What I have done to keep some form of sanity, in those |
86 |
files, is to have a core group of entries that are common to many |
87 |
of the gentoo systems I manage. Then each system in each of the |
88 |
files {package.keywords, package.use, etc} have a section that |
89 |
is unique, i.e. different from the other system but are semi-permanent |
90 |
settings. At the top of these files, there is a section where the |
91 |
entries are tenuous or experimental...... |
92 |
|
93 |
Do post your progress and thoughts as I find it interesting |
94 |
to the point of motivational for my ever-expanding world |
95 |
of gentoo system support. Logical organization of all things |
96 |
multimedia, is a challenge, methinks. |
97 |
|
98 |
|
99 |
James |
100 |
|
101 |
|
102 |
|
103 |
|
104 |
-- |
105 |
gentoo-user@g.o mailing list |