add support for compressing debug sections to save space
[portage.git] / man / make.conf.5
1 .TH "MAKE.CONF" "5" "Dec 2011" "Portage VERSION" "Portage"
2 .SH "NAME"
3 make.conf \- custom settings for Portage
4 .SH "SYNOPSIS"
5 \fB/etc/make.conf\fR and \fB/etc/portage/make.conf\fR
6 .SH "DESCRIPTION"
7 This file contains various variables that are used by Portage.
8 Portage will check the currently\-defined environment variables
9 first for any settings.  If no environment settings are found,
10 Portage then checks the make.conf files. Both /etc/make.conf and
11 /etc/portage/make.conf are checked (if present), and settings from
12 /etc/portage/make.conf will override settings from /etc/make.conf.
13 If no setting is found in the make.conf files, Portage checks
14 make.globals. If no
15 setting is found there, the profile's default setting is grabbed
16 from /etc/make.profile/make.defaults. Please note that all user
17 settings should be made in the environment or in the make.conf
18 files, which are intended to be customized by the user.
19 .br
20 Exceptions are incremental variables such as USE, CONFIG_PROTECT*,
21 and ACCEPT_KEYWORDS.  Incremental variables are propagated down from
22 make.defaults to make.globals to make.conf to the environment
23 settings.  Clearing these variables requires a clear\-all as in:
24 export USE="\-*"
25 .br
26 In order to create per\-package environment settings, refer to
27 \fBpackage.env\fR in \fBportage\fR(5).
28 .SH "VARIABLES"
29 .TP
30 \fBACCEPT_CHOSTS\fR = \fI[space delimited list of CHOST values]\fR
31 Specifies acceptable \fBCHOST\fR values. Regular
32 expression syntax is supported, so it is necessary to escape
33 \fBCHOST\fR characters if they have special meaning in regular expressions.
34 .br
35 Defaults to the value of $CHOST.
36 .TP
37 \fBACCEPT_KEYWORDS\fR = \fI[space delimited list of KEYWORDS]\fR
38 Enable testing of ebuilds that have not yet been deemed 'stable'.  Users
39 of the 'x86' architecture would set this to '~x86' while ppc users would
40 set this to '~ppc'.  This is an incremental variable.  Only define a 
41 ~arch.
42 .br
43 Defaults to the value of $ARCH.
44 .TP
45 \fBACCEPT_LICENSE\fR = \fI[space delimited list of licenses or groups]\fR
46 This variable is used to mask packages based on licensing restrictions. It
47 may contain both license and group names, where group names are prefixed
48 with the '@' symbol. License groups are defined in the \fIlicense_groups\fR
49 file (see \fBportage\fR(5)). In addition to license and group names, the
50 \fI*\fR and \fI-*\fR wildcard tokens are also supported. Refer to GLEP 23
51 for further information:
52 \fIhttp://www.gentoo.org/proj/en/glep/glep-0023.html\fR.
53 .br
54 Defaults to the value of * -@EULA.
55 .br
56 .I Examples:
57 .nf
58 # Accept any license
59 ACCEPT_LICENSE="*"
60 # Accept any license except the "public-domain" license
61 ACCEPT_LICENSE="* -public-domain"
62 # Only accept licenses in the FSF-APPROVED license group
63 ACCEPT_LICENSE="-* @FSF-APPROVED"
64 .fi
65 .TP
66 \fBACCEPT_PROPERTIES\fR = \fI[space delimited list of properties]\fR
67 This variable is used to mask packages based on PROPERTIES restrictions.
68 In addition to property names, the \fI*\fR and \fI-*\fR wildcard tokens are
69 also supported. This variable can be temporarily overridden using the
70 \fB\-\-accept\-properties\fR option of \fBemerge\fR(1).
71 See \fBebuild\fR(5) for more information about PROPERTIES. 
72 .br
73 Defaults to the value of *.
74 .br
75 .I Examples:
76 .nf
77 # Accept any properties
78 ACCEPT_PROPERTIES="*"
79 # Accept any properties except the "interactive" property
80 ACCEPT_PROPERTIES="* -interactive"
81 .fi
82 .TP
83 .B CBUILD
84 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
85 as \fI\-\-build=${CBUILD}\fR only if it is defined.  Do not set this yourself
86 unless you know what you are doing.
87 .TP
88 \fBCCACHE_DIR\fR = \fI[path]\fR
89 Defines the location of the ccache working directory.  See the \fBccache\fR(1)
90 man page for more information.
91 .br
92 Defaults to /var/tmp/ccache
93 .TP
94 \fBCCACHE_SIZE\fR = \fI"size"\fR
95 This controls the space use limitations for ccache.  The default is 2 gigabytes 
96 ('2G').  Sizes are specified with 'G', 'M', or 'K'.
97 .TP
98 .B CFLAGS CXXFLAGS
99 Use these variables to set the desired optimization/CPU instruction settings
100 for applications that you compile.  These two variables are passed to the C
101 and C++ compilers, respectively. (CXX is used to refer to the C++ compiler
102 within many buildsystems.) Nearly all ebuild files will take advantage
103 of your custom settings, resulting in a Gentoo Linux that is fully customized
104 to your specifications.  Please use sane settings as some packages will fail to
105 compile/run if the optimizations are too extreme.
106
107 For more information, see the \fIInvoking GCC\fR section of the gcc manual:
108 .br
109 http://gcc.gnu.org/onlinedocs/
110 .TP
111 .B CHOST
112 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
113 step as \fI\-\-host=${CHOST}\fR.  This way you can force the build\-host.
114
115 For more information:
116 .br
117 http://gcc.gnu.org/onlinedocs/gcc\-4.1.1/gcc/Submodel\-Options.html
118 .br
119 http://gcc.gnu.org/onlinedocs/gcc\-3.3/gcc/Submodel\-Options.html
120 .br
121 http://gcc.gnu.org/onlinedocs/gcc\-3.2/gcc/Submodel\-Options.html
122 .br
123 http://gcc.gnu.org/onlinedocs/gcc\-2.95.3/gcc_2.html
124 .TP
125 \fBCLEAN_DELAY\fR = \fIinteger\fR
126 Determines how long the countdown delay will be after running
127 `emerge --unmerge`.
128 .br
129 Defaults to 5 seconds.
130 .TP
131 \fBCOLLISION_IGNORE\fR = \fI[space delimited list of files and/or directories]\fR
132 This variable allows the user to disable \fIcollision\-protect\fR and
133 \fIprotect\-owned\fR for specific files and/or directories.
134 .br
135 Defaults to /lib/modules.
136 .TP
137 \fBCONFIG_PROTECT\fR = \fI[space delimited list of files and/or directories]\fR
138 All files and/or directories that are defined here will have "config file protection"
139 enabled for them. See the \fBCONFIGURATION FILES\fR section
140 of \fBemerge\fR(1) for more information.
141 .TP
142 \fBCONFIG_PROTECT_MASK\fR = \fI[space delimited list of files and/or directories]\fR
143 All files and/or directories that are defined here will have "config file protection"
144 disabled for them. See the \fBCONFIGURATION FILES\fR section
145 of \fBemerge\fR(1) for more information.
146 .TP
147 .B CTARGET
148 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
149 as \fI\-\-target=${CTARGET}\fR only if it is defined.
150 .TP
151 \fBDISTDIR\fR = \fI[path]\fR
152 Defines the location of your local source file repository. After packages
153 are built, it is safe to remove any and all files from this directory since
154 they will be automatically fetched on demand for a given build. If you would
155 like to selectively prune obsolete files from this directory, see
156 \fBeclean\fR(1) from the gentoolkit package.
157
158 Use the \fBPORTAGE_RO_DISTDIRS\fR variable to specify one or
159 more read-only directories containing distfiles.
160
161 Note
162 that locations under /usr/portage are not necessarily safe for data storage.
163 See the \fBPORTDIR\fR documentation for more information.
164 .br
165 Defaults to /usr/portage/distfiles.
166 .TP
167 .B DOC_SYMLINKS_DIR
168 If this variable contains a directory then symlinks to html documentation will
169 be installed into it.
170 .TP
171 .B EBEEP_IGNORE
172 Defines whether or not to ignore audible beeps when displaying important
173 informational messages.  This variable is unset by default.
174 .TP
175 .B EMERGE_DEFAULT_OPTS
176 Options to append to the end of the \fBemerge\fR(1) command line on every invocation.
177 These options will not be appended to the command line if \-\-ignore\-default\-opts
178 is specified.
179 .TP
180 .B EMERGE_LOG_DIR
181 Controls the location of emerge.log and emerge-fetch.log.
182 .br
183 Defaults to /var/log.
184 .TP
185 \fBEMERGE_WARNING_DELAY\fR = \fIinteger\fR
186 Determines how long the countdown delay will be after running
187 `emerge --unmerge` for a system package.
188 .br
189 Defaults to 10 seconds.
190 .TP
191 .B EPAUSE_IGNORE
192 Defines whether or not to ignore short pauses that occur when displaying
193 important informational messages.  This variable is unset by default.
194 If it is set to any value pauses are ignored.
195 .TP
196 \fBEXTRA_ECONF\fR = \fI[configure options string]\fR
197 Contains additional options that \fBeconf\fR will append to configure
198 script arguments (see \fBebuild\fR(5)).
199 .TP
200 \fBFEATURES\fR = \fI"sandbox"\fR
201 Defines actions portage takes by default. This is an incremental variable.
202 Most of these settings are for developer use, but some are available to
203 non-developers as well. The \fBsandbox\fR feature is very important and
204 should not be disabled by default.
205 .RS
206 .TP
207 .B assume\-digests
208 When commiting work to cvs with \fBrepoman\fR(1), assume that all existing 
209 SRC_URI digests are correct.  This feature also affects digest generation via
210 \fBebuild\fR(1) and \fBemerge\fR(1) (emerge generates digests only when the
211 \fIdigest\fR feature is enabled). Existing digests for files that do not exist
212 in ${DISTDIR} will be automatically assumed even when \fIassume\-digests\fR is
213 not enabled. If a file exists in ${DISTDIR} but its size does not match the
214 existing digest, the digest will be regenerated regardless of whether or
215 not \fIassume\-digests\fR is enabled. The \fBebuild\fR(1) \fBdigest\fR command
216 has a \fB\-\-force\fR option that can be used to force regeneration of digests.
217 .TP
218 .B binpkg\-logs
219 Keep logs from successful binary package merges. This is relevant only when
220 \fBPORT_LOGDIR\fR is set.
221 .TP
222 .B buildpkg
223 Binary packages will be created for all packages that are merged. Also see
224 \fBquickpkg\fR(1) and \fBemerge\fR(1) \fB\-\-buildpkg\fR and
225 \fB\-\-buildpkgonly\fR options.
226 .TP
227 .B buildsyspkg
228 Build binary packages for just packages in the system set.
229 .TP
230 .B candy
231 Enable a special progress indicator when \fBemerge\fR(1) is calculating
232 dependencies.
233 .TP
234 .B ccache
235 Enable portage support for the ccache package.  If the ccache dir is not 
236 present in the user's environment, then portage will default to 
237 ${PORTAGE_TMPDIR}/ccache.
238
239 \fBWarning\fR: This feature is known to cause numerous compilation failures.
240 Sometimes ccache will retain stale code objects or corrupted files, which can
241 lead to packages that cannot be emerged. If this happens (if you receive errors
242 like "File not recognized: File truncated"), try recompiling the application
243 with ccache disabled before reporting a bug. Unless you are doing development
244 work, do not enable ccache.
245 .TP
246 .B clean\-logs
247 Enable automatic execution of the command specified by the
248 PORT_LOGDIR_CLEAN variable. The default PORT_LOGDIR_CLEAN setting will
249 remove all files from PORT_LOGDIR that were last modified at least 7
250 days ago.
251 .TP
252 .B collision\-protect
253 A QA\-feature to ensure that a package doesn't overwrite files it doesn't own.
254 The \fICOLLISION_IGNORE\fR variable can be used to selectively disable this
255 feature. Also see the related \fIprotect\-owned\fR feature.
256 .TP
257 .B compress\-build\-logs
258 The causes all build logs to be compressed while they are being written.
259 Log file names have an extension that is appropriate for the compression
260 type. Currently, only \fBgzip\fR(1) compression is supported, so build
261 logs will have a '.gz' extension when this feature is enabled.
262 .TP
263 .B compressdebug
264 Compress the debug sections in the split debug files with zlib to save
265 space.  Make sure you have built both binutils and gdb with USE=zlib
266 support for this to work.  See \fBsplitdebug\fR for general split debug
267 information (upon which this feature depends).
268 .TP
269 .B config\-protect\-if\-modified
270 This causes the \fBCONFIG_PROTECT\fR behavior to be skipped for files
271 that have not been modified since they were installed.
272 .TP
273 .B digest
274 Autogenerate digests for packages when running the
275 \fBemerge\fR(1), \fBebuild\fR(1), or \fBrepoman\fR(1) commands. If
276 the \fIassume\-digests\fR feature is also enabled then existing SRC_URI digests
277 will be reused whenever they are available.
278 .TP
279 .B distcc
280 Enable portage support for the distcc package.
281 .TP
282 .B distcc\-pump
283 Enable portage support for the distcc package with pump mode.
284 .TP
285 .B distlocks
286 Portage uses lockfiles to ensure competing instances don't clobber
287 each other's files. This feature is enabled by default but may cause
288 heartache on less intelligent remote filesystems like NFSv2 and some
289 strangely configured Samba server (oplocks off, NFS re\-export). A tool
290 /usr/lib/portage/bin/clean_locks exists to help handle lock issues
291 when a problem arises (normally due to a crash or disconnect).
292 .TP
293 .B ebuild\-locks
294 Use locks to ensure that unsandboxed ebuild phases never execute
295 concurrently. Also see \fIparallel\-install\fR.
296 .TP
297 .B fakeroot
298 Enable fakeroot for the install and package phases when a non-root user runs
299 the \fBebuild\fR(1) command.
300 .TP
301 .B fail\-clean
302 Clean up temporary files after a build failure. This is particularly useful
303 if you have \fBPORTAGE_TMPDIR\fR on tmpfs. If this feature is enabled, you
304 probably also want to enable \fBPORT_LOGDIR\fR in order to save the build log.
305 Both the \fBebuild\fR(1) command and the \fInoclean\fR feature cause the
306 \fIfail\-clean\fR feature to be automatically disabled.
307 .TP
308 .B getbinpkg
309 Force emerges to always try to fetch files from the \fIPORTAGE_BINHOST\fR.  See 
310 \fBmake.conf\fR(5) for more information.
311 .TP
312 .B installsources
313 Install source code into /usr/src/debug/${CATEGORY}/${PF} (also see
314 \fBsplitdebug\fR). This feature works only if debugedit is installed and CFLAGS
315 is set to include debug information (such as with the \-ggdb flag).
316 .TP
317 .B keeptemp
318 Do not delete the ${T} directory after the merge process.
319 .TP
320 .B keepwork
321 Do not delete the ${WORKDIR} directory after the merge process. ${WORKDIR} can
322 then be reused since this feature disables most of the clean phase that runs
323 prior to each build. Due to lack of proper cleanup, this feature can
324 interfere with normal emerge operation and therefore it should not be left
325 enabled for more than a short period of time.
326 .TP
327 .B fixlafiles
328 Modifies .la files to not include other .la files and some other
329 fixes (order of flags, duplicated entries, ...)
330 .TP
331 .B force\-mirror
332 Only fetch files from configured mirrors, ignoring \fBSRC_URI\fR,
333 except when \fImirror\fR is in the \fBebuild\fR(5) \fBRESTRICT\fR variable.
334 .TP
335 .B force\-prefix
336 Enable prefix support for all ebuilds, regardless of EAPI, since older EAPIs
337 would otherwise be useless with prefix configurations. This brings
338 compatibility with the prefix branch of portage, which also supports EPREFIX
339 for all EAPIs (for obvious reasons).
340 .TP
341 .B lmirror
342 When \fImirror\fR is enabled in \fBFEATURES\fR, fetch files even
343 when \fImirror\fR is also in the \fBebuild\fR(5) \fBRESTRICT\fR variable.
344 Do \fBNOT\fR use \fIlmirror\fR for clients that need to override \fBRESTRICT\fR
345 when fetching from a local mirror, but instead use a "local" mirror setting
346 in \fI/etc/portage/mirrors\fR, as described in \fBportage\fR(5).
347 .TP
348 .B metadata\-transfer
349 Automatically perform a metadata transfer when `emerge \-\-sync` is run.
350 In versions of portage >=2.1.5, this feature is disabled by
351 default. When metadata\-transfer is disabled, metadata cache from the
352 ${PORTDIR}/metadata/cache/ directory will be used directly (if available)
353 and eclasses in ${PORTDIR}/eclass/ must not be modified except by
354 `emerge \-\-sync` operations since the cache validation mechanism
355 will not recognize eclass modifications. Normally, this issue only
356 pertains to users of the rsync tree since the cvs tree does not contain
357 a metadata/cache/ directory. Users of the rsync tree who want to modify
358 eclasses should use \fBPORTDIR_OVERLAY\fR in order for the cache
359 validation mechanism to work correctly.
360 .TP
361 .B mirror
362 Fetch everything in \fBSRC_URI\fR regardless of \fBUSE\fR settings,
363 except do not fetch anything when \fImirror\fR is in \fBRESTRICT\fR.
364 .TP
365 .B multilib\-strict
366 Many Makefiles assume that their libraries should go to /usr/lib, or
367 $(prefix)/lib. This assumption can cause a serious mess if /usr/lib
368 isn't a symlink to /usr/lib64. To find the bad packages, we have a
369 portage feature called \fImultilib\-strict\fR. It will prevent emerge
370 from putting 64bit libraries into anything other than (/usr)/lib64.
371 .TP
372 .B news
373 Enable GLEP 42 news support. See
374 \fIhttp://www.gentoo.org/proj/en/glep/glep-0042.html\fR.
375 .TP
376 .B noauto
377 When utilizing \fBebuild\fR(1), only run the function requested.
378 .TP
379 .B noclean
380 Do not delete the the source and temporary files after the merge process.
381 .TP
382 .B nodoc
383 Do not install doc files (/usr/share/doc).
384 .TP
385 .B noinfo
386 Do not install info pages.
387 .TP
388 .B noman
389 Do not install manpages.
390 .TP
391 .B nostrip
392 Prevents the stripping of binaries that are merged to the live filesystem.
393 .TP
394 .B notitles
395 Disables xterm titlebar updates (which contains status info).
396 .TP
397 .B parallel\-fetch
398 Fetch in the background while compiling. Run
399 `tail \-f /var/log/emerge\-fetch.log` in a
400 terminal to view parallel-fetch progress.
401 .TP
402 .B parallel\-install
403 Use finer\-grained locks when installing packages, allowing for greater
404 parallelization. For additional parallelization, disable
405 \fIebuild\-locks\fR.
406 .TP
407 .B parse\-eapi\-ebuild\-head
408 Parse \fBEAPI\fR from the head of the ebuild (first 30 lines). This feature
409 is only intended for experimental purposes and should not be enabled under
410 normal circumstances.
411 .TP
412 .B prelink\-checksums
413 If \fBprelink\fR(8) is installed then use it to undo any prelinks on files
414 before computing checksums for merge and unmerge. This feature is
415 useful only if \fBprelink\fR(8) is installed and accurate checksums (despite
416 prelinking) are needed for some reason such as for checking the integrity of
417 installed files or because the \fIunmerge\-orphans\fR feature is disabled.
418
419 Note that normal emerging of packages from source computes the
420 checksums before things will be prelinked, so in such cases, this
421 feature isn't required either. Undoing prelinking while merging is
422 only required when using tools like \fBquickpkg\fR(1) which can cause
423 already prelinked files to be merged.
424 .TP
425 .B preserve\-libs
426 Preserve libraries when the sonames change during upgrade or downgrade.
427 Libraries are preserved only if consumers of those libraries are detected.
428 .TP
429 .B protect\-owned
430 This is identical to the \fIcollision\-protect\fR feature except that files
431 may be overwritten if they are not explicitly listed in the contents of a
432 currently installed package. This is particularly useful on systems that
433 have lots of orphan files that have been left behind by older versions
434 of portage that did not support the \fIunmerge\-orphans\fR feature. Like
435 \fIcollision\-protect\fR, the \fICOLLISION_IGNORE\fR variable can be used to
436 selectively disable this feature. It is recommended to leave either
437 \fIprotect\-owned\fR or \fIcollision\-protect\fR enabled at all times,
438 since otherwise file collisions between packages may result in files being
439 overwritten or uninstalled at inappropriate times.
440 If \fIcollision\-protect\fR is enabled then it takes precedence over
441 \fIprotect\-owned\fR. 
442 .TP
443 .B python\-trace
444 Output a verbose trace of python execution to stderr when a command's 
445 \-\-debug option is enabled.
446 .TP
447 .B sandbox
448 Enable sandbox\-ing when running \fBemerge\fR(1) and \fBebuild\fR(1).
449 .TP
450 .B sesandbox
451 Enable SELinux sandbox\-ing.  Do not toggle this \fBFEATURE\fR yourself.
452 .TP
453 .B sfperms
454 Stands for Smart Filesystem Permissions.  Before merging packages to the 
455 live filesystem, automatically search for and set permissions on setuid 
456 and setgid files.  Files that are setuid have the group and other read 
457 bits removed while files that are setgid have the other read bit removed.  
458 See also \fIsuidctl\fR below.
459 .TP
460 .B sign
461 When commiting work to cvs with \fBrepoman\fR(1), sign the Manifest with 
462 a GPG key.  Read about the \fIPORTAGE_GPG_KEY\fR variable in \fBmake.conf\fR(5).
463 .TP
464 .B skiprocheck
465 Skip write access checks on \fBDISTDIR\fR when fetching files. This is
466 useful when \fBFETCHCOMMAND\fR and \fBRESUMECOMMAND\fR are used to
467 forward fetch requests to a server that exposes \fBDISTDIR\fR as
468 a read-only NFS share. A read-only \fBDISTDIR\fR is not compatible with the
469 \fIdistlocks\fR, so it is recommended to also add "-distlocks" to
470 \fBFEATURES\fR in order to avoid warning messages that are triggered by this
471 incompatibility.
472 .TP
473 .B split\-elog
474 Store logs created by \fBPORTAGE_ELOG_SYSTEM="save"\fR in category
475 subdirectories of \fBPORT_LOGDIR/elog\fR, instead of using
476 \fBPORT_LOGDIR/elog\fR directly.
477 .TP 
478 .B split\-log
479 Store build logs in category subdirectories of \fBPORT_LOGDIR/build\fR,
480 instead of using \fBPORT_LOGDIR\fR directly.
481 .TP
482 .B splitdebug
483 Prior to stripping ELF etdyn and etexec files, the debugging info is 
484 stored for later use by various debuggers.  This feature is disabled by
485 \fBnostrip\fR.  You should also consider setting \fBcompressdebug\fR so
486 the files don't suck up a lot of space.  For installation of source code,
487 see \fBinstallsources\fR.
488 .TP
489 .B strict
490 Have portage react strongly to conditions that have the potential to be 
491 dangerous (like missing or incorrect digests for ebuilds).
492 .TP
493 .B stricter
494 Have portage react strongly to conditions that may conflict with system
495 security provisions (for example textrels, executable stack).  Read about
496 the \fIQA_STRICT_*\fR variables in \fBmake.conf\fR(5).
497 .TP
498 .B suidctl
499 Before merging packages to the live filesystem, automatically strip setuid 
500 bits from any file that is not listed in \fI/etc/portage/suidctl.conf\fR.
501 .TP
502 .B test
503 Run package\-specific tests during each merge to help make sure 
504 the package compiled properly.  See \fItest\fR in \fBebuild\fR(1) 
505 and \fIsrc_test()\fR in \fBebuild\fR(5). This feature implies the "test"
506 \fBUSE\fR flag.
507 .TP
508 .B test\-fail\-continue
509 If "test" is enabled \fBFEATURES\fR and the test phase of an ebuild fails,
510 continue to execute the remaining phases as if the failure had not occurred.
511 Note that the test phase for a specific package may be disabled by masking
512 the "test" \fBUSE\fR flag in \fBpackage.use.mask\fR (see \fBportage\fR(5)).
513 .TP
514 .B unmerge\-logs
515 Keep logs from successful unmerge phases. This is relevant only when
516 \fBPORT_LOGDIR\fR is set.
517 .TP
518 .B unmerge\-orphans
519 If a file is not claimed by another package in the same slot and it is not
520 protected by \fICONFIG_PROTECT\fR, unmerge it even if the modification time or
521 checksum differs from the file that was originally installed.
522 .TP
523 .B unknown\-features\-filter
524 Filter out any unknown values that the FEATURES variable contains.
525 .TP
526 .B unknown\-features\-warn
527 Warn if FEATURES contains one or more unknown values.
528 .TP
529 .B userfetch
530 When portage is run as root, drop privileges to portage:portage during the
531 fetching of package sources.
532 .TP
533 .B userpriv
534 Allow portage to drop root privileges and compile packages as 
535 portage:portage without a sandbox (unless \fIusersandbox\fR is also used).
536 .TP
537 .B usersandbox
538 Enable the sandbox in the compile phase, when running without root privs (\fIuserpriv\fR).
539 .TP
540 .B usersync
541 Drop privileges to the owner of \fBPORTDIR\fR for \fBemerge(1) --sync\fR
542 operations.
543 .TP
544 .B webrsync-gpg
545 Enable GPG verification when using \fIemerge\-webrsync\fR.
546 .TP
547 .B xattr
548 Preserve extended attributes (filesystem-stored metadata) when installing
549 files (see \fBattr\fR(1)).
550 .RE
551 .TP
552 .B FETCHCOMMAND
553 This variable contains the command used for fetching package sources from
554 the internet.  It must contain the full path to the executable as well as the
555 place\-holders \\${DISTDIR}, \\${FILE} and \\${URI}.  The command should be
556 written to place the fetched file at \\${DISTDIR}/\\${FILE}.
557 Also see \fBRESUMECOMMAND\fR.
558 .TP
559 .B FFLAGS FCFLAGS
560 Use these variables to set the desired optimization/CPU instruction settings
561 for applications that you compile with a FORTRAN compiler. FFLAGS is usually
562 passed to the FORTRAN 77 compiler, and FCFLAGS to any FORTRAN compiler in
563 more modern build systems.
564
565 For more information, see the \fIInvoking GCC\fR section of the gcc manual:
566 .br
567 http://gcc.gnu.org/onlinedocs/
568 .TP
569 \fBGENTOO_MIRRORS\fR = \fI[URIs]\fR
570 Insert your space\-separated list of local mirrors here.  These
571 locations are used to download files before the ones listed in
572 the \fIebuild scripts\fR. Merging 'mirrorselect' can help.  Entries in this
573 variable that have no protocol and simply start with a '/' path separator may
574 be used to specify mounted filesystem mirrors.
575 .TP
576 \fBhttp_proxy ftp_proxy\fR = \fI[protocol://host:port]\fR
577 These vars are used if the sources must be downloaded from the
578 internet by \fBwget\fR(1).  They are only required if you use a
579 proxy server for internet access.
580 .TP
581 \fBINSTALL_MASK\fR = \fI[space delimited list of file names]\fR
582 Use this variable if you want to selectively prevent certain files from being
583 copied into your file system tree.  This does not work on symlinks, but only on
584 actual files.  Useful if you wish to filter out files like HACKING.gz and
585 TODO.gz. The \fBINSTALL_MASK\fR is processed just before a package is merged.
586 Also supported is a \fBPKG_INSTALL_MASK\fR variable that behaves exactly like
587 \fBINSTALL_MASK\fR except that it is processed just before creation of a binary
588 package.
589 .TP
590 .B LDFLAGS
591 A list of flags to pass to the compiler when the linker will be called. See
592 \fBld\fR(1) for linker flags, but don't forget that these flags will be passed
593 directly to the compiler. Thus, you must use '-Wl' to escape the flags
594 which only the linker understands (see \fBgcc\fR(1)).
595
596 \fB***warning***\fR
597 .br
598 Setting this and other *FLAGS variables arbitrarily may cause compile or
599 runtime failures. Bug reports submitted when nonstandard values are
600 enabled for these flags may be closed as INVALID.
601 .TP
602 .B MAKEOPTS
603 Use this variable if you want to use parallel make.  For example, if you
604 have a dual\-processor system, set this variable to "\-j2" or "\-j3" for 
605 enhanced build performance with many packages. Suggested settings are
606 between \fICPUs+1\fR and \fI2*CPUs+1\fR. In order to avoid
607 excess load, the \fB\-\-load\-average\fR option is recommended.
608 For more information, see \fBmake\fR(1). Also see \fBemerge\fR(1) for
609 information about analogous \fB\-\-jobs\fR and \fB\-\-load\-average\fR options.
610 .TP
611 \fBNOCOLOR\fR = \fI["true" | "false"]\fR
612 Defines if color should be disabled by default.
613 .br
614 Defaults to false.
615 .TP
616 \fBPKGDIR\fR = \fI[path]\fR
617 Defines the location where created .tbz2 binary packages will be
618 stored when the \fBemerge\fR(1) \fB\-\-buildpkg\fR option is enabled.
619 By default, a given package is stored in a subdirectory corresponding
620 to it's category. However, for backward compatibility with the layout
621 used by older versions of portage, if the \fI${PKGDIR}/All\fR directory
622 exists then all packages will be stored inside of it and symlinks to
623 the packages will be created in the category subdirectories. Note
624 that locations under /usr/portage are not necessarily safe for data storage.
625 See the \fBPORTDIR\fR documentation for more information.
626 .br
627 Defaults to /usr/portage/packages.
628 .TP
629 .B PORT_LOGDIR
630 This variable defines the directory in which per\-ebuild logs are kept.
631 Logs are created only when this is set. They are stored as
632 ${CATEGORY}:${PF}:YYYYMMDD\-HHMMSS.log in the directory specified. If the
633 directory does not exist, it will be created automatically and group permissions
634 will be applied to it.  If the directory already exists, portage will not
635 modify it's permissions.
636 .TP
637 .B PORT_LOGDIR_CLEAN
638 This variable should contain a command for portage to call in order
639 to clean PORT_LOGDIR. The command string should contain a
640 \\${PORT_LOGDIR} place\-holder that will be substituted
641 with the value of that variable. This variable will have no effect
642 unless \fBclean\-logs\fR is enabled in \fBFEATURES\fR.
643 .TP
644 \fBPORTAGE_BINHOST\fR = \fI[space delimited URI list]\fR
645 This is a list of hosts from which portage will grab prebuilt\-binary packages.
646 Each entry in the list must specify the full address of a directory
647 serving tbz2's for your system. This is only used when running with
648 the get binary pkg options are given to \fBemerge\fR.  Review \fBemerge\fR(1) 
649 for more information.  For versions of portage less that 2.1.6, this variable
650 should point to the 'All' directory on the host that creates the binary
651 packages and not to the root of the \fBPKGDIR\fR.  Starting with portage 2.1.6,
652 it should point to a directory containing a 'Packages' index file.  If
653 ${PORTAGE_BINHOST}/Packages does not exist then portage will attempt to use
654 the older protocol.
655 .TP
656 \fBPORTAGE_BINHOST_HEADER_URI\fR = \fI"ftp://login:pass@grp.mirror.site/pub/grp/i686/athlon\-xp/"\fR
657 This variable only makes sense on a system that will serve as a binhost and
658 build packages for clients.  It defines the URI header field for the package
659 index file which is located at ${PKGDIR}/Packages. Clients that have
660 \fBPORTAGE_BINHOST\fR properly configured will be able to fetch the index and
661 use the URI header field as a base URI for fetching binary packages. If the URI
662 header field is not defined then the client will use it's ${PORTAGE_BINHOST}
663 setting as the base URI.
664 .TP
665 .B PORTAGE_BINPKG_TAR_OPTS
666 This variable contains options to be passed to the tar command for creation
667 of binary packages.
668 .TP
669 \fBPORTAGE_BUNZIP2_COMMAND\fR = \fI[bunzip2 command string]\fR
670 This variable should contain a command that is suitable for portage to call
671 for bunzip2 extraction operations.
672 .TP
673 \fBPORTAGE_BZIP2_COMMAND\fR = \fI[bzip2 command string]\fR
674 This variable should contain a command that is suitable for portage to call
675 for bzip2 compression operations. \fBPORTAGE_BZIP2_COMMAND\fR will also be
676 called for extraction operation, with -d appended, unless the
677 \fBPORTAGE_BUNZIP2_COMMAND\fR variable is set.
678 .TP
679 \fBPORTAGE_COMPRESS\fR = \fI"bzip2"\fR
680 This variable contains the command used to compress documentation during the
681 install phase.
682 .TP
683 \fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-9"\fR
684 This variable contains flags for the \fBPORTAGE_COMPRESS\fR command.
685 .TP
686 .TP
687 \fBPORTAGE_COMPRESS_EXCLUDE_SUFFIXES\fR = \fI"gif htm[l]? jp[e]?g pdf png"\fR
688 This variable contains a space delimited list of file suffixes for which
689 matching files are excluded when the \fBPORTAGE_COMPRESS\fR command is
690 called. Regular expressions are supported and the match is performed only
691 against the portion of the file name which follows the last period character.
692 .TP
693 .B PORTAGE_ELOG_CLASSES
694 .TP
695 .B PORTAGE_ELOG_SYSTEM
696 .TP
697 .B PORTAGE_ELOG_COMMAND
698 .TP
699 .B PORTAGE_ELOG_MAILURI
700 .TP
701 .B PORTAGE_ELOG_MAILFROM
702 .TP
703 .B PORTAGE_ELOG_MAILSUBJECT
704 Please see /usr/share/portage/config/make.conf.example for elog documentation.
705 .TP
706 \fBPORTAGE_FETCH_CHECKSUM_TRY_MIRRORS\fR = \fI5\fR
707 Number of mirrors to try when a downloaded file has an incorrect checksum.
708 .TP
709 \fBPORTAGE_FETCH_RESUME_MIN_SIZE\fR = \fI350K\fR
710 Minimum size of existing file for \fBRESUMECOMMAND\fR to be called. Files
711 smaller than this size will be removed and \fBFETCHCOMMAND\fR will be called
712 to download the file from the beginning. This is useful for helping to ensure
713 that small garbage files such as html 404 pages are properly discarded. The
714 variable should contain an integer number of bytes and may have a suffix such
715 as K, M, or G.
716 .TP
717 .B PORTAGE_GPG_DIR
718 The \fBgpg\fR(1) home directory that is used by \fBrepoman\fR(1)
719 when \fBsign\fR is in \fBFEATURES\fR.
720 .br
721 Defaults to $HOME/.gnupg.
722 .TP
723 .B PORTAGE_GPG_KEY
724 The \fBgpg\fR(1) key used by \fBrepoman\fR(1) to sign manifests
725 when \fBsign\fR is in \fBFEATURES\fR.
726 .TP
727 .B PORTAGE_GPG_SIGNING_COMMAND
728 The command used by \fBrepoman\fR(1) to sign manifests when \fBsign\fR is
729 in \fBFEATURES\fR.
730 .TP
731 \fBPORTAGE_IONICE_COMMAND\fR = \fI[ionice command string]\fR
732 This variable should contain a command for portage to call in order
733 to adjust the io priority of portage and it's subprocesses. The command
734 string should contain a \\${PID} place-holder that will be substituted
735 with an integer pid. For example, a value of "ionice \-c 3 \-p \\${PID}"
736 will set idle io priority. For more information about ionice, see
737 \fBionice\fR(1). This variable is unset by default.
738 .TP
739 \fBPORTAGE_NICENESS\fR = \fI[number]\fR
740 The value of this variable will be added to the current nice level that
741 emerge is running at.  In other words, this will not set the nice level,
742 it will increment it.  For more information about nice levels and what
743 are acceptable ranges, see \fBnice\fR(1).
744 .TP
745 \fBPORTAGE_RO_DISTDIRS\fR = \fI[space delimited list of directories]\fR
746 When a given file does not exist in \fBDISTDIR\fR, search for the file
747 in this list of directories. Search order is from left to right. Note
748 that the current implementation works by creating a symlink inside
749 \fBDISTDIR\fR, but that may change in the future.
750 .TP
751 \fBPORTAGE_RSYNC_INITIAL_TIMEOUT\fR = \fIinteger\fR
752 Used by \fBemerge \-\-sync\fR as a timeout for the initial connection to an
753 rsync server.
754 .br
755 Defaults to 15 seconds.
756 .TP
757 \fBPORTAGE_RSYNC_EXTRA_OPTS\fR = \fI[rsync options string]\fR
758 Additional rsync options to be used by \fBemerge \-\-sync\fR.
759 .br
760 Defaults to no value.
761 .TP
762 \fBPORTAGE_RSYNC_OPTS\fR = \fI[rsync options string]\fR
763 Default rsync options to be used by \fBemerge \-\-sync\fR. 
764 .br
765 \fBDon't change this unless you know exactly what you're doing!\fR
766 .br
767 Defaults to "\-\-recursive \-\-links \-\-safe\-links \-\-perms \-\-times
768 \-\-compress \-\-force \-\-whole\-file \-\-delete \-\-stats
769 \-\-timeout=180 \-\-exclude='/distfiles' \-\-exclude='/local'
770 \-\-exclude='/packages'"
771 .TP
772 \fBPORTAGE_RSYNC_RETRIES\fR = \fI[NUMBER]\fR
773 The number of times rsync should retry on failed connections before
774 giving up. If set to a negative number, then retry until all possible
775 addresses are exhausted.
776 .br
777 Defaults to -1.
778 .TP
779 \fBPORTAGE_SYNC_STALE\fR = \fI[NUMBER]\fR
780 Defines the number of days after the last `emerge \-\-sync` that a warning
781 message should be produced. A value of 0 will disable warnings.
782 .br
783 Defaults to 30.
784 .TP
785 \fBPORTAGE_TMPDIR\fR = \fI[path]\fR
786 Defines the location of the temporary build directories.
787 .br
788 Defaults to /var/tmp.
789 .TP
790 \fBPORTAGE_WORKDIR_MODE\fR = \fI"0700"\fR
791 This variable controls permissions for \fIWORKDIR\fR (see \fBebuild\fR(5)).
792 .TP
793 \fBPORTDIR\fR = \fI[path]\fR
794 Defines the location of the Portage tree. This is the repository for all
795 profile information as well as all ebuilds. If you change this, you must update
796 your /etc/make.profile symlink accordingly.
797 .br
798 Defaults to /usr/portage. 
799 .br
800 \fB***Warning***\fR
801 .br
802 Data stored inside \fBPORTDIR\fR is in peril of being overwritten or deleted by
803 the emerge \-\-sync command. The default value of
804 \fBPORTAGE_RSYNC_OPTS\fR will protect the default locations of
805 \fBDISTDIR\fR and \fBPKGDIR\fR, but users are warned that any other locations
806 inside \fBPORTDIR\fR are not necessarily safe for data storage.  You should not 
807 put other data (such as overlays) in your \fBPORTDIR\fB.  Portage will walk 
808 directory structures and may arbitrary add invalid categories as packages.
809 .TP
810 \fBPORTDIR_OVERLAY\fR = \fI"[path] [different\-path] [etc...]"\fR
811 Defines the directories in which user made ebuilds may be stored and not 
812 overwriten when `emerge \-\-sync` is run.  This is a space delimited list of 
813 directories.
814 .br
815 Defaults to no value.
816 .TP
817 \fBQA_STRICT_EXECSTACK = \fI"set"\fR
818 Set this to cause portage to ignore any \fIQA_EXECSTACK\fR override
819 settings from ebuilds.  See also \fBebuild\fR(5).
820 .TP
821 \fBQA_STRICT_WX_LOAD = \fI"set"\fR
822 Set this to cause portage to ignore any \fIQA_WX_LOAD\fR override
823 settings from ebuilds.  See also \fBebuild\fR(5).
824 .TP
825 \fBQA_STRICT_TEXTRELS = \fI"set"\fR
826 Set this to cause portage to ignore any \fIQA_TEXTREL\fR override
827 settings from ebuilds.  See also \fBebuild\fR(5).
828 .TP
829 \fBQA_STRICT_FLAGS_IGNORED = \fI"set"\fR
830 Set this to cause portage to ignore any \fIQA_FLAGS_IGNORED\fR override
831 settings from ebuilds.  See also \fBebuild\fR(5).
832 .TP
833 \fBQA_STRICT_DT_HASH = \fI"set"\fR
834 Set this to cause portage to ignore any \fIQA_DT_HASH\fR override
835 settings from ebuilds. This variable is deprecated. Use
836 \fIQA_STRICT_FLAGS_IGNORED\fR instead.
837 .TP
838 \fBQA_STRICT_PRESTRIPPED = \fI"set"\fR
839 Set this to cause portage to ignore any \fIQA_PRESTRIPPED\fR override
840 settings from ebuilds.  See also \fBebuild\fR(5).
841 .TP
842 .B RESUMECOMMAND
843 This variable contains the command used for resuming package sources that
844 have been partially downloaded.  It should be defined using the same format
845 as \fBFETCHCOMMAND\fR, and must include any additional option(s) that may
846 be necessary in order to continue a partially downloaded file located at
847 \\${DISTDIR}/\\${FILE}.
848 .TP
849 \fBROOT\fR = \fI[path]\fR
850 Use \fBROOT\fR to specify the target root filesystem to be used for merging 
851 packages or ebuilds.  All \fBRDEPEND\fR and \fBPDEPEND\fR will be installed 
852 into \fBROOT\fR while all \fBDEPEND\fR will be still be installed into /.  
853 Typically, you should set this setting in the environment rather than in 
854 \fI/etc/make.conf\fR itself.  It's commonly used for creating new build 
855 images.  Make sure you use an absolute path.
856 .br
857 Defaults to /.
858 .TP
859 \fBRPMDIR\fR = \fI[path]\fR
860 Defines the location where created RPM packages will be stored.
861 .br
862 Defaults to ${PORTDIR}/rpm.
863 .TP
864 \fBSYNC\fR = \fI[RSYNC]\fR
865 Insert your preferred rsync mirror here.  This rsync server
866 is used to sync the local portage tree when `emerge \-\-sync` is run.
867 .br
868 Defaults to rsync://rsync.gentoo.org/gentoo\-portage
869 .TP
870 \fBUSE\fR = \fI[space delimited list of USE items]\fR
871 This variable contains options that control the build behavior of several
872 packages.  More information in \fBebuild\fR(5).  Possible USE values
873 can be found in \fI/usr/portage/profiles/use.desc\fR.
874 .TP
875 \fBUSE_EXPAND\fR = \fI[space delimited list of variable names]\fR
876 Any variable listed here will be used to augment USE by inserting a new flag
877 for every value in that variable, so USE_EXPAND="FOO" and FOO="bar bla" results
878 in USE="foo_bar foo_bla".
879 .TP
880 \fBUSE_EXPAND_HIDDEN\fR = \fI[space delimited list of variable names]\fR
881 Names of \fBUSE_EXPAND\fR variables that should not be shown in the verbose merge
882 list output of the \fBemerge\fR(1) command.
883 .TP
884 \fBUSE_ORDER\fR = \fI"env:pkg:conf:defaults:pkginternal:repo:env.d"\fR
885 Determines the precedence of layers in the incremental stacking of the USE
886 variable. Precedence decreases from left to right such that env overrides
887 pkg, pkg overrides conf, and so forth.
888
889 .B ***warning***
890 .br
891 Do not modify this value unless you're a developer and you know what
892 you're doing. If you change this and something breaks, we will not help
893 you fix it.
894 .br
895 .RS
896 .TP
897 .B env
898 USE from the current environment variables (USE and those listed in USE_EXPAND)
899 .TP
900 .B pkg
901 Per\-package USE from \fB/etc/portage/package.use\fR (see \fBportage\fR(5))
902 .TP
903 .B conf
904 USE from make.conf
905 .TP
906 .B defaults
907 USE from make.defaults and package.use in the profile
908 (e.g. /etc/portage/make.profile/package.use) (see \fBportage\fR(5))
909 .TP
910 .B pkginternal
911 USE from \fBebuild\fR(5) IUSE defaults
912 .TP
913 .B repo
914 USE from make.defaults and package.use in the repo's profiles/ top dir
915 (e.g. /usr/portage/profiles/package.use) (see \fBportage\fR(5))
916 .TP
917 .B env.d
918 USE from the environment variables, such as LINGUAS, defined by files in
919 \fI/etc/env.d/\fR
920 .RE
921
922 .SH "REPORTING BUGS"
923 Please report bugs via http://bugs.gentoo.org/
924 .SH "AUTHORS"
925 .nf
926 Daniel Robbins <drobbins@gentoo.org>
927 Nicholas Jones <carpaski@gentoo.org>
928 Mike Frysinger <vapier@gentoo.org>
929 Saleem Abdulrasool <compnerd@gentoo.org>
930 .fi
931 .SH "FILES"
932 .TP
933 \fB/etc/make.conf\fR and \fB/etc/portage/make.conf\fR
934 Contains variables for the build\-process and overwrites those in make.defaults.
935 .TP
936 .B /usr/share/portage/config/make.globals
937 Contains the default variables for the build\-process, you should edit \fI/etc/make.conf\fR instead.
938 .TP
939 .B /etc/portage/color.map
940 Contains variables customizing colors.
941 .TP
942 .B /usr/portage/profiles/use.desc
943 Contains a list of all global USE flags.
944 .TP
945 .B /usr/portage/profiles/use.local.desc
946 Contains a list of all local USE variables.
947 .SH "SEE ALSO"
948 .BR emerge (1),
949 .BR portage (5),
950 .BR ebuild (1),
951 .BR ebuild (5)
952 .TP
953 The \fI/usr/sbin/ebuild.sh\fR script. 
954 .TP
955 The helper apps in \fI/usr/lib/portage/bin\fR.