| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-use.xml,v 1.12 2004/04/25 13:08:09 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-use.xml,v 1.13 2004/05/07 07:42:53 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | <section> |
10 | <section> |
| 11 | <title>What are USE-flags?</title> |
11 | <title>What are USE-flags?</title> |
| 12 | <subsection> |
12 | <subsection> |
| 13 | <title>The ideas behind USE-flags</title> |
13 | <title>The ideas behind USE-flags</title> |
| 14 | <body> |
14 | <body> |
| 15 | |
15 | |
| 16 | <p> |
16 | <p> |
| 17 | When you are installing Gentoo (or any other distribution, or even operating |
17 | When you are installing Gentoo (or any other distribution, or even operating |
| 18 | system for that matter) you make choices depending on the environment you are |
18 | system for that matter) you make choices depending on the environment you are |
| 19 | working with. A setup for a server differs from a setup for a workstation. |
19 | working with. A setup for a server differs from a setup for a workstation. |
| 20 | A gaming workstation differs from a 3D rendering workstation. |
20 | A gaming workstation differs from a 3D rendering workstation. |
| 21 | </p> |
21 | </p> |
| 22 | |
22 | |
| … | |
… | |
| 165 | Sometimes you want to set a certain USE-setting only once. Instead of editing |
165 | Sometimes you want to set a certain USE-setting only once. Instead of editing |
| 166 | <path>/etc/make.conf</path> twice (to do and undo the USE-changes) you can just |
166 | <path>/etc/make.conf</path> twice (to do and undo the USE-changes) you can just |
| 167 | declare the USE-variable as environment variable. |
167 | declare the USE-variable as environment variable. |
| 168 | </p> |
168 | </p> |
| 169 | |
169 | |
| 170 | <p> |
170 | <p> |
| 171 | As an example we will temporarily remove java from the USE-setting |
171 | As an example we will temporarily remove java from the USE-setting |
| 172 | during the installation of mozilla. |
172 | during the installation of mozilla. |
| 173 | </p> |
173 | </p> |
| 174 | |
174 | |
| 175 | <note> |
175 | <note> |
| 176 | The <c>emerge</c> command will be discussed more thoroughly in <uri |
176 | The <c>emerge</c> command will be discussed more thoroughly in <uri |
| 177 | link="?part=2&chap=2">Portage and Software</uri>. |
177 | link="?part=2&chap=2">Portage and Software</uri>. |
| 178 | </note> |
178 | </note> |
| 179 | |
179 | |
| 180 | <pre caption="Using USE as evironment variable"> |
180 | <pre caption="Using USE as environment variable"> |
| 181 | # <i>USE="-java" emerge mozilla</i> |
181 | # <i>USE="-java" emerge mozilla</i> |
| 182 | </pre> |
182 | </pre> |
| 183 | |
183 | |
| 184 | </body> |
184 | </body> |
| 185 | </subsection> |
185 | </subsection> |
| 186 | <subsection> |
186 | <subsection> |
| 187 | <title>Inheriting USE-flags</title> |
187 | <title>Inheriting USE-flags</title> |
| 188 | <body> |
188 | <body> |
| 189 | |
189 | |
| 190 | <p> |
190 | <p> |
| 191 | Some packages don't only listen to USE-flags, but also provide USE-flags. When |
191 | Some packages don't only listen to USE-flags, but also provide USE-flags. When |
| 192 | you install such a package, the USE-flag they provide is added to your USE |
192 | you install such a package, the USE-flag they provide is added to your USE |
| 193 | setting. To view the list of packages that provide a USE-flag, check |
193 | setting. To view the list of packages that provide a USE-flag, check |
| 194 | <path>/etc/make.profile/use.defaults</path>: |
194 | <path>/etc/make.profile/use.defaults</path>: |
| 195 | </p> |
195 | </p> |