/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-use.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-use.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.18 Revision 1.19
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.18 2004/09/11 14:05:49 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-use.xml,v 1.19 2004/09/24 14:00:33 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>
17When you are installing Gentoo (or any other distribution, or even operating 17When you are installing Gentoo (or any other distribution, or even operating
18system for that matter) you make choices depending on the environment you are 18system for that matter) you make choices depending on the environment you are
19working with. A setup for a server differs from a setup for a workstation. 19working with. A setup for a server differs from a setup for a workstation.
20A gaming workstation differs from a 3D rendering workstation. 20A gaming workstation differs from a 3D rendering workstation.
21</p> 21</p>
22 22
148<c>USE</c> variable. This is done globally by defining the <c>USE</c> variable 148<c>USE</c> variable. This is done globally by defining the <c>USE</c> variable
149in <path>/etc/make.conf</path>. In this variable you add the extra USE-flags you 149in <path>/etc/make.conf</path>. In this variable you add the extra USE-flags you
150require, or remove the USE-flags you don't want. This latter is done by 150require, or remove the USE-flags you don't want. This latter is done by
151prefixing the keyword with the minus-sign ("-"). 151prefixing the keyword with the minus-sign ("-").
152</p> 152</p>
153 153
154<p> 154<p>
155For instance, to remove support for KDE and QT but add support for ldap, the 155For instance, to remove support for KDE and QT but add support for ldap, the
156following <c>USE</c> can be defined in <path>/etc/make.conf</path>: 156following <c>USE</c> can be defined in <path>/etc/make.conf</path>:
157</p> 157</p>
158 158
159<pre caption="An example USE setting in /etc/make.conf"> 159<pre caption="An example USE setting in /etc/make.conf">
160USE="-kde -qt ldap" 160USE="-kde -qt ldap"
161</pre> 161</pre>
162 162
163</body>
164</subsection>
165<subsection>
166<title>Declaring USE flags for individual packages</title>
167<body>
168
163<p> 169<p>
164Sometimes you want to declare a certain USE flag for one (or a couple) of 170Sometimes you want to declare a certain USE flag for one (or a couple) of
165applications but not system-wide. To accomplish this, you will need to create 171applications but not system-wide. To accomplish this, you will need to create
166the <path>/etc/portage</path> directory (if it doesn't exist yet) and edit 172the <path>/etc/portage</path> directory (if it doesn't exist yet) and edit
167<path>/etc/portage/package.use</path>. 173<path>/etc/portage/package.use</path>.
168</p> 174</p>
169 175
170<p> 176<p>
171For instance, if you don't want <c>berkdb</c> support globally but you do want 177For instance, if you don't want <c>berkdb</c> support globally but you do want
172it for <c>mysql</c>, you would add: 178it for <c>mysql</c>, you would add:
173</p> 179</p>
174 180
175<pre caption="/etc/portage/package.use example"> 181<pre caption="/etc/portage/package.use example">
176dev-db/mysql berkdb 182dev-db/mysql berkdb
177</pre> 183</pre>

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20