/usr/share/portage/config/ instead of /etc/make.globals.
# only parameter supplied is -jN, where N is a number of
# parallel processes that should be ideal for the running host
# (e.g. on a single-CPU machine, N=2). The MAKEOPTS variable
-# is set in /etc/make.globals. We don't source
-# /etc/make.globals here because emake is only called from an
-# ebuild.
+# is set in make.globals. We don't source make.globals
+# here because emake is only called from an ebuild.
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
Portage then checks /etc/make.conf. If no setting is found
in /etc/make.conf, Portage checks the profile's default setting
from /etc/make.profile/make.defaults. If no setting is found there,
-it finally checks /etc/make.globals. Please note that all user
+it finally checks make.globals.
+Please note that all user
settings should be made in the environment or in /etc/make.conf,
which is intended to be customized by the user.
/etc/make.conf
Contains user-supplied variables and overwrites those in make.defaults.
-/etc/make.globals
+/usr/share/portage/config/make.globals
Contains portage defaults for many variables listed here. Don't change this,
edit /etc/make.conf instead.
.TP
\fBemake\fR \fI[make options]\fR
This is used as a replacement for make. Performs 'make ${MAKEOPTS}
-\fImake options\fR' (as set in /etc/make.globals), default is MAKEOPTS="\-j2".
+\fImake options\fR' (as set in make.globals), default is MAKEOPTS="\-j2".
\fB***warning***\fR
.br
.B /etc/make.conf
Contains variables for the build\-process and overwrites those in make.defaults.
.TP
-.B /etc/make.globals
+.B /usr/share/portage/config/make.globals
Contains the default variables for the build\-process, you should edit
\fI/etc/make.conf\fR instead.
.TP
deleted, which is of paramount importance.
.LP
Protected directories are set using the \fICONFIG_PROTECT\fR variable, normally
-defined in /etc/make.globals. Directory exceptions to the CONFIG_PROTECTed
+defined in make.globals. Directory exceptions to the CONFIG_PROTECTed
directories can be specified using the \fICONFIG_PROTECT_MASK\fR variable. To find
files that need to be updated in /etc, type \fBfind /etc \-iname \'._cfg????_*\'\fR.
.LP
Contains a list of packages used for the base system. The \fBsystem\fR
and \fBworld\fR sets consult this file. \fBDo not edit this file\fR.
.TP
-.B /etc/make.globals
+.B /usr/share/portage/config/make.globals
Contains the default variables for the build process. \fBDo not edit
this file\fR.
.SH "SEE ALSO"
Portage will check the currently\-defined environment variables
first for any settings. If no environment settings are found,
Portage then checks /etc/make.conf. If no setting is found
-in /etc/make.conf, Portage checks /etc/make.globals. If no
+in make.conf, Portage checks make.globals. If no
setting is found there, the profile's default setting is grabbed
from /etc/make.profile/make.defaults. Please note that all user
settings should be made in the environment or in /etc/make.conf,
\fB/etc/make.conf\fR and \fB/etc/portage/make.conf\fR
Contains variables for the build\-process and overwrites those in make.defaults.
.TP
-.B /etc/make.globals
+.B /usr/share/portage/config/make.globals
Contains the default variables for the build\-process, you should edit \fI/etc/make.conf\fR instead.
.TP
.B /etc/portage/color.map
.TP
.BR /etc/
.nf
-make.globals
.BR make.conf (5)
.fi
.TP
use.local.desc
.fi
.TP
+.BR /usr/share/portage/config/
+.nf
+make.globals
+.fi
+.TP
.BR /var/cache/edb/
misc internal cache files
.TP
.BR /etc/
.RS
.TP
-.BR make.globals
-The global default settings for Portage. This comes from the portage package
-itself. Settings in \fBmake.conf\fR override values here. The format
-is described extensivly in \fBmake.conf\fR(5).
-.TP
.BR make.conf
The global custom settings for Portage. See \fBmake.conf\fR(5).
.RE
.fi
.RE
.TP
+.BR /usr/share/portage/config/
+.RS
+.TP
+.BR make.globals
+The global default settings for Portage. This comes from the portage package
+itself. Settings in \fBmake.conf\fR override values here. The format
+is described extensivly in \fBmake.conf\fR(5).
+.RE
+.TP
.BR /var/cache/edb/
.RS
This directory is used to store internal portage cache files. The names and
from portage import digraph
from portage import _unicode_decode, _unicode_encode
from portage.cache.cache_errors import CacheError
-from portage.const import NEWS_LIB_PATH
+from portage.const import GLOBAL_CONFIG_PATH, NEWS_LIB_PATH
from portage.dbapi.dep_expand import dep_expand
from portage.output import blue, bold, colorize, create_color_func, darkgreen, \
red, yellow
myportdir = portdb.porttree_root
out = portage.output.EOutput()
if not myportdir:
- sys.stderr.write("!!! PORTDIR is undefined. Is /etc/make.globals missing?\n")
+ sys.stderr.write("!!! PORTDIR is undefined. " + \
+ "Is %s/make.globals missing?\n" % GLOBAL_CONFIG_PATH)
sys.exit(1)
if myportdir[-1]=="/":
myportdir=myportdir[:-1]
syncuri = settings.get("SYNC", "").strip()
if not syncuri:
- writemsg_level("!!! SYNC is undefined. Is /etc/make.globals missing?\n",
+ writemsg_level("!!! SYNC is undefined. " + \
+ "Is %s/make.globals missing?\n" % GLOBAL_CONFIG_PATH,
noiselevel=-1, level=logging.ERROR)
return 1