Update docs, comments, and messages to refer to make.globals in
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Aug 2010 01:42:24 +0000 (18:42 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Aug 2010 01:42:24 +0000 (18:42 -0700)
/usr/share/portage/config/ instead of /etc/make.globals.

bin/ebuild-helpers/emake
make.conf.txt
man/ebuild.5
man/emerge.1
man/make.conf.5
man/portage.5
pym/_emerge/actions.py

index ca1901ef978f085b1944ddfc532b31aceea35011..d842781a7bbe3bfe6899ffd7b3a6c6e64f5d49df 100755 (executable)
@@ -6,9 +6,8 @@
 #        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
 
index 5482b5021dc9ddd903f62c122775c48d77fe8609..4531ed859d0389b5309ecd4c52d5dd4d48bcd3bb 100644 (file)
@@ -17,7 +17,8 @@ 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 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.
 
@@ -692,7 +693,7 @@ FILES
 /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.
 
index 1fcc383ee26b7bfd27571b40c063481788a75040..8fa32e23ffa18e931f04806787a0c062b52b8902 100644 (file)
@@ -811,7 +811,7 @@ variable which is disregarded for prior \fBEAPI\fR values.
 .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
@@ -1101,7 +1101,7 @@ The helper apps in \fI/usr/lib/portage/bin\fR.
 .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
index 73c90d3fd45594e811d0878495f630546922d0a9..0f2360ff08f8a98ac194551f6d4958e72357d6a1 100644 (file)
@@ -827,7 +827,7 @@ little bit untidy, it does prevent potentially valuable config files from being
 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
@@ -903,7 +903,7 @@ Contains a list of default packages used to resolve virtual dependencies.
 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"
index 540a15e4baf1b98e8fc37291bbd6ff22a2493670..cbedc3d19264525c08f7420ac73b7f4692bdc9e1 100644 (file)
@@ -8,7 +8,7 @@ This file contains various variables that are used by Portage.
 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,
@@ -812,7 +812,7 @@ Saleem Abdulrasool <compnerd@gentoo.org>
 \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
index 41224deb35f91a2d81871f94aeedadb1aeca3e41..3a472a8ac71e3fdc9b7fc04f66d5720054e8c7eb 100644 (file)
@@ -17,7 +17,6 @@ If you are looking for information on how to emerge something, please see
 .TP
 .BR /etc/
 .nf
-make.globals
 .BR make.conf (5)
 .fi
 .TP
@@ -87,6 +86,11 @@ use.desc
 use.local.desc
 .fi
 .TP
+.BR /usr/share/portage/config/
+.nf
+make.globals
+.fi
+.TP
 .BR /var/cache/edb/
 misc internal cache files
 .TP
@@ -136,11 +140,6 @@ More reading:
 .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
@@ -869,6 +868,15 @@ games\-emulation/xmess:net \- Adds network support
 .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
index fb692c36357003f9fc921805c96b97470e73eaec..033a7d0bbf3b056bc3867b67c9f6121739cd12c1 100644 (file)
@@ -27,7 +27,7 @@ from portage import os
 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
@@ -1814,7 +1814,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
        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]
@@ -1853,7 +1854,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
 
        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