says he wants it to work via make.conf, requiring redesign.
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 \
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
# 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(),
#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:
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:
"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",