document FEATURES=sesandbox #161985
[portage.git] / man / make.conf.5
1 .TH "MAKE.CONF" "5" "Jan 2007" "Portage 2.1.2" "Portage"
2 .SH "NAME"
3 make.conf \- custom settings for Portage
4 .SH "SYNOPSIS"
5 .B /etc/make.conf
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 /etc/make.conf.  If no setting is found
11 in /etc/make.conf, Portage checks /etc/make.globals. If no
12 setting is found there, the profile's default setting is grabbed
13 from /etc/make.profile/make.defaults. Please note that all user
14 settings should be made in the environment or in /etc/make.conf,
15 which is intended to be customized by the user.
16 .br
17 Exceptions are incremental variables such as USE, CONFIG_PROTECT*,
18 and ACCEPT_KEYWORDS.  Incremental variables are propagated down from
19 make.defaults to make.globals to make.conf to the environment
20 settings.  Clearing these variables requires a clear\-all as in:
21 export USE="\-*"
22 .SH "VARIABLES"
23 .TP
24 \fBACCEPT_KEYWORDS\fR = \fI[space delimited list of KEYWORDS]\fR
25 Enable testing of ebuilds that have not yet been deemed 'stable'.  Users
26 of the 'x86' architecture would set this to '~x86' while ppc users would
27 set this to '~ppc'.  This is an incremental variable.  Only define a 
28 ~arch.
29 .br
30 Defaults to the value of $ARCH.
31 .TP
32 \fBBUILD_PREFIX\fR = \fI[path]\fR
33 Defines the location of the package working directory. 
34 .br
35 Defaults to ${PORTAGE_TMPDIR}/portage
36 .TP
37 .B CBUILD
38 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
39 as \fI\-\-build=${CBUILD}\fR only if it is defined.  Do not set this yourself
40 unless you know what you are doing.
41 .TP
42 \fBCCACHE_DIR\fR = \fI[path]\fR
43 Defines the location of the ccache working directory.  See the \fBccache\fR(1)
44 man page for more information.
45 .br
46 Defaults to /var/tmp/ccache
47 .TP
48 \fBCCACHE_SIZE\fR = \fI"size"\fR
49 This controls the space use limitations for ccache.  The default is 2 gigabytes 
50 ('2G').  Sizes are specified with 'G', 'M', or 'K'.
51 .TP
52 .B CFLAGS CXXFLAGS
53 Use these variables to set the desired optimization/CPU instruction settings
54 for applications that you compile.  Nearly all ebuild files will take advantage
55 of your custom settings, resulting in a Gentoo Linux that is fully customized
56 to your specifications.  Please use sane settings as some packages will fail to
57 compile/run if the optimizations are too extreme.
58
59 For more information, see the \fIInvoking GCC\fR section of the gcc manual:
60 .br
61 http://gcc.gnu.org/onlinedocs/
62 .TP
63 .B CHOST
64 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
65 step as \fI\-\-host=${CHOST}\fR.  This way you can force the build\-host.
66
67 For more information:
68 .br
69 http://gcc.gnu.org/onlinedocs/gcc\-4.1.1/gcc/Submodel\-Options.html
70 .br
71 http://gcc.gnu.org/onlinedocs/gcc\-3.3/gcc/Submodel\-Options.html
72 .br
73 http://gcc.gnu.org/onlinedocs/gcc\-3.2/gcc/Submodel\-Options.html
74 .br
75 http://gcc.gnu.org/onlinedocs/gcc\-2.95.3/gcc_2.html
76 .TP
77 \fBCLEAN_DELAY\fR = \fIinteger\fR
78 Determines how long the countdown delay will be after running `emerge clean`.
79 .br
80 Defaults to 5 seconds.
81 .TP
82 \fBCOLLISION_IGNORE\fR = \fI[space delimited list of files and/or directories]\fR
83 This variable allows the user to disable \fIcollision\-protect\fR for specific
84 files and/or directories.
85 .TP
86 \fBCONFIG_PROTECT\fR = \fI[space delimited list of files and/or directories]\fR
87 All files and/or directories that are defined here will have "config file protection"
88 enabled for them.  For more information, please see `emerge \-\-help config`.
89 .TP
90 \fBCONFIG_PROTECT_MASK\fR = \fI[space delimited list of files and/or directories]\fR
91 All files and/or directories that are defined here will have "config file protection"
92 disabled for them.  For more information, please see `emerge \-\-help config`.
93 .TP
94 .B CTARGET
95 This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
96 as \fI\-\-target=${CTARGET}\fR only if it is defined.
97 .TP
98 \fBDISTDIR\fR = \fI[path]\fR
99 Defines the location of your local source file repository.
100 .br
101 Defaults to ${PORTDIR}/distfiles.
102 .TP
103 .B DOC_SYMLINKS_DIR
104 If this variable contains a directory then symlinks to html documentation will
105 be installed into it.
106 .TP
107 .B EBEEP_IGNORE
108 Defines whether or not to ignore audible beeps when displaying important
109 informational messages.  This variable is unset by default.
110 .TP
111 .B EMERGE_DEFAULT_OPTS
112 Options to append to the end of the \fBemerge\fR(1) command line on every invocation.
113 These options will not be appended to the command line if \-\-ignore\-default\-opts
114 is specified.
115 .TP
116 .B EPAUSE_IGNORE
117 Defines whether or not to ignore short pauses that occur when displaying
118 important informational messages.  This variable is unset by default.
119 If it is set to any value pauses are ignored.
120 .TP
121 \fBFEATURES\fR = \fI"sandbox ccache"\fR
122 Defines actions portage takes by default.  These options should
123 not be changed by anyone but developers and/or maintainers.  'sandbox' is an important
124 part of \fBFEATURES\fR and should not be disabled by default.  This is 
125 an incremental variable.
126 .RS
127 .TP
128 .B assume\-digests
129 When commiting work to cvs with \fBrepoman\fR(1), assume that all existing 
130 SRC_URI digests are correct.  This feature also affects digest generation via
131 \fBebuild\fR(1) and \fBemerge\fR(1) (emerge generates digests only when the
132 \fIdigest\fR feature is enabled).
133 .TP
134 .B buildpkg
135 Binary packages will be created for all packages that are merged.
136 .TP
137 .B buildsyspkg
138 Build binary packages for just packages in the system set.
139 .TP
140 .B ccache
141 Enable portage support for the ccache package.  If the ccache dir is not 
142 present in the user's environment, then portage will default to 
143 ${PORTAGE_TMPDIR}/ccache.
144 .TP
145 .B confcache
146 Enable confcache support; global configure caching, speeds up autotool based configure 
147 calls via the econf helper function. See \fBebuild\fR(5) for more information.
148 .TP
149 .B collision\-protect
150 A QA\-feature to ensure that a package doesn't overwrite files it doesn't own.
151 The \fICOLLISION_IGNORE\fR variable can be used to selectively disable this
152 feature.
153 .TP
154 .B digest
155 Autogenerate digests for packages when running the \fBemerge\fR(1) command.  If
156 the \fIassume\-digests\fR feature is also enabled then existing SRC_URI digests
157 will be reused whenever they are available.
158 .TP
159 .B distcc
160 Enable portage support for the distcc package.
161 .TP
162 .B distlocks
163 Portage uses lockfiles to ensure competing instances don't clobber
164 each other's files. This feature is enabled by default but may cause
165 heartache on less intelligent remote filesystems like NFSv2 and some
166 strangely configured Samba server (oplocks off, NFS re\-export). A tool
167 /usr/lib/portage/bin/clean_locks exists to help handle lock issues
168 when a problem arises (normally due to a crash or disconnect).
169 .TP
170 .B fixpackages
171 Runs the script that will fix the dependencies in all binary packages.  This is 
172 run whenever packages are moved around in the portage tree.  Please note that this 
173 can take a lot of time.
174 .TP
175 .B getbinpkg
176 Force emerges to always try to fetch files from the \fIPORTAGE_BINHOST\fR.  See 
177 \fBmake.conf\fR(5) for more information.
178 .TP
179 .B gpg
180 Check the signatures of Manifests and make sure they are correct.
181 .TP
182 .B installsources
183 Install source code into /usr/src/debug/${CATEGORY}/${PF} (also see
184 \fBsplitdebug\fR). This feature works only if debugedit is installed.
185 .TP
186 .B keeptemp
187 Do not delete the ${T} directory after the merge process.
188 .TP
189 .B keepwork
190 Do not delete the ${WORKDIR} directory after the merge process.
191 .TP
192 .B metadata\-transfer
193 Automatically perform a metadata transfer when `emerge \-\-sync` is run.
194 .TP
195 .B mirror
196 This will cause \fBFETCHCOMMAND\fR to always be run even if 
197 the file already exists in \fBDISTDIR\fR.
198 .TP
199 .B noauto
200 When utilizing \fBebuild\fR(1), only run the function requested.
201 .TP
202 .B noclean
203 Do not delete the the source and temporary files after the merge process.
204 .TP
205 .B nodoc
206 Do not install doc files (/usr/share/doc).
207 .TP
208 .B noinfo
209 Do not install info pages.
210 .TP
211 .B noman
212 Do not install manpages.
213 .TP
214 .B nostrip
215 Prevents the stripping of binaries that are merged to the live filesystem.
216 .TP
217 .B notitles
218 Disables xterm titlebar updates (which contains status info).
219 .TP
220 .B parallel\-fetch
221 Fetch in the background while compiling.
222 .TP
223 .B sandbox
224 Enable sandbox\-ing when running \fBemerge\fR(1) and \fBebuild\fR(1).
225 .TP
226 .B sesandbox
227 Enable SELinux sandbox\-ing.  Do not toggle this \fBFEATURE\fR yourself.
228 .TP
229 .B severe
230 When checking Manifests, only accept ones that have been signed by a
231 key which you trust.
232 .TP
233 .B sfperms
234 Stands for Smart Filesystem Permissions.  Before merging packages to the 
235 live filesystem, automatically search for and set permissions on setuid 
236 and setgid files.  Files that are setuid have the group and other read 
237 bits removed while files that are setgid have the other read bit removed.  
238 See also \fIsuidctl\fR below.
239 .TP
240 .B sign
241 When commiting work to cvs with \fBrepoman\fR(1), sign the Manifest with 
242 a GPG key.  Read about the \fIPORTAGE_GPG_KEY\fR variable in \fBmake.conf\fR(5).
243 .TP
244 .B splitdebug
245 Prior to stripping ELF etdyn and etexec files, the debugging info is 
246 stored for later use by various debuggers.  This feature is disabled by
247 \fBnostrip\fR.  For installation of source code, see \fBinstallsources\fR.
248 .TP
249 .B strict
250 Have portage react strongly to conditions that have the potential to be 
251 dangerous (like missing or incorrect Manifests).
252 .TP
253 .B stricter
254 Have portage react strongly to conditions that may conflict with system
255 security provisions (for example textrels, executable stack).  Read about
256 the \fIQA_STRICT_*\fR variables in \fBmake.conf\fR(5).
257 .TP
258 .B suidctl
259 Before merging packages to the live filesystem, automatically strip setuid 
260 bits from any file that is not listed in \fI/etc/portage/suidctl.conf\fR.
261 .TP
262 .B test
263 Run package\-specific tests during each merge to help make sure 
264 the package compiled properly.  See \fItest\fR in \fBebuild\fR(1) 
265 and \fIsrc_test()\fR in \fBebuild\fR(5). This feature implies the "test"
266 \fBUSE\fR flag.
267 .TP
268 .B userfetch
269 When portage is run as root, drop privileges to portage:portage during the
270 fetching of package sources.
271 .TP
272 .B userpriv
273 Allow portage to drop root privileges and compile packages as 
274 portage:portage without a sandbox (unless \fIusersandbox\fR is also used).
275 .TP
276 .B usersandbox
277 Enable the sandbox in the compile phase, when running without root privs (\fIuserpriv\fR).
278 .RE
279 .TP
280 .B FETCHCOMMAND
281 This variable contains the command used for fetching package sources from
282 the internet.  It must contain the full path to the executable as well as the
283 place\-holders \\${DISTDIR} and \\${URI}.
284 .TP
285 \fBGENTOO_MIRRORS\fR = \fI[URLs]\fR
286 Insert your space\-seperated list of local mirrors here.  These
287 locations are used to download files before the ones listed in
288 the \fIebuild scripts\fR. Merging 'mirrorselect' can help.  Entries in this
289 variable that have no protocol and simply start with a '/' path separator may
290 be used to specify mounted filesystem mirrors.
291 .TP
292 \fBhttp_proxy ftp_proxy\fR = \fI[host:port]\fR
293 These vars are used if the sources must be downloaded from the
294 internet by \fBwget\fR(1).  They are only required if you use a
295 proxy server for internet access.
296 .TP
297 \fBINSTALL_MASK\fR = \fI[space delimited list of file names]\fR
298 Use this variable if you want to selectively prevent certain files from being
299 copied into your file system tree.  This does not work on symlinks, but only on
300 actual files.  Useful if you wish to filter out files like HACKING.gz and
301 TODO.gz.
302 .TP
303 .B MAKEOPTS
304 Use this variable if you want to use parallel make.  For example, if you
305 have a dual\-processor system, set this variable to "\-j2" or "\-j3" for 
306 enhanced build performance with many packages. Suggested settings are
307 between \fICPUs+1\fR and \fI2*CPUs+1\fR.
308 For more information, see \fBmake\fR(1).
309 .TP
310 \fBNOCOLOR\fR = \fI["true" | "false"]\fR
311 Defines if color should be disabled by default.
312 .br
313 Defaults to false.
314 .TP
315 \fBPKGDIR\fR = \fI[path]\fR
316 Defines the location where created .tbz2 binary packages will be stored.
317 .br
318 Defaults to ${PORTDIR}/packages.
319 .TP
320 .B PORT_LOGDIR
321 This variable defines the directory in which per\-ebuild logs are kept.
322 Logs are created only when this is set and writable.
323 .TP
324 \fBPORTAGE_BINHOST\fR = \fI"ftp://login:pass@grp.mirror.site/pub/grp/i686/athlon\-xp"\fR
325 This is the host from which portage will grab prebuilt\-binary packages.  
326 The list is a single entry specifying the full address of the directory 
327 serving the tbz2's for your system.  This is only used when running with 
328 the get binary pkg options are given to \fBemerge\fR.  Review \fBemerge\fR(1) 
329 for more information.  Note that it should point to the 'All' directory on 
330 the host that creates the binary packages and not to the root of the \fBPKGDIR\fR.
331 .TP
332 \fBPORTAGE_COMPRESS\fR = \fI"bzip2"\fR
333 This variable contains the command used to compress documentation during the
334 install phase.
335 .TP
336 \fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-9"\fR
337 This variable contains flags for the \fBPORTAGE_COMPRESS\fR command.
338 .TP
339 .B PORTAGE_ELOG_CLASSES
340 .TP
341 .B PORTAGE_ELOG_SYSTEM
342 .TP
343 .B PORTAGE_ELOG_COMMAND
344 .TP
345 .B PORTAGE_ELOG_MAILURI
346 .TP
347 .B PORTAGE_ELOG_MAILFROM
348 .TP
349 .B PORTAGE_ELOG_MAILSUBJECT
350 Please see /etc/make.conf.example for elog documentation.
351 .TP
352 \fBPORTAGE_NICENESS\fR = \fI[number]\fR
353 The value of this variable will be added to the current nice level that
354 emerge is running at.  In other words, this will not set the nice level,
355 it will increment it.  For more information about nice levels and what
356 are acceptable ranges, see \fBnice\fR(1).
357 .TP
358 \fBPORTAGE_RSYNC_EXTRA_OPTS\fR = \fI[rsync options string]\fR
359 Additional rsync options to be used by \fBemerge \-\-sync\fR.
360 .br
361 Defaults to no value.
362 .TP
363 \fBPORTAGE_RSYNC_OPTS\fR = \fI[rsync options string]\fR
364 Default rsync options to be used by \fBemerge \-\-sync\fR. 
365 .br
366 \fBDon't change this unless you know exactly what you're doing!\fR
367 .br
368 Defaults to "\-\-recursive \-\-links \-\-safe\-links \-\-perms \-\-times
369 \-\-compress \-\-force \-\-whole\-file \-\-delete \-\-delete\-after \-\-stats
370 \-\-timeout=180 \-\-exclude='/distfiles' \-\-exclude='/local'
371 \-\-exclude='/packages'"
372 .TP
373 \fBPORTAGE_RSYNC_RETRIES\fR = \fI[NUMBER]\fR
374 The number of times rsync should retry on failed connections before
375 giving up.
376 .br
377 Defaults to 3.
378 .TP
379 \fBPORTAGE_TMPDIR\fR = \fI[path]\fR
380 Defines the location of the temporary build directories.
381 .br
382 Defaults to /var/tmp.
383 .TP
384 \fBPORTDIR\fR = \fI[path]\fR
385 Defines the location of your Portage tree.
386 .br
387 Defaults to /usr/portage. 
388 .TP
389 \fBPORTDIR_OVERLAY\fR = \fI"[path] [different\-path] [etc...]"\fR
390 Defines the directories in which user made ebuilds may be stored and not 
391 overwriten when `emerge \-\-sync` is run.  This is a space delimited list of 
392 directories.
393 .br
394 Defaults to no value.
395 .TP
396 \fBQA_STRICT_EXECSTACK = \fI"set"\fR
397 Set this to cause portage to ignore any \fIQA_EXECSTACK\fR override
398 settings from ebuilds.  See also \fBebuild\fR(5).
399 .TP
400 \fBQA_STRICT_WX_LOAD = \fI"set"\fR
401 Set this to cause portage to ignore any \fIQA_WX_LOAD\fR override
402 settings from ebuilds.  See also \fBebuild\fR(5).
403 .TP
404 \fBQA_STRICT_TEXTRELS = \fI"set"\fR
405 Set this to cause portage to ignore any \fIQA_TEXTREL\fR override
406 settings from ebuilds.  See also \fBebuild\fR(5).
407 .TP
408 .B RESUMECOMMAND
409 This variable contains the command used for resuming package sources that
410 have been partially downloaded.  It should be defined using the same format
411 as \fBFETCHCOMMAND\fR.
412 .TP
413 \fBROOT\fR = \fI[path]\fR
414 Use \fBROOT\fR to specify the target root filesystem to be used for merging 
415 packages or ebuilds.  All \fBRDEPEND\fR and \fBPDEPEND\fR will be installed 
416 into \fBROOT\fR while all \fBDEPEND\fR will be still be installed into /.  
417 Typically, you should set this setting in the environment rather than in 
418 \fI/etc/make.conf\fR itself.  It's commonly used for creating new build 
419 images.  Make sure you use an absolute path.
420 .br
421 Defaults to /.
422 .TP
423 \fBRPMDIR\fR = \fI[path]\fR
424 Defines the location where created RPM packages will be stored.
425 .br
426 Defaults to ${PORTDIR}/rpm.
427 .TP
428 \fBSYNC\fR = \fI[RSYNC]\fR
429 Insert your preferred rsync mirror here.  This rsync server
430 is used to sync the local portage tree when `emerge \-\-sync` is run.
431 .br
432 Defaults to rsync://rsync.gentoo.org/gentoo\-portage
433 .TP
434 \fBUSE\fR = \fI[space delimited list of USE items]\fR
435 This variable contains options that control the build behavior of several
436 packages.  More information in \fBebuild\fR(5).  Possible USE values
437 can be found in \fI/usr/portage/profiles/use.desc\fR.
438 .TP
439 \fBUSE_EXPAND_HIDDEN\fR = \fI[space delimited list of variable names]\fR
440 Names of \fBUSE_EXPAND\fR variables that should not be shown in the verbose merge
441 list output of the \fBemerge\fR(1) command.
442 .TP
443 \fBUSE_ORDER\fR = \fI"env:pkg:conf:defaults:pkginternal"\fR
444 Determines the precedence of layers in the incremental stacking of the USE
445 variable. Precedence decreases from left to right such that env overrides
446 pkg, pkg overrides conf, and so forth.
447
448 .B ***warning***
449 .br
450 Do not modify this value unless you're a developer and you know what
451 you're doing. If you change this and something breaks, we will not help
452 you fix it.
453 .br
454 .RS
455 .TP
456 .B env
457 USE from the current USE environment variable if it exists
458 .TP
459 .B pkg
460 Per\-package USE from \fB/etc/portage/package.use\fR (see \fBportage\fR(5))
461 .TP
462 .B conf
463 USE from make.conf
464 .TP
465 .B defaults
466 USE from make.defaults and package.use in the profile (see \fBportage\fR(5))
467 .TP
468 .B pkginternal
469 USE from ebuild IUSE defaults (flags enabled via a + prefix; see \fBebuild\fR(5))
470 .RE
471
472 .SH "REPORTING BUGS"
473 Please report bugs via http://bugs.gentoo.org/
474 .SH "AUTHORS"
475 .nf
476 Daniel Robbins <drobbins@gentoo.org>
477 Nicholas Jones <carpaski@gentoo.org>
478 Mike Frysinger <vapier@gentoo.org>
479 Saleem Abdulrasool <compnerd@gentoo.org>
480 .fi
481 .SH "FILES"
482 .TP
483 \fB/etc/make.conf\fR 
484 Contains variables for the build\-process and overwrites those in make.defaults.
485 .TP
486 \fB/etc/make.globals\fR 
487 Contains the default variables for the build\-process, you should edit \fI/etc/make.conf\fR instead.
488 .TP
489 \fB/usr/portage/profiles/use.desc\fR
490 Contains a list of all global USE flags.
491 .TP
492 \fB/usr/portage/profiles/use.local.desc\fR
493 Contains a list of all local USE variables.
494 .SH "SEE ALSO"
495 .BR emerge (1),
496 .BR portage (5),
497 .BR ebuild (1),
498 .BR ebuild (5)
499 .TP
500 The \fI/usr/sbin/ebuild.sh\fR script. 
501 .TP
502 The helper apps in \fI/usr/lib/portage/bin\fR.