1 |
<?xml version='1.0' encoding="UTF-8"?> |
<?xml version='1.0' encoding="iso-8859-1"?> |
2 |
|
|
3 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 |
|
|
5 |
<guide link="/doc/en/use-howto.xml"> |
<guide link="/doc/en/use-howto.xml"> |
6 |
<title>Gentoo Guide to USE flags</title> |
<title>Gentoo Guide to USE flags</title> |
7 |
<author title="Author"><mail link="seemant@gentoo.org"> |
<author title="Forfatter"><mail link="seemant@gentoo.org"> |
8 |
Seemant Kulleen</mail> |
Seemant Kulleen</mail> |
9 |
</author> |
</author> |
10 |
<author title="Editor"><mail link="felix@fbreuer.de"> |
<author title="Redaktør"><mail link="felix@fbreuer.de"> |
11 |
Felix Breuer</mail> |
Felix Breuer</mail> |
12 |
</author> |
</author> |
13 |
<author title="Editor"><mail link="meekrob@gentoo.org"> |
<author title="Redaktør"><mail link="meekrob@gentoo.org"> |
14 |
Sherman Boyd</mail> |
Sherman Boyd</mail> |
15 |
</author> |
</author> |
16 |
<author title="Editor"><mail link="zhen@gentoo.org"> |
<author title="Redaktør"><mail link="zhen@gentoo.org"> |
17 |
John Davis</mail> |
John Davis</mail> |
18 |
</author> |
</author> |
19 |
<author title="Editor"><mail link="stocke2@gentoo.org"> |
<author title="Redaktør"><mail link="stocke2@gentoo.org"> |
20 |
Eric Stockbridge</mail> |
Eric Stockbridge</mail> |
21 |
</author> |
</author> |
22 |
|
<author title="Oversætter"><mail link="mejlholm@stud.auc.dk"> |
23 |
|
Arne Mejlholm</mail> |
24 |
|
</author> |
25 |
|
|
26 |
<license/> |
<license/> |
27 |
|
|
28 |
<abstract>This guide introduces you to the ultimate tool for |
<abstract>Denne guide introducerer dig for det ultimative værktøj til |
29 |
customizing Gentoo -- USE settings. Not only is there a description of |
at skræddersy Gentoo -- USE indstillingerne. Der er ikke bare en |
30 |
each USE flag in current use, there is also a helpful guide to help you to |
beskrivelse af hver USE flag pt, der er også |
31 |
determine which USE flags you will need to use.</abstract> |
hjælpsom guide til at hjælpe dig med at |
32 |
|
fastslå hvilke USE flag du har brug for at bruge.</abstract> |
33 |
|
|
34 |
<version>1.2.1</version> |
<version>1.2.1</version> |
35 |
<date>18 August 2003</date> |
<date>18 August 2003</dat> |
36 |
|
|
37 |
<chapter> |
<chapter> |
38 |
<title>Introduction</title> |
<title>Introduktion</title> |
39 |
<section> |
<section> |
40 |
<title>What is the use of <c>USE</c> flags anyway?</title> |
<title>Hvad kan <c>USE</c> egentlig bruges til?</title> |
41 |
<body> |
<body> |
42 |
<p>One of the things which attracted me, as a user, to Gentoo was the fact |
<p>En af de ting der tiltrak mig, som en bruger, til Gentoo var det |
43 |
that it is a highly customisable distribution. The fact that it is a source |
faktum at det er en distribution der i høj grad kan skræddersyes. Det |
44 |
based distribution allows the user complete control over what kinds of |
faktum det er en distribution der er baseret på kildekode tillader |
45 |
features and support are built in to the installed applications. Moreover, |
brugeren komplet kontrol over hvilken slags features og understøttelse |
46 |
the idea of bloat reduction appealed to me -- I like not having to install |
der er bygget ind i de installerede applikationer. Ideen om at udrydde |
47 |
things which I do not <e>really</e> need.</p> |
unødvendighed appelerede endnu mere til mig -- Jeg kan godt lide ikke |
48 |
|
at skulle installere ting som jeg |
49 |
<p>And how, exactly, does Gentoo achieve this? By defining <c>USE</c> settings. |
ikke <e>rigtig</e> har brug for.</p> |
50 |
Essentially, these are keywords that define options used on a system-wide |
|
51 |
basis to configure applications during their respective compilation |
<p>Og præcis hvordan udfører Gentoo dette? Ved at definere <c>USE</c> |
52 |
procedures.</p> |
indstillinger. Disse er, essientielt, nøgleord der definerer |
53 |
|
muligheder til brug over hele bredden af et systems basis for at |
54 |
|
konfigurere applikationer under deres respektive komplationsprocedurer.</p> |
55 |
</body> |
</body> |
56 |
</section> |
</section> |
57 |
|
|
58 |
<section> |
<section> |
59 |
<title>Default <c>USE</c> flags</title> |
<title>Standard <c>USE</c> flag</title> |
60 |
<body> |
<body> |
61 |
<p>Of course, Gentoo defines a set of safe default flags for you. You will |
<p>Gentoo definerer selvfølgelig et sæt af sikre standard flag til |
62 |
find these in your <path>/etc/make.profile/make.defaults</path> file.</p> |
dig. Du finder disse i din <path>/etc/make.profile/make.defaults</path> fil.</p> |
|
|
|
63 |
|
|
64 |
<p>From the Gentoo-1.4_rc2 release, the <c>USE</c> settings are:</p> |
<p>Fra og med Gentoo-1.4_rc2 udgivelsen er <c>USE</c> indstillingerne:</p> |
65 |
|
|
66 |
<pre>USE="xv slang readline gpm berkdb mmx 3dnow gdbm tcpd pam libwww ssl nls |
<pre>USE="xv slang readline gpm berkdb mmx 3dnow gdbm tcpd pam libwww ssl nls |
67 |
arts perl python esd gif imlib sdl oggvorbis gnome gtk X qt |
arts perl python esd gif imlib sdl oggvorbis gnome gtk X qt |
68 |
kde motif opengl avi png tiff gif"</pre> |
kde motif opengl avi png tiff gif"</pre> |
69 |
|
|
|
|
|
70 |
<warn> |
<warn> |
71 |
Do not write to this file, as I can see many of you scrambling to do, but read |
Skriv ikke til denne fil, selvom jeg kan se at mange af jer har lyst, |
72 |
the next section first. |
læs derimod den næste sektion først. |
73 |
</warn> |
</warn> |
74 |
|
|
75 |
</body> |
</body> |
76 |
</section> |
</section> |
77 |
|
|
78 |
<section> |
<section> |
79 |
<title>Setting your own USE flags</title> |
<title>At definere dine egne USE flag</title> |
80 |
<body> |
<body> |
81 |
|
|
82 |
<p> |
<p> |
83 |
To set you own use flags, edit your <path>/etc/make.conf</path> file. In that |
For at definere dine egne use flag skal du ændre din |
84 |
file, you will see: |
<path>/etc/make.conf</path> fil. |
85 |
|
I den fil finder du: |
86 |
</p> |
</p> |
87 |
|
|
88 |
<pre caption = "Commented USE-flag"> |
<pre caption = "Kommenterede USE-flag"> |
89 |
#USE="" |
#USE="" |
90 |
</pre> |
</pre> |
91 |
|
|
92 |
<p> |
<p> |
93 |
Simply uncomment this line by removing the <c>#</c>, and add whatever other |
Udkommenter simpelthen denne linie ved at fjerne <c>#</c> og tilføj |
94 |
flags you want to add. "But what if I want to remove things from the |
hvilke flag du har lyst til at tilføje. |
95 |
<path>make.defaults</path> file?" I hear you ask. That is simply done by |
"Hvad nu hvis jeg har lyst til at fjerne ting fra |
96 |
putting "-flag" in the USE variable in your <path>/etc/make.conf</path> |
<path>make.defaults</path> filen?", hører jeg dig sige. Dette gøres |
97 |
file. |
simpelt ved at sætte "-flag" i USE variablen i din <path>/etc/make.conf</path> |
98 |
|
fil. |
99 |
</p> |
</p> |
100 |
|
|
101 |
<impo> |
<impo> |
102 |
Remember that <c>-flag</c> disables a flag and <c>flag</c> adds a flag. If a |
Husk at <c>-flag</c> slår et flag fra og <c>flag</c> tilføjer et |
103 |
flag is neither in <path>/etc/make.profile/make.defaults</path> nor in |
flag. Hvis et flag ikke er i hverken <path>/etc/make.profile/make.defaults</path> eller i |
104 |
<path>/etc/make.conf</path> then its functionality is disabled. |
<path>/etc/make.conf</path> så er dens funktionalitet slået fra. |
105 |
</impo> |
</impo> |
106 |
|
|
107 |
<pre caption="Example USE Variable from /etc/make.conf"> |
<pre caption="Eksempel på USE variabel fra /etc/make.conf"> |
108 |
USE="-gnome -kde qt -arts -nls python perl oggvorbis opengl sdl |
USE="-gnome -kde qt -arts -nls python perl oggvorbis opengl sdl |
109 |
-postgres jpeg png truetype xml xml2 dvd avi aalib mpeg encode fbcon |
-postgres jpeg png truetype xml xml2 dvd avi aalib mpeg encode fbcon |
110 |
mmx" |
mmx" |
111 |
</pre> |
</pre> |
112 |
|
|
113 |
<p> |
<p> |
114 |
You do not have to edit your <path>/etc/make.conf</path> if you want to emerge |
Du behøves ikke ændre din <path>/etc/make.conf</path> hvis du vil |
115 |
a single package with different USE flags. You can simply set the <c>USE</c> |
emerge en enkelt pakke med andre USE flag. Du kan simpelt sætte |
116 |
environment variable. Its contents are added to what you already have in |
<c>USE</c> miljø variablen. Dens indhold tilføjes til hvad du end |
117 |
<path>make.defaults</path> and <path>make.conf</path>. However, this |
allerede har i dine |
118 |
"altered" USE flag isn't used when you update that package. |
<path>make.defaults</path> og <path>make.conf</path>. |
119 |
|
Bemærk dog at dette "ændrede" USE flag ikke bruges når du opdaterer |
120 |
|
denne pakke. |
121 |
</p> |
</p> |
122 |
|
|
123 |
<pre caption="USE as Environment Variable"> |
<pre caption="USE som en miljø variabel"> |
124 |
# <i>USE="-guile +libgda" emerge -pv gnumeric</i> |
# <i>USE="-guile +libgda" emerge -pv gnumeric</i> |
125 |
|
|
126 |
These are the packages that I would merge, in order: |
These are the packages that I would merge, in order: |
137 |
</pre> |
</pre> |
138 |
|
|
139 |
<note> |
<note> |
140 |
As you can see <c>emerge -pv pkg</c> tells you which flags a certain package |
Som du kan se fortæller <c>emerge -pv pkg</c> dig hvilke flag en given |
141 |
uses and what flags are set. |
pakke bruger og hvilke flag der er defineret. |
142 |
</note> |
</note> |
143 |
|
|
144 |
<p> |
<p> |
145 |
Now that you know how to enable extra flags, and disable existing flags, |
Nu hvor du ved hvordan man slår ekstra flag og til og fra, lad os sp |
146 |
let us examine what these flags actually do. |
undersøge hvad disse flag rent faktisk før. |
147 |
</p> |
</p> |
148 |
|
|
149 |
</body> |
</body> |
151 |
</chapter> |
</chapter> |
152 |
|
|
153 |
<chapter> |
<chapter> |
154 |
<title>Available USE flags</title> |
<title>Tilgængelige USE flag.</title> |
155 |
|
|
156 |
<section> |
<section> |
157 |
<title>Where to find USE Flags</title> |
<title>Hvor finder jeg USE flag</title> |
158 |
<body> |
<body> |
159 |
|
|
160 |
<note> |
<note> |
161 |
If you want to add a use flag, add it to <path>use.desc</path> and upload it |
Hvis du vil tilføje use flag, skal du tilføje det til |
162 |
to CVS. <path>use.desc</path> is what this list is generated from. |
<path>use.desc</path> og upload det til CVS. <path>use.desc</path> er |
163 |
|
hvad denne liste bliver genereret fra. |
164 |
</note> |
</note> |
165 |
|
|
166 |
<p> |
<p> |
167 |
You can find an automagically updated database of USE flags here: |
Du kan finde en automatisk opdateret database over USE flag her: |
168 |
<uri link="/dyn/use-index.xml">USE Flags</uri>. |
<uri link="/dyn/use-index.xml">USE Flag</uri>. |
169 |
</p> |
</p> |
170 |
|
|
171 |
<p> |
<p> |
172 |
<c>etcat</c> from the <c>gentoolkit</c> package will tell you which USE flags |
<c>etcat</c> fra pakken <c>gentoolkit</c> fortæller dig hvilke USE |
173 |
are available for a package, which USE flags are currently set, and which |
flag der er tilgængelige til en pakke, hvilke USE flag der er pt. er |
174 |
USE flags were set when the package was last emerged. It will also display a |
sat og hvilket USE flag der var sat da pakken blev emerget sidste |
175 |
short description of these USE flags. |
gang. Den viser også en kort beskrivelse af disse USE flag. |
176 |
</p> |
</p> |
177 |
|
|
178 |
<pre caption="Using etcat"> |
<pre caption="At bruge etcat"> |
179 |
# <i>etcat -u gnumeric</i> |
# <i>etcat -u gnumeric</i> |
180 |
[ Colour Code : set unset ] |
[ Colour Code : set unset ] |
181 |
[ Legend : (U) Col 1 - Current USE flags ] |
[ Legend : (U) Col 1 - Current USE flags ] |
195 |
</section> |
</section> |
196 |
|
|
197 |
<section> |
<section> |
198 |
<title>Feedback</title> |
<title>Tilbagemelding</title> |
199 |
<body> |
<body> |
200 |
<p> |
<p> |
201 |
For any feedback regarding the USE flags, please fill out a bug report at <uri>http://bugs.gentoo.org</uri> and assign it to seemant@gentoo.org</p> |
Udfyld venligst en bug report hos <uri>http://bugs.gentoo.org</uri> |
202 |
|
og tilskriv den til seemant@gentoo.org, ved enhver tilbagemelding om USE flagene. |
203 |
|
</p> |
204 |
|
|
205 |
</body> |
</body> |
206 |
</section> |
</section> |