Remove PORTAGE_USERNAME and PORTAGE_GROUPNAME support for now since antarus
authorZac Medico <zmedico@gentoo.org>
Tue, 6 Apr 2010 16:56:23 +0000 (09:56 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 6 Apr 2010 16:56:23 +0000 (09:56 -0700)
says he wants it to work via make.conf, requiring redesign.

bin/isolated-functions.sh
pym/portage/const.py
pym/portage/data.py
pym/portage/package/ebuild/config.py

index b743cefa0f45d73137630e8bc7f6b6b22009a1b7..9299f2c71b47536de0d95a26c6ff0c676ed8492b 100644 (file)
@@ -557,11 +557,11 @@ save_ebuild_env() {
                        PORTAGE_BINPKG_TAR_OPTS PORTAGE_BINPKG_TMPFILE PORTAGE_BUILDDIR \
                        PORTAGE_COLORMAP PORTAGE_CONFIGROOT PORTAGE_DEBUG \
                        PORTAGE_DEPCACHEDIR PORTAGE_GID \
-                       PORTAGE_GROUPNAME PORTAGE_INST_GID \
+                       PORTAGE_INST_GID \
                        PORTAGE_INST_UID PORTAGE_LOG_FILE PORTAGE_MASTER_PID \
                        PORTAGE_NONFATAL PORTAGE_QUIET \
                        PORTAGE_REPO_NAME PORTAGE_RESTRICT PORTAGE_UPDATE_ENV \
-                       PORTAGE_USERNAME PORTAGE_VERBOSE PORTAGE_WORKDIR_MODE PORTDIR \
+                       PORTAGE_VERBOSE PORTAGE_WORKDIR_MODE PORTDIR \
                        PORTDIR_OVERLAY ${!PORTAGE_SANDBOX_*} PREROOTPATH \
                        PROFILE_PATHS PWORKDIR QA_INTERCEPTORS \
                        RC_DEFAULT_INDENT RC_DOT_PATTERN RC_ENDCOL \
index 4171b99999847f7d0e024ac97482ce97860af0d5..2c5e233f18aaf8c485bed55770b683e88f93a668 100644 (file)
@@ -65,9 +65,6 @@ BASH_BINARY              = "/bin/bash"
 MOVE_BINARY              = "/bin/mv"
 PRELINK_BINARY           = "/usr/sbin/prelink"
 
-PORTAGE_GROUPNAME        = os.environ.get("PORTAGE_GROUPNAME", 'portage')
-PORTAGE_USERNAME         = os.environ.get("PORTAGE_USERNAME", 'portage')
-
 INVALID_ENV_FILE         = "/etc/spork/is/not/valid/profile.env"
 REPO_NAME_FILE           = "repo_name"
 REPO_NAME_LOC            = "profiles" + "/" + REPO_NAME_FILE
index ff23dbe001de381ee14e62a65bd37a2a36759e41..893663195a4ceb8021c51538d66dc4abf0bcf89c 100644 (file)
@@ -3,7 +3,6 @@
 # Distributed under the terms of the GNU General Public License v2
 
 import os, sys, pwd, grp, platform
-from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME
 
 import portage
 portage.proxy.lazyimport.lazyimport(globals(),
@@ -77,8 +76,8 @@ except KeyError:
 
 #Discover the uid and gid of the portage user/group
 try:
-       portage_uid = pwd.getpwnam(PORTAGE_USERNAME)[2]
-       portage_gid = grp.getgrnam(PORTAGE_GROUPNAME)[2]
+       portage_uid = pwd.getpwnam('portage')[2]
+       portage_gid = grp.getgrnam('portage')[2]
        if secpass < 1 and portage_gid in os.getgroups():
                secpass=1
 except KeyError:
@@ -106,7 +105,7 @@ else:
                        from subprocess import getstatusoutput
                except ImportError:
                        from commands import getstatusoutput
-               mystatus, myoutput = getstatusoutput("id -G %s" % PORTAGE_USERNAME)
+               mystatus, myoutput = getstatusoutput("id -G %s" % 'portage')
                if mystatus == os.EX_OK:
                        for x in myoutput.split():
                                try:
index 7b54d9a46827c97440ce1edb6710837e47240178..3d02cd0a8ecbf1c89fb3098aa080ecac2bbbbbe5 100644 (file)
@@ -178,13 +178,13 @@ class config(object):
                "PORTAGE_BIN_PATH",
                "PORTAGE_BUILDDIR", "PORTAGE_COLORMAP",
                "PORTAGE_CONFIGROOT", "PORTAGE_DEBUG", "PORTAGE_DEPCACHEDIR",
-               "PORTAGE_GID", "PORTAGE_GROUPNAME",
+               "PORTAGE_GID",
                "PORTAGE_INST_GID", "PORTAGE_INST_UID",
                "PORTAGE_IUSE",
                "PORTAGE_LOG_FILE", "PORTAGE_MASTER_PID",
                "PORTAGE_PYM_PATH", "PORTAGE_QUIET",
                "PORTAGE_REPO_NAME", "PORTAGE_RESTRICT",
-               "PORTAGE_TMPDIR", "PORTAGE_UPDATE_ENV", "PORTAGE_USERNAME",
+               "PORTAGE_TMPDIR", "PORTAGE_UPDATE_ENV",
                "PORTAGE_VERBOSE", "PORTAGE_WORKDIR_MODE",
                "PORTDIR", "PORTDIR_OVERLAY", "PREROOTPATH", "PROFILE_PATHS",
                "ROOT", "ROOTPATH", "T", "TMP", "TMPDIR",