Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: hb-portage-files.xml hb-portage-configuration.xml hb-working-features.xml
Date: Fri, 03 Nov 2006 22:03:21
Message-Id: 20061103220306.CDA7164C4E@smtp.gentoo.org
1 nightmorph 06/11/03 22:03:06
2
3 Modified: hb-portage-files.xml hb-portage-configuration.xml
4 hb-working-features.xml
5 Log:
6 Updated handbook for Portage 2.1, bug 144128. thanks to antarus, genone, and zmedico for reviewing
7
8 Revision Changes Path
9 1.13 xml/htdocs/doc/en/handbook/hb-portage-files.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml?rev=1.13&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml?rev=1.13&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml?r1=1.12&r2=1.13
14
15 Index: hb-portage-files.xml
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml,v
18 retrieving revision 1.12
19 retrieving revision 1.13
20 diff -u -r1.12 -r1.13
21 --- hb-portage-files.xml 28 Oct 2006 09:17:55 -0000 1.12
22 +++ hb-portage-files.xml 3 Nov 2006 22:03:06 -0000 1.13
23 @@ -4,7 +4,7 @@
24 <!-- The content of this document is licensed under the CC-BY-SA license -->
25 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
26
27 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml,v 1.12 2006/10/28 09:17:55 neysx Exp $ -->
28 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-files.xml,v 1.13 2006/11/03 22:03:06 nightmorph Exp $ -->
29
30 <sections>
31
32 @@ -13,8 +13,8 @@
33 files and data.
34 </abstract>
35
36 -<version>1.7</version>
37 -<date>2005-06-27</date>
38 +<version>1.8</version>
39 +<date>2006-11-03</date>
40
41 <section>
42 <title>Portage Files</title>
43 @@ -290,9 +290,114 @@
44 <p>
45 Portage can create per-ebuild logfiles, but only when the PORT_LOGDIR variable
46 is set to a location that is writable by Portage (the portage user). By default
47 -this variable is unset.
48 +this variable is unset. If you don't set PORT_LOGDIR, then you won't receive
49 +any build logs with the current logging system, though you may receive some
50 +logs from the new <c>elog</c>. If you do have PORT_LOGDIR defined and you use
51 +elog, you will receive build logs and any logs saved by elog, as explained
52 +below.
53 </p>
54
55 +<p>
56 +Portage offers fine-grained control over logging through the use of
57 +<c>elog</c>:
58 +</p>
59 +
60 +<ul>
61 + <li>
62 + PORTAGE_ELOG_CLASSES: This is where you set what kinds of messages to be
63 + logged. You can use any space-separated combination of <c>info</c>,
64 + <c>warn</c>, <c>error</c>, and <c>log</c>.
65 + </li>
66 + <li>
67 + <ul>
68 + <li>info: Logs "einfo" messages printed by an ebuild</li>
69 + <li>warn: Logs "ewarn" messages printed by an ebuild</li>
70 + <li>error: Logs "eerror" messages printed by an ebuild</li>
71 + <li>log: Logs the "elog" messages found in some ebuilds</li>
72 + </ul>
73 + </li>
74 + <li>
75 + PORTAGE_ELOG_SYSTEM: This selects the module(s) to process the log
76 + messages. If left empty, logging is disable. You can use any
77 + space-separated combination of <c>save</c>, <c>custom</c>, <c>syslog</c>,
78 + and <c>mail</c>. You must select at least one module in order to use elog.
79 + </li>
80 + <li>
81 + <ul>
82 + <li>
83 + save: This saves one log per package in <path>$PORT_LOGDIR/elog</path>,
84 + or <path>/var/log/portage/elog</path> if $PORT_LOGDIR is not defined.
85 + </li>
86 + <li>
87 + custom: Passes all messages to a user-defined command in
88 + $PORTAGE_ELOG_COMMAND; this will be discussed later.
89 + </li>
90 + <li>syslog: Sends all messages to the installed system logger.</li>
91 + <li>
92 + mail: Passes all messages to a user-defined mailserver in
93 + $PORTAGE_ELOG_MAILURI; this will be discussed later. The mail features
94 + of elog require &gt;=<c>portage-2.1.1</c>.
95 + </li>
96 + </ul>
97 + </li>
98 + <li>
99 + PORTAGE_ELOG_COMMAND: This is only used when the <c>custom</c> module is
100 + enabled. Here is where you specify a command to process log messages. Note
101 + that you can make use of two variables: ${PACKAGE} is the package name and
102 + version, while ${LOGFILE} is the absolute path to the logfile. Here's one
103 + possible usage:
104 + </li>
105 + <li>
106 + <ul>
107 + <li>
108 + PORTAGE_ELOG_COMMAND="/path/to/logger -p '\${PACKAGE}' -f '\${LOGFILE}'"
109 + </li>
110 + </ul>
111 + </li>
112 + <li>
113 + PORTAGE_ELOG_MAILURI: This contains settings for the <c>mail</c> module
114 + such as address, user, password, mailserver, and port number. The default
115 + setting is "root@localhost localhost".
116 + </li>
117 + <li>
118 + Here's an example for an smtp server that requires username and
119 + password-based authentication on a particular port (the default is port
120 + 25):
121 + </li>
122 + <li>
123 + <ul>
124 + <li>
125 + PORTAGE_ELOG_MAILURI="user@××××.domain
126 + username:password@×××××××××.domain:995"
127 + </li>
128 + </ul>
129 + </li>
130 + <li>
131 + PORTAGE_ELOG_MAILFROM: Allows you to set the "from" address of log mails;
132 + defaults to "portage" if unset.
133 + </li>
134 + <li>
135 + PORTAGE_ELOG_MAILSUBJECT: Allows you to create a subject line for log
136 + mails. Note that you can make use of two variables: ${PACKAGE} will display
137 + the package name and version, while ${HOST} is the fully qualified domain
138 + name of the host Portage is running on.
139 + </li>
140 + <li>Here's one possible use:</li>
141 + <li>
142 + <ul>
143 + <li>
144 + PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} was merged on \${HOST}
145 + with some messages"
146 + </li>
147 + </ul>
148 + </li>
149 +</ul>
150 +
151 +<impo>
152 +If you used <c>enotice</c> with Portage-2.0.*, you must completely remove
153 +enotice, as it is incompatible with elog.
154 +</impo>
155 +
156 </body>
157 </subsection>
158 </section>
159
160
161
162 1.12 xml/htdocs/doc/en/handbook/hb-portage-configuration.xml
163
164 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml?rev=1.12&view=markup
165 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml?rev=1.12&content-type=text/plain
166 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml?r1=1.11&r2=1.12
167
168 Index: hb-portage-configuration.xml
169 ===================================================================
170 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml,v
171 retrieving revision 1.11
172 retrieving revision 1.12
173 diff -u -r1.11 -r1.12
174 --- hb-portage-configuration.xml 28 Oct 2006 09:17:55 -0000 1.11
175 +++ hb-portage-configuration.xml 3 Nov 2006 22:03:06 -0000 1.12
176 @@ -4,7 +4,7 @@
177 <!-- The content of this document is licensed under the CC-BY-SA license -->
178 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
179
180 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml,v 1.11 2006/10/28 09:17:55 neysx Exp $ -->
181 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-portage-configuration.xml,v 1.12 2006/11/03 22:03:06 nightmorph Exp $ -->
182
183 <sections>
184
185 @@ -13,8 +13,8 @@
186 configuration file or as environment variable.
187 </abstract>
188
189 -<version>1.4</version>
190 -<date>2005-01-22</date>
191 +<version>1.5</version>
192 +<date>2006-11-03</date>
193
194 <section>
195 <title>Portage Configuration</title>
196 @@ -57,7 +57,7 @@
197 <li>
198 MAKEOPTS is passed to the <c>make</c> command and is usually set to define
199 the amount of parallelism used during the compilation. More information
200 - about the make options can be found in the make man page.
201 + about the make options can be found in the <c>make</c> man page.
202 </li>
203 </ul>
204
205 @@ -79,6 +79,12 @@
206 are defined by the CLEAN_DELAY variable.
207 </p>
208
209 +<p>
210 +You can tell <c>emerge</c> to use certain options every time it is run by
211 +setting EMERGE_DEFAULT_OPTS. Some useful options would be --ask, --verbose,
212 +--tree, and so on.
213 +</p>
214 +
215 </body>
216 </subsection>
217 </section>
218 @@ -224,22 +230,68 @@
219
220 <ul>
221 <li>
222 - RSYNC_EXCLUDEFROM points to a file listing the packages and/or categories
223 - rsync should ignore during the update process
224 + PORTAGE_RSYNC_OPTS sets a number of default variables used during sync,
225 + each space-separated. These shouldn't be changed unless you know
226 + <e>exactly</e> what you're doing. Note that certain absolutely required
227 + options will always be used even if PORTAGE_RSYNC_OPTS is empty.
228 + </li>
229 + <li>
230 + <ul>
231 + <li>
232 + --recursive: Thoroughly checks all category and package directories
233 + </li>
234 + <li>--times: Preserves file modification times</li>
235 + <li>
236 + --exclude='/distfiles --exclude='/local' --exclude='/packages': These
237 + settings tell Portage to not tamper with the locations of downloaded
238 + package files (which is specified in DISTDIR), any local Portage
239 + overlay (specified in PORTDIR_OVERLAY), and any user-compiled binary
240 + packages. Note that any of these options can be overriden with
241 + --exclude='!', should you wish Portage to modify them.
242 + </li>
243 + <li>--compress: Compresses the data transmitted during sync</li>
244 + <li>
245 + --whole-file: Sends data as whole files, rather than block transfers
246 + </li>
247 + </ul>
248 + </li>
249 + <li>
250 + PORTAGE_RSYNC_EXTRA_OPTS can be used to set additional options when
251 + syncing. Each option should be space separated.
252 </li>
253 <li>
254 - RSYNC_RETRIES defines how many times rsync should try connecting to the
255 - mirror pointed to by the SYNC variable before bailing out. This variable
256 - defaults to 3.
257 + <ul>
258 + <li>
259 + --timeout=&lt;number&gt;: This defines the number of seconds an rsync
260 + connection can idle before rsync sees the connection as timed-out. This
261 + variable defaults to 180 but dialup users or individuals with slow
262 + computers might want to set this to 300 or higher.
263 + </li>
264 + <li>
265 + --exclude-from=/etc/portage/rsync_excludes: This points to a file
266 + listing the packages and/or categories rsync should ignore during the
267 + update process. In this case, it points to
268 + <path>/etc/portage/rsync_excludes</path>. Please read <uri
269 + link="?part=3&amp;chap=5">Using a Portage Tree Subset</uri> for the
270 + syntax of this file.
271 + </li>
272 + <li>--quiet: Reduces output to the screen</li>
273 + <li>--verbose: Prints a complete filelist</li>
274 + <li>--progress: Displays a progress meter for each file</li>
275 + </ul>
276 </li>
277 <li>
278 - RSYNC_TIMEOUT defines the number of seconds an rsync connection can idle
279 - before rsync sees the connection as timed-out. This variable defaults to
280 - 180 but dialup users or individuals with slow computers might want to set
281 - this to 300 or higher.
282 + PORTAGE_RSYNC_RETRIES defines how many times rsync should try connecting to
283 + the mirror pointed to by the SYNC variable before bailing out. This
284 + variable defaults to 3.
285 </li>
286 </ul>
287
288 +<p>
289 +For more information on these options and others, please read <c>man
290 +rsync</c>.
291 +</p>
292 +
293 </body>
294 </subsection>
295 </section>
296
297
298
299 1.34 xml/htdocs/doc/en/handbook/hb-working-features.xml
300
301 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml?rev=1.34&view=markup
302 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml?rev=1.34&content-type=text/plain
303 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml?r1=1.33&r2=1.34
304
305 Index: hb-working-features.xml
306 ===================================================================
307 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v
308 retrieving revision 1.33
309 retrieving revision 1.34
310 diff -u -r1.33 -r1.34
311 --- hb-working-features.xml 28 Oct 2006 09:17:55 -0000 1.33
312 +++ hb-working-features.xml 3 Nov 2006 22:03:06 -0000 1.34
313 @@ -4,7 +4,7 @@
314 <!-- The content of this document is licensed under the CC-BY-SA license -->
315 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
316
317 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.33 2006/10/28 09:17:55 neysx Exp $ -->
318 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.34 2006/11/03 22:03:06 nightmorph Exp $ -->
319
320 <sections>
321
322 @@ -13,8 +13,8 @@
323 ccache and more.
324 </abstract>
325
326 -<version>1.29</version>
327 -<date>2006-10-16</date>
328 +<version>1.30</version>
329 +<date>2006-11-03</date>
330
331 <section>
332 <title>Portage Features</title>
333 @@ -291,4 +291,32 @@
334 </body>
335 </subsection>
336 </section>
337 +<section>
338 +<title>Fetching Files</title>
339 +<subsection>
340 +<title>Parallel fetch</title>
341 +<body>
342 +
343 +<p>
344 +When you are emerging a series of packages, Portage can fetch the source files
345 +for the next package in the list even while it is compiling another package,
346 +thus shortening compile times. To make use of this capability, add
347 +"parallel-fetch" to your FEATURES.
348 +</p>
349 +
350 +</body>
351 +</subsection>
352 +<subsection>
353 +<title>Userfetch</title>
354 +<body>
355 +
356 +<p>
357 +When Portage is run as root, FEATURES="userfetch" will allow Portage to drop
358 +root privileges while fetching package sources. This is a small security
359 +improvement.
360 +</p>
361 +
362 +</body>
363 +</subsection>
364 +</section>
365 </sections>
366
367
368
369 --
370 gentoo-doc-cvs@g.o mailing list