| … | |
… | |
| 6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
| 7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
| 8 | --> |
8 | --> |
| 9 | <head> |
9 | <head> |
| 10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 11 | <meta name="generator" content="Docutils 0.3.9: http://docutils.sourceforge.net/" /> |
11 | <meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" /> |
| 12 | <title>GLEP 29 -- USE flag groups</title> |
12 | <title>GLEP 29 -- USE flag groups</title> |
| 13 | <link rel="stylesheet" href="tools/glep.css" type="text/css" /> |
13 | <style type="text/css"> |
|
|
14 | |
|
|
15 | /* |
|
|
16 | :Author: David Goodger |
|
|
17 | :Contact: goodger@users.sourceforge.net |
|
|
18 | :date: $Date: 2007/01/25 03:26:26 $ |
|
|
19 | :version: $Revision: 1.7 $ |
|
|
20 | :copyright: This stylesheet has been placed in the public domain. |
|
|
21 | |
|
|
22 | Default cascading style sheet for the PEP HTML output of Docutils. |
|
|
23 | */ |
|
|
24 | |
|
|
25 | .first { |
|
|
26 | margin-top: 0 } |
|
|
27 | |
|
|
28 | .last { |
|
|
29 | margin-bottom: 0 } |
|
|
30 | |
|
|
31 | .navigation { |
|
|
32 | width: 100% ; |
|
|
33 | background: #cc99ff ; |
|
|
34 | margin-top: 0px ; |
|
|
35 | margin-bottom: 0px } |
|
|
36 | |
|
|
37 | .navigation .navicon { |
|
|
38 | width: 150px ; |
|
|
39 | height: 35px } |
|
|
40 | |
|
|
41 | .navigation .textlinks { |
|
|
42 | padding-left: 1em ; |
|
|
43 | text-align: left } |
|
|
44 | |
|
|
45 | .navigation td, .navigation th { |
|
|
46 | padding-left: 0em ; |
|
|
47 | padding-right: 0em ; |
|
|
48 | vertical-align: middle } |
|
|
49 | |
|
|
50 | .rfc2822 { |
|
|
51 | margin-top: 0.5em ; |
|
|
52 | margin-left: 0.5em ; |
|
|
53 | margin-right: 0.5em ; |
|
|
54 | margin-bottom: 0em } |
|
|
55 | |
|
|
56 | .rfc2822 td { |
|
|
57 | text-align: left } |
|
|
58 | |
|
|
59 | .rfc2822 th.field-name { |
|
|
60 | text-align: right ; |
|
|
61 | font-family: sans-serif ; |
|
|
62 | padding-right: 0.5em ; |
|
|
63 | font-weight: bold ; |
|
|
64 | margin-bottom: 0em } |
|
|
65 | |
|
|
66 | a.toc-backref { |
|
|
67 | text-decoration: none ; |
|
|
68 | color: black } |
|
|
69 | |
|
|
70 | body { |
|
|
71 | margin: 0px ; |
|
|
72 | margin-bottom: 1em ; |
|
|
73 | padding: 0px } |
|
|
74 | |
|
|
75 | dd { |
|
|
76 | margin-bottom: 0.5em } |
|
|
77 | |
|
|
78 | div.section { |
|
|
79 | margin-left: 1em ; |
|
|
80 | margin-right: 1em ; |
|
|
81 | margin-bottom: 1.5em } |
|
|
82 | |
|
|
83 | div.section div.section { |
|
|
84 | margin-left: 0em ; |
|
|
85 | margin-right: 0em ; |
|
|
86 | margin-top: 1.5em } |
|
|
87 | |
|
|
88 | div.abstract { |
|
|
89 | margin: 2em 5em } |
|
|
90 | |
|
|
91 | div.abstract p.topic-title { |
|
|
92 | font-weight: bold ; |
|
|
93 | text-align: center } |
|
|
94 | |
|
|
95 | div.attention, div.caution, div.danger, div.error, div.hint, |
|
|
96 | div.important, div.note, div.tip, div.warning { |
|
|
97 | margin: 2em ; |
|
|
98 | border: medium outset ; |
|
|
99 | padding: 1em } |
|
|
100 | |
|
|
101 | div.attention p.admonition-title, div.caution p.admonition-title, |
|
|
102 | div.danger p.admonition-title, div.error p.admonition-title, |
|
|
103 | div.warning p.admonition-title { |
|
|
104 | color: red ; |
|
|
105 | font-weight: bold ; |
|
|
106 | font-family: sans-serif } |
|
|
107 | |
|
|
108 | div.hint p.admonition-title, div.important p.admonition-title, |
|
|
109 | div.note p.admonition-title, div.tip p.admonition-title { |
|
|
110 | font-weight: bold ; |
|
|
111 | font-family: sans-serif } |
|
|
112 | |
|
|
113 | div.figure { |
|
|
114 | margin-left: 2em } |
|
|
115 | |
|
|
116 | div.footer, div.header { |
|
|
117 | font-size: smaller } |
|
|
118 | |
|
|
119 | div.footer { |
|
|
120 | margin-left: 1em ; |
|
|
121 | margin-right: 1em } |
|
|
122 | |
|
|
123 | div.system-messages { |
|
|
124 | margin: 5em } |
|
|
125 | |
|
|
126 | div.system-messages h1 { |
|
|
127 | color: red } |
|
|
128 | |
|
|
129 | div.system-message { |
|
|
130 | border: medium outset ; |
|
|
131 | padding: 1em } |
|
|
132 | |
|
|
133 | div.system-message p.system-message-title { |
|
|
134 | color: red ; |
|
|
135 | font-weight: bold } |
|
|
136 | |
|
|
137 | div.topic { |
|
|
138 | margin: 2em } |
|
|
139 | |
|
|
140 | h1 { |
|
|
141 | font-family: sans-serif ; |
|
|
142 | font-size: large } |
|
|
143 | |
|
|
144 | h2 { |
|
|
145 | font-family: sans-serif ; |
|
|
146 | font-size: medium } |
|
|
147 | |
|
|
148 | h3 { |
|
|
149 | font-family: sans-serif ; |
|
|
150 | font-size: small } |
|
|
151 | |
|
|
152 | h4 { |
|
|
153 | font-family: sans-serif ; |
|
|
154 | font-style: italic ; |
|
|
155 | font-size: small } |
|
|
156 | |
|
|
157 | h5 { |
|
|
158 | font-family: sans-serif; |
|
|
159 | font-size: x-small } |
|
|
160 | |
|
|
161 | h6 { |
|
|
162 | font-family: sans-serif; |
|
|
163 | font-style: italic ; |
|
|
164 | font-size: x-small } |
|
|
165 | |
|
|
166 | .section hr { |
|
|
167 | width: 75% } |
|
|
168 | |
|
|
169 | ol.simple, ul.simple { |
|
|
170 | margin-bottom: 1em } |
|
|
171 | |
|
|
172 | ol.arabic { |
|
|
173 | list-style: decimal } |
|
|
174 | |
|
|
175 | ol.loweralpha { |
|
|
176 | list-style: lower-alpha } |
|
|
177 | |
|
|
178 | ol.upperalpha { |
|
|
179 | list-style: upper-alpha } |
|
|
180 | |
|
|
181 | ol.lowerroman { |
|
|
182 | list-style: lower-roman } |
|
|
183 | |
|
|
184 | ol.upperroman { |
|
|
185 | list-style: upper-roman } |
|
|
186 | |
|
|
187 | p.caption { |
|
|
188 | font-style: italic } |
|
|
189 | |
|
|
190 | p.credits { |
|
|
191 | font-style: italic ; |
|
|
192 | font-size: smaller } |
|
|
193 | |
|
|
194 | p.label { |
|
|
195 | white-space: nowrap } |
|
|
196 | |
|
|
197 | p.topic-title { |
|
|
198 | font-family: sans-serif ; |
|
|
199 | font-weight: bold } |
|
|
200 | |
|
|
201 | pre.line-block { |
|
|
202 | font-family: serif ; |
|
|
203 | font-size: 100% } |
|
|
204 | |
|
|
205 | pre.literal-block, pre.doctest-block { |
|
|
206 | margin-left: 2em ; |
|
|
207 | margin-right: 2em ; |
|
|
208 | background-color: #eeeeee } |
|
|
209 | |
|
|
210 | span.classifier { |
|
|
211 | font-family: sans-serif ; |
|
|
212 | font-style: oblique } |
|
|
213 | |
|
|
214 | span.classifier-delimiter { |
|
|
215 | font-family: sans-serif ; |
|
|
216 | font-weight: bold } |
|
|
217 | |
|
|
218 | span.interpreted { |
|
|
219 | font-family: sans-serif } |
|
|
220 | |
|
|
221 | span.option-argument { |
|
|
222 | font-style: italic } |
|
|
223 | |
|
|
224 | span.pre { |
|
|
225 | white-space: pre } |
|
|
226 | |
|
|
227 | span.problematic { |
|
|
228 | color: red } |
|
|
229 | |
|
|
230 | table { |
|
|
231 | margin-top: 0.5em ; |
|
|
232 | margin-bottom: 0.5em } |
|
|
233 | |
|
|
234 | td, th { |
|
|
235 | padding-left: 0.5em ; |
|
|
236 | padding-right: 0.5em ; |
|
|
237 | vertical-align: top } |
|
|
238 | |
|
|
239 | td.num { |
|
|
240 | text-align: right } |
|
|
241 | |
|
|
242 | th.field-name { |
|
|
243 | font-weight: bold ; |
|
|
244 | text-align: left ; |
|
|
245 | white-space: nowrap } |
|
|
246 | |
|
|
247 | h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { |
|
|
248 | font-size: 100% } |
|
|
249 | |
|
|
250 | tt { |
|
|
251 | background-color: #eeeeee } |
|
|
252 | |
|
|
253 | ul.auto-toc { |
|
|
254 | list-style-type: none } |
|
|
255 | |
|
|
256 | </style> |
| 14 | </head> |
257 | </head> |
| 15 | <body bgcolor="white"> |
258 | <body bgcolor="white"> |
| 16 | <table class="navigation" cellpadding="0" cellspacing="0" |
259 | <table class="navigation" cellpadding="0" cellspacing="0" |
| 17 | width="100%" border="0"> |
260 | width="100%" border="0"> |
| 18 | <tr><td class="navicon" width="150" height="35"> |
261 | <tr><td class="navicon" width="150" height="35"> |
| 19 | <a href="http://www.gentoo.org/" title="Gentoo Linux Home Page"> |
262 | <a href="http://www.gentoo.org/" title="Gentoo Linux Home Page"> |
| 20 | <img src="http://www.gentoo.org/images/gentoo-new.gif" alt="[Gentoo]" |
263 | <img src="http://www.gentoo.org/images/gentoo-new.gif" alt="[Gentoo]" |
| 21 | border="0" width="150" height="35" /></a></td> |
264 | border="0" width="150" height="35" /></a></td> |
| 22 | <td class="textlinks" align="left"> |
265 | <td class="textlinks" align="left"> |
| 23 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
266 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
| 24 | [<b><a href="http://www.gentoo.org/proj/en/glep">GLEP Index</a></b>] |
267 | [<b><a href="http://www.gentoo.org/proj/en/glep/">GLEP Index</a></b>] |
| 25 | [<b><a href="./glep-0029.txt">GLEP Source</a></b>] |
268 | [<b><a href="http://www.gentoo.org/proj/en/glep/glep-0029.txt">GLEP Source</a></b>] |
| 26 | </td></tr></table> |
269 | </td></tr></table> |
| 27 | <table class="rfc2822 docutils field-list" frame="void" rules="none"> |
270 | <table class="rfc2822 docutils field-list" frame="void" rules="none"> |
| 28 | <col class="field-name" /> |
271 | <col class="field-name" /> |
| 29 | <col class="field-body" /> |
272 | <col class="field-body" /> |
| 30 | <tbody valign="top"> |
273 | <tbody valign="top"> |
| 31 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">29</td> |
274 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">29</td> |
| 32 | </tr> |
275 | </tr> |
| 33 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">USE flag groups</td> |
276 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">USE flag groups</td> |
| 34 | </tr> |
277 | </tr> |
| 35 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.5</td> |
278 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.6</td> |
| 36 | </tr> |
279 | </tr> |
| 37 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Ciaran McCreesh <ciaranm at gentoo.org></td> |
280 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Ciaran McCreesh <ciaranm at gentoo.org></td> |
| 38 | </tr> |
281 | </tr> |
| 39 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs/xml/htdocs/proj/en/glep/glep-0029.txt?cvsroot=gentoo">2005/06/24 21:36:04</a></td> |
282 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/proj/en/glep/glep-0029.txt?cvsroot=gentoo">2005/11/07 22:26:59</a></td> |
| 40 | </tr> |
283 | </tr> |
| 41 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Draft</td> |
284 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Draft</td> |
| 42 | </tr> |
285 | </tr> |
| 43 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
286 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
| 44 | </tr> |
287 | </tr> |
| 45 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="http://www.python.org/peps/glep-0012.html">text/x-rst</a></td> |
288 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="glep-0002.html">text/x-rst</a></td> |
| 46 | </tr> |
289 | </tr> |
| 47 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">19-Aug-2004</td> |
290 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">19-Aug-2004</td> |
| 48 | </tr> |
291 | </tr> |
| 49 | <tr class="field"><th class="field-name">Post-History:</th><td class="field-body">21-Aug-2004, 18-Oct-2004, 25-Oct-2004, 24-Jul-2005</td> |
292 | <tr class="field"><th class="field-name">Post-History:</th><td class="field-body">21-Aug-2004, 18-Oct-2004, 25-Oct-2004, 24-Jul-2005</td> |
| 50 | </tr> |
293 | </tr> |
| 51 | </tbody> |
294 | </tbody> |
| 52 | </table> |
295 | </table> |
| 53 | <hr /> |
296 | <hr /> |
| 54 | <div class="contents topic" id="contents"> |
297 | <div class="contents topic"> |
| 55 | <p class="topic-title first"><a name="contents">Contents</a></p> |
298 | <p class="topic-title first"><a id="contents" name="contents">Contents</a></p> |
| 56 | <ul class="simple"> |
299 | <ul class="simple"> |
| 57 | <li><a class="reference" href="#status" id="id7" name="id7">Status</a></li> |
300 | <li><a class="reference" href="#status" id="id7" name="id7">Status</a></li> |
| 58 | <li><a class="reference" href="#abstract" id="id8" name="id8">Abstract</a></li> |
301 | <li><a class="reference" href="#abstract" id="id8" name="id8">Abstract</a></li> |
| 59 | <li><a class="reference" href="#motivation" id="id9" name="id9">Motivation</a></li> |
302 | <li><a class="reference" href="#motivation" id="id9" name="id9">Motivation</a></li> |
| 60 | <li><a class="reference" href="#specification" id="id10" name="id10">Specification</a><ul> |
303 | <li><a class="reference" href="#specification" id="id10" name="id10">Specification</a><ul> |
| … | |
… | |
| 70 | <li><a class="reference" href="#backwards-compatibility" id="id18" name="id18">Backwards Compatibility</a></li> |
313 | <li><a class="reference" href="#backwards-compatibility" id="id18" name="id18">Backwards Compatibility</a></li> |
| 71 | <li><a class="reference" href="#references" id="id19" name="id19">References</a></li> |
314 | <li><a class="reference" href="#references" id="id19" name="id19">References</a></li> |
| 72 | <li><a class="reference" href="#copyright" id="id20" name="id20">Copyright</a></li> |
315 | <li><a class="reference" href="#copyright" id="id20" name="id20">Copyright</a></li> |
| 73 | </ul> |
316 | </ul> |
| 74 | </div> |
317 | </div> |
| 75 | <div class="section" id="status"> |
318 | <div class="section"> |
| 76 | <h1><a class="toc-backref" href="#id7" name="status">Status</a></h1> |
319 | <h1><a class="toc-backref" href="#id7" id="status" name="status">Status</a></h1> |
| 77 | <p>Withdrawn by request of the author.</p> |
320 | <p>Withdrawn by request of the author.</p> |
| 78 | </div> |
321 | </div> |
| 79 | <div class="section" id="abstract"> |
322 | <div class="section"> |
| 80 | <h1><a class="toc-backref" href="#id8" name="abstract">Abstract</a></h1> |
323 | <h1><a class="toc-backref" href="#id8" id="abstract" name="abstract">Abstract</a></h1> |
| 81 | <p>Currently, USE flags must be selected on a one-by-one basis, making it |
324 | <p>Currently, USE flags must be selected on a one-by-one basis, making it |
| 82 | time-consuming to set up make.conf appropriately for a machine's role.</p> |
325 | time-consuming to set up make.conf appropriately for a machine's role.</p> |
| 83 | </div> |
326 | </div> |
| 84 | <div class="section" id="motivation"> |
327 | <div class="section"> |
| 85 | <h1><a class="toc-backref" href="#id9" name="motivation">Motivation</a></h1> |
328 | <h1><a class="toc-backref" href="#id9" id="motivation" name="motivation">Motivation</a></h1> |
| 86 | <p>Many packages have optional support for other packages (for example, the |
329 | <p>Many packages have optional support for other packages (for example, the |
| 87 | Vim text editor can optionally support perl, python and ruby |
330 | Vim text editor can optionally support perl, python and ruby |
| 88 | interpreters). In Gentoo, these optional dependencies can be selected by |
331 | interpreters). In Gentoo, these optional dependencies can be selected by |
| 89 | the user using USE flags. This allows a system appropriate for a given |
332 | the user using USE flags. This allows a system appropriate for a given |
| 90 | environment to be built -- a server, for example, should not typically |
333 | environment to be built -- a server, for example, should not typically |
| … | |
… | |
| 96 | system. In addition, using "-<em>" to disable all default USE flags can be |
339 | system. In addition, using "-<em>" to disable all default USE flags can be |
| 97 | risky as certain USE flags should not generally be turned off. This GLEP |
340 | risky as certain USE flags should not generally be turned off. This GLEP |
| 98 | proposes a mechanism for grouping USE flags to simplify selection and to |
341 | proposes a mechanism for grouping USE flags to simplify selection and to |
| 99 | make USE="-</em>" less dangerous.</p> |
342 | make USE="-</em>" less dangerous.</p> |
| 100 | </div> |
343 | </div> |
| 101 | <div class="section" id="specification"> |
344 | <div class="section"> |
| 102 | <h1><a class="toc-backref" href="#id10" name="specification">Specification</a></h1> |
345 | <h1><a class="toc-backref" href="#id10" id="specification" name="specification">Specification</a></h1> |
| 103 | <div class="section" id="group-specification"> |
346 | <div class="section"> |
| 104 | <h2><a class="toc-backref" href="#id11" name="group-specification">Group Specification</a></h2> |
347 | <h2><a class="toc-backref" href="#id11" id="group-specification" name="group-specification">Group Specification</a></h2> |
| 105 | <p>A group shall consist of one or more tokens. Each token may be a USE flag, |
348 | <p>A group shall consist of one or more tokens. Each token may be a USE flag, |
| 106 | a -USE flag, a reference to another group or a negative reference to |
349 | a -USE flag, a reference to another group or a negative reference to |
| 107 | another group.</p> |
350 | another group.</p> |
| 108 | <p>These groups are defined in <tt class="docutils literal"><span class="pre">${PORTDIR}/profiles/use.groups</span></tt>. It is |
351 | <p>These groups are defined in <tt class="docutils literal"><span class="pre">${PORTDIR}/profiles/use.groups</span></tt>. It is |
| 109 | proposed that uppercase names only are used for groups to keep them |
352 | proposed that uppercase names only are used for groups to keep them |
| … | |
… | |
| 152 | # Illegal circular references |
395 | # Illegal circular references |
| 153 | GROUP1 @GROUP2 foo |
396 | GROUP1 @GROUP2 foo |
| 154 | GROUP2 @GROUP1 bar |
397 | GROUP2 @GROUP1 bar |
| 155 | </pre> |
398 | </pre> |
| 156 | </div> |
399 | </div> |
| 157 | <div class="section" id="group-descriptions"> |
400 | <div class="section"> |
| 158 | <h2><a class="toc-backref" href="#id12" name="group-descriptions">Group Descriptions</a></h2> |
401 | <h2><a class="toc-backref" href="#id12" id="group-descriptions" name="group-descriptions">Group Descriptions</a></h2> |
| 159 | <p>Groups shall have a textual description associated with them in the same |
402 | <p>Groups shall have a textual description associated with them in the same |
| 160 | way as USE flags. The file <tt class="docutils literal"><span class="pre">${PORTDIR}/profiles/use.groups.desc</span></tt> |
403 | way as USE flags. The file <tt class="docutils literal"><span class="pre">${PORTDIR}/profiles/use.groups.desc</span></tt> |
| 161 | contains these:</p> |
404 | contains these:</p> |
| 162 | <pre class="literal-block"> |
405 | <pre class="literal-block"> |
| 163 | # This is a comment |
406 | # This is a comment |
| 164 | DESKTOP Flags which are appropriate for most desktop systems |
407 | DESKTOP Flags which are appropriate for most desktop systems |
| 165 | RECOMMENDED Flags which should be enabled on almost all systems |
408 | RECOMMENDED Flags which should be enabled on almost all systems |
| 166 | </pre> |
409 | </pre> |
| 167 | </div> |
410 | </div> |
| 168 | <div class="section" id="using-groups"> |
411 | <div class="section"> |
| 169 | <h2><a class="toc-backref" href="#id13" name="using-groups">Using Groups</a></h2> |
412 | <h2><a class="toc-backref" href="#id13" id="using-groups" name="using-groups">Using Groups</a></h2> |
| 170 | <p>Groups may be used in <tt class="docutils literal"><span class="pre">/etc/make.conf</span></tt>, <tt class="docutils literal"><span class="pre">/etc/portage/package.use</span></tt> and |
413 | <p>Groups may be used in <tt class="docutils literal"><span class="pre">/etc/make.conf</span></tt>, <tt class="docutils literal"><span class="pre">/etc/portage/package.use</span></tt> and |
| 171 | other places where USE flags are normally specified. They may <em>not</em> be |
414 | other places where USE flags are normally specified. They may <em>not</em> be |
| 172 | used inside <tt class="docutils literal"><span class="pre">IUSE`.</span> <span class="pre">As</span> <span class="pre">before,</span> <span class="pre">the</span> <span class="pre">@</span> <span class="pre">symbol</span> <span class="pre">is</span> <span class="pre">used</span> <span class="pre">to</span> <span class="pre">indicate</span> <span class="pre">that</span> <span class="pre">a</span> |
415 | used inside <tt class="docutils literal"><span class="pre">IUSE`.</span> <span class="pre">As</span> <span class="pre">before,</span> <span class="pre">the</span> <span class="pre">@</span> <span class="pre">symbol</span> <span class="pre">is</span> <span class="pre">used</span> <span class="pre">to</span> <span class="pre">indicate</span> <span class="pre">that</span> <span class="pre">a</span> |
| 173 | <span class="pre">group</span> <span class="pre">is</span> <span class="pre">being</span> <span class="pre">referenced.</span> <span class="pre">For</span> <span class="pre">example,</span> <span class="pre">a</span> <span class="pre">``make.conf</span></tt> for a KDE desktop |
416 | <span class="pre">group</span> <span class="pre">is</span> <span class="pre">being</span> <span class="pre">referenced.</span> <span class="pre">For</span> <span class="pre">example,</span> <span class="pre">a</span> <span class="pre">``make.conf</span></tt> for a KDE desktop |
| 174 | system might resemble:</p> |
417 | system might resemble:</p> |
| … | |
… | |
| 192 | USE="-@GROUP1 @GROUP2 bar -foo -foo -bar bar" |
435 | USE="-@GROUP1 @GROUP2 bar -foo -foo -bar bar" |
| 193 | USE="-foo -bar bar -baz fnord bar -foo -foo -bar bar" |
436 | USE="-foo -bar bar -baz fnord bar -foo -foo -bar bar" |
| 194 | USE="-baz fnord -foo bar" |
437 | USE="-baz fnord -foo bar" |
| 195 | </pre> |
438 | </pre> |
| 196 | </div> |
439 | </div> |
| 197 | <div class="section" id="issues-with-flags-and-groups"> |
440 | <div class="section"> |
| 198 | <h2><a name="issues-with-flags-and-groups">Issues with -flags and <a class="reference" href="mailto:-@GROUPS">-@GROUPS</a></a></h2> |
441 | <h2><a id="issues-with-flags-and-groups" name="issues-with-flags-and-groups">Issues with -flags and <a class="reference" href="mailto:-@GROUPS">-@GROUPS</a></a></h2> |
| 199 | <p>Earlier drafts of this GLEP did not allow -use flags or <a class="reference" href="mailto:-@GROUPS">-@GROUPS</a>. However, |
442 | <p>Earlier drafts of this GLEP did not allow -use flags or <a class="reference" href="mailto:-@GROUPS">-@GROUPS</a>. However, |
| 200 | because of feedback along the lines of "we shouldn't disallow features |
443 | because of feedback along the lines of "we shouldn't disallow features |
| 201 | just because some users won't understand them" (for example, <a class="footnote-reference" href="#id6" id="id2" name="id2">[3]</a>), these |
444 | just because some users won't understand them" (for example, <a class="footnote-reference" href="#id6" id="id2" name="id2">[3]</a>), these |
| 202 | are now allowed but discouraged.</p> |
445 | are now allowed but discouraged.</p> |
| 203 | <p>The problems are best illustrated by example. Say we have the following |
446 | <p>The problems are best illustrated by example. Say we have the following |
| … | |
… | |
| 232 | <pre class="literal-block"> |
475 | <pre class="literal-block"> |
| 233 | USE="X gtk gtk2 gnome -kde -qt" |
476 | USE="X gtk gtk2 gnome -kde -qt" |
| 234 | </pre> |
477 | </pre> |
| 235 | <p>This is clearly not the desired effect.</p> |
478 | <p>This is clearly not the desired effect.</p> |
| 236 | </div> |
479 | </div> |
| 237 | <div class="section" id="adding-new-groups"> |
480 | <div class="section"> |
| 238 | <h2><a class="toc-backref" href="#id15" name="adding-new-groups">Adding New Groups</a></h2> |
481 | <h2><a class="toc-backref" href="#id15" id="adding-new-groups" name="adding-new-groups">Adding New Groups</a></h2> |
| 239 | <p>The actual groups to be created is beyond the scope of this GLEP, and any |
482 | <p>The actual groups to be created is beyond the scope of this GLEP, and any |
| 240 | group names contained herein should be treated as examples only. Creation |
483 | group names contained herein should be treated as examples only. Creation |
| 241 | of new groups and changing a group's flags should be discussed on the |
484 | of new groups and changing a group's flags should be discussed on the |
| 242 | gentoo-dev mailing list as per existing policy for new global USE flags.</p> |
485 | gentoo-dev mailing list as per existing policy for new global USE flags.</p> |
| 243 | <p>In particular, any changes involving -flags <em>must</em> be thoroughly discussed |
486 | <p>In particular, any changes involving -flags <em>must</em> be thoroughly discussed |
| 244 | before implementation.</p> |
487 | before implementation.</p> |
| 245 | </div> |
488 | </div> |
| 246 | </div> |
489 | </div> |
| 247 | <div class="section" id="rationale"> |
490 | <div class="section"> |
| 248 | <h1><a class="toc-backref" href="#id16" name="rationale">Rationale</a></h1> |
491 | <h1><a class="toc-backref" href="#id16" id="rationale" name="rationale">Rationale</a></h1> |
| 249 | <p>USE groups will simplify selecting an appropriate set of USE flags for a |
492 | <p>USE groups will simplify selecting an appropriate set of USE flags for a |
| 250 | system.</p> |
493 | system.</p> |
| 251 | </div> |
494 | </div> |
| 252 | <div class="section" id="reference-implementation"> |
495 | <div class="section"> |
| 253 | <h1><a class="toc-backref" href="#id17" name="reference-implementation">Reference Implementation</a></h1> |
496 | <h1><a class="toc-backref" href="#id17" id="reference-implementation" name="reference-implementation">Reference Implementation</a></h1> |
| 254 | <p>TODO</p> |
497 | <p>TODO</p> |
| 255 | </div> |
498 | </div> |
| 256 | <div class="section" id="backwards-compatibility"> |
499 | <div class="section"> |
| 257 | <h1><a class="toc-backref" href="#id18" name="backwards-compatibility">Backwards Compatibility</a></h1> |
500 | <h1><a class="toc-backref" href="#id18" id="backwards-compatibility" name="backwards-compatibility">Backwards Compatibility</a></h1> |
| 258 | <p>The user will not need to make any changes to keep their current setup. |
501 | <p>The user will not need to make any changes to keep their current setup. |
| 259 | Users who are not running a portage version which supports groups can |
502 | Users who are not running a portage version which supports groups can |
| 260 | carry on using current syntax with no side-effects.</p> |
503 | carry on using current syntax with no side-effects.</p> |
| 261 | <p>Some tools which work with make.conf and / or USE flags (for example, |
504 | <p>Some tools which work with make.conf and / or USE flags (for example, |
| 262 | <tt class="docutils literal"><span class="pre">ufed</span></tt>) will need to be updated to understand the new group syntax.</p> |
505 | <tt class="docutils literal"><span class="pre">ufed</span></tt>) will need to be updated to understand the new group syntax.</p> |
| 263 | <p>There is currently a dynamic list of USE flags available on the Gentoo |
506 | <p>There is currently a dynamic list of USE flags available on the Gentoo |
| 264 | website <a class="footnote-reference" href="#id5" id="id3" name="id3">[2]</a>. For consistency, a similar list will be needed for USE |
507 | website <a class="footnote-reference" href="#id5" id="id3" name="id3">[2]</a>. For consistency, a similar list will be needed for USE |
| 265 | groups.</p> |
508 | groups.</p> |
| 266 | </div> |
509 | </div> |
| 267 | <div class="section" id="references"> |
510 | <div class="section"> |
| 268 | <h1><a class="toc-backref" href="#id19" name="references">References</a></h1> |
511 | <h1><a class="toc-backref" href="#id19" id="references" name="references">References</a></h1> |
| 269 | <table class="docutils footnote" frame="void" id="id4" rules="none"> |
512 | <table class="docutils footnote" frame="void" id="id4" rules="none"> |
| 270 | <colgroup><col class="label" /><col /></colgroup> |
513 | <colgroup><col class="label" /><col /></colgroup> |
| 271 | <tbody valign="top"> |
514 | <tbody valign="top"> |
| 272 | <tr><td class="label"><a class="fn-backref" href="#id1" name="id4">[1]</a></td><td>GLEP 23: Portage handling of ACCEPT_LICENSE |
515 | <tr><td class="label"><a class="fn-backref" href="#id1" name="id4">[1]</a></td><td>GLEP 23: Portage handling of ACCEPT_LICENSE |
| 273 | (<a class="reference" href="http://www.gentoo.org/proj/en/glep/glep-0023.html">http://www.gentoo.org/proj/en/glep/glep-0023.html</a>)</td></tr> |
516 | (<a class="reference" href="http://www.gentoo.org/proj/en/glep/glep-0023.html">http://www.gentoo.org/proj/en/glep/glep-0023.html</a>)</td></tr> |
| … | |
… | |
| 285 | <tr><td class="label"><a class="fn-backref" href="#id2" name="id6">[3]</a></td><td>GLEP 29 discussion on the gentoo-dev mailing list |
528 | <tr><td class="label"><a class="fn-backref" href="#id2" name="id6">[3]</a></td><td>GLEP 29 discussion on the gentoo-dev mailing list |
| 286 | (<a class="reference" href="http://marc.theaimsgroup.com/?l=gentoo-dev&m=109813990013812">http://marc.theaimsgroup.com/?l=gentoo-dev&m=109813990013812</a>)</td></tr> |
529 | (<a class="reference" href="http://marc.theaimsgroup.com/?l=gentoo-dev&m=109813990013812">http://marc.theaimsgroup.com/?l=gentoo-dev&m=109813990013812</a>)</td></tr> |
| 287 | </tbody> |
530 | </tbody> |
| 288 | </table> |
531 | </table> |
| 289 | </div> |
532 | </div> |
| 290 | <div class="section" id="copyright"> |
533 | <div class="section"> |
| 291 | <h1><a class="toc-backref" href="#id20" name="copyright">Copyright</a></h1> |
534 | <h1><a class="toc-backref" href="#id20" id="copyright" name="copyright">Copyright</a></h1> |
| 292 | <p>This document has been placed in the public domain.</p> |
535 | <p>This document has been placed in the public domain.</p> |
| 293 | <blockquote> |
536 | <blockquote> |
| 294 | vim: set tw=74 :</blockquote> |
537 | vim: set tw=74 :</blockquote> |
| 295 | </div> |
538 | </div> |
| 296 | |
539 | |
| 297 | </div> |
540 | </div> |
| 298 | <div class="footer"> |
541 | <div class="footer"> |
| 299 | <hr class="footer" /> |
542 | <hr class="footer" /> |
| 300 | <a class="reference" href="glep-0029.txt">View document source</a>. |
543 | <a class="reference" href="glep-0029.txt">View document source</a>. |
| 301 | Generated on: 2005-11-07 22:15 UTC. |
544 | Generated on: 2006-10-10 20:23 UTC. |
| 302 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
545 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
| 303 | |
546 | |
| 304 | </div> |
547 | </div> |
| 305 | </body> |
548 | </body> |
| 306 | </html> |
549 | </html> |