1 .TH "MAKE.CONF" "5" "Jan 2007" "Portage 2.1.2" "Portage"
3 make.conf \- custom settings for Portage
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.
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:
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
30 Defaults to the value of $ARCH.
32 \fBBUILD_PREFIX\fR = \fI[path]\fR
33 Defines the location of the package working directory.
35 Defaults to ${PORTAGE_TMPDIR}/portage
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.
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.
46 Defaults to /var/tmp/ccache
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'.
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.
59 For more information, see the \fIInvoking GCC\fR section of the gcc manual:
61 http://gcc.gnu.org/onlinedocs/
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.
69 http://gcc.gnu.org/onlinedocs/gcc\-4.1.1/gcc/Submodel\-Options.html
71 http://gcc.gnu.org/onlinedocs/gcc\-3.3/gcc/Submodel\-Options.html
73 http://gcc.gnu.org/onlinedocs/gcc\-3.2/gcc/Submodel\-Options.html
75 http://gcc.gnu.org/onlinedocs/gcc\-2.95.3/gcc_2.html
77 \fBCLEAN_DELAY\fR = \fIinteger\fR
78 Determines how long the countdown delay will be after running `emerge clean`.
80 Defaults to 5 seconds.
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.
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`.
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`.
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.
98 \fBDISTDIR\fR = \fI[path]\fR
99 Defines the location of your local source file repository.
101 Defaults to ${PORTDIR}/distfiles.
104 If this variable contains a directory then symlinks to html documentation will
105 be installed into it.
108 Defines whether or not to ignore audible beeps when displaying important
109 informational messages. This variable is unset by default.
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
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.
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.
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).
135 Binary packages will be created for all packages that are merged.
138 Build binary packages for just packages in the system set.
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.
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.
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
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.
160 Enable portage support for the distcc package.
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).
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.
176 Force emerges to always try to fetch files from the \fIPORTAGE_BINHOST\fR. See
177 \fBmake.conf\fR(5) for more information.
180 Check the signatures of Manifests and make sure they are correct.
183 Install source code into /usr/src/debug/${CATEGORY}/${PF} (also see
184 \fBsplitdebug\fR). This feature works only if debugedit is installed.
187 Do not delete the ${T} directory after the merge process.
190 Do not delete the ${WORKDIR} directory after the merge process.
192 .B metadata\-transfer
193 Automatically perform a metadata transfer when `emerge \-\-sync` is run.
196 This will cause \fBFETCHCOMMAND\fR to always be run even if
197 the file already exists in \fBDISTDIR\fR.
200 When utilizing \fBebuild\fR(1), only run the function requested.
203 Do not delete the the source and temporary files after the merge process.
206 Do not install doc files (/usr/share/doc).
209 Do not install info pages.
212 Do not install manpages.
215 Prevents the stripping of binaries that are merged to the live filesystem.
218 Disables xterm titlebar updates (which contains status info).
221 Fetch in the background while compiling.
224 Enable sandbox\-ing when running \fBemerge\fR(1) and \fBebuild\fR(1).
227 Enable SELinux sandbox\-ing. Do not toggle this \fBFEATURE\fR yourself.
230 When checking Manifests, only accept ones that have been signed by a
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.
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).
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.
250 Have portage react strongly to conditions that have the potential to be
251 dangerous (like missing or incorrect Manifests).
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).
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.
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"
269 When portage is run as root, drop privileges to portage:portage during the
270 fetching of package sources.
273 Allow portage to drop root privileges and compile packages as
274 portage:portage without a sandbox (unless \fIusersandbox\fR is also used).
277 Enable the sandbox in the compile phase, when running without root privs (\fIuserpriv\fR).
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}.
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.
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.
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
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).
310 \fBNOCOLOR\fR = \fI["true" | "false"]\fR
311 Defines if color should be disabled by default.
315 \fBPKGDIR\fR = \fI[path]\fR
316 Defines the location where created .tbz2 binary packages will be stored.
318 Defaults to ${PORTDIR}/packages.
321 This variable defines the directory in which per\-ebuild logs are kept.
322 Logs are created only when this is set and writable.
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.
332 \fBPORTAGE_COMPRESS\fR = \fI"bzip2"\fR
333 This variable contains the command used to compress documentation during the
336 \fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-9"\fR
337 This variable contains flags for the \fBPORTAGE_COMPRESS\fR command.
339 .B PORTAGE_ELOG_CLASSES
341 .B PORTAGE_ELOG_SYSTEM
343 .B PORTAGE_ELOG_COMMAND
345 .B PORTAGE_ELOG_MAILURI
347 .B PORTAGE_ELOG_MAILFROM
349 .B PORTAGE_ELOG_MAILSUBJECT
350 Please see /etc/make.conf.example for elog documentation.
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).
358 \fBPORTAGE_RSYNC_EXTRA_OPTS\fR = \fI[rsync options string]\fR
359 Additional rsync options to be used by \fBemerge \-\-sync\fR.
361 Defaults to no value.
363 \fBPORTAGE_RSYNC_OPTS\fR = \fI[rsync options string]\fR
364 Default rsync options to be used by \fBemerge \-\-sync\fR.
366 \fBDon't change this unless you know exactly what you're doing!\fR
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'"
373 \fBPORTAGE_RSYNC_RETRIES\fR = \fI[NUMBER]\fR
374 The number of times rsync should retry on failed connections before
379 \fBPORTAGE_TMPDIR\fR = \fI[path]\fR
380 Defines the location of the temporary build directories.
382 Defaults to /var/tmp.
384 \fBPORTDIR\fR = \fI[path]\fR
385 Defines the location of your Portage tree.
387 Defaults to /usr/portage.
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
394 Defaults to no value.
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).
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).
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).
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.
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.
423 \fBRPMDIR\fR = \fI[path]\fR
424 Defines the location where created RPM packages will be stored.
426 Defaults to ${PORTDIR}/rpm.
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.
432 Defaults to rsync://rsync.gentoo.org/gentoo\-portage
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.
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.
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.
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
457 USE from the current USE environment variable if it exists
460 Per\-package USE from \fB/etc/portage/package.use\fR (see \fBportage\fR(5))
466 USE from make.defaults and package.use in the profile (see \fBportage\fR(5))
469 USE from ebuild IUSE defaults (flags enabled via a + prefix; see \fBebuild\fR(5))
473 Please report bugs via http://bugs.gentoo.org/
476 Daniel Robbins <drobbins@gentoo.org>
477 Nicholas Jones <carpaski@gentoo.org>
478 Mike Frysinger <vapier@gentoo.org>
479 Saleem Abdulrasool <compnerd@gentoo.org>
484 Contains variables for the build\-process and overwrites those in make.defaults.
486 \fB/etc/make.globals\fR
487 Contains the default variables for the build\-process, you should edit \fI/etc/make.conf\fR instead.
489 \fB/usr/portage/profiles/use.desc\fR
490 Contains a list of all global USE flags.
492 \fB/usr/portage/profiles/use.local.desc\fR
493 Contains a list of all local USE variables.
500 The \fI/usr/sbin/ebuild.sh\fR script.
502 The helper apps in \fI/usr/lib/portage/bin\fR.