prefix install, or to facilitate a cross-compilation environment.
svn path=/main/branches/prefix/; revision=8216
import portage.util
import portage.locks
import portage.exception
-from portage.const import EPREFIX
+from portage.const import EPREFIX, BPREFIX
from portage.data import secpass
from portage.util import normalize_path as normpath
from portage.util import writemsg
if myversion != portage.VERSION and "--quiet" not in self.myopts:
if mylist_index < len(mylist) - 1 and \
- "livecvsportage" not in self.settings.features:
+ "livecvsportage" not in self.settings.features and \
+ EPREFIX == BPREFIX:
p.append(colorize("WARN", "*** Portage will stop merging at this point and reload itself,"))
p.append(colorize("WARN", " then resume the merge."))
print
if myver[-3:]=='-r0':
myver=myver[:-3]
if (myver != portage.VERSION) and \
- "livecvsportage" not in self.settings.features:
+ "livecvsportage" not in self.settings.features and \
+ EPREFIX == BPREFIX:
if len(mymergelist) > mergecount:
emergelog(xterm_titles,
" ::: completed emerge ("+ \
DEPRECATED_PROFILE_FILE, USER_VIRTUALS_FILE, EBUILD_SH_ENV_FILE, \
INVALID_ENV_FILE, CUSTOM_MIRRORS_FILE, CONFIG_MEMORY_FILE,\
INCREMENTALS, EAPI, MISC_SH_BINARY, REPO_NAME_LOC, REPO_NAME_FILE, \
- EPREFIX, EPREFIX_LSTRIP
+ EPREFIX, EPREFIX_LSTRIP, BPREFIX
from portage.data import ostype, lchown, userland, secpass, uid, wheelgid, \
portage_uid, portage_gid, userpriv_groups
del rawpuseforce
try:
- self.mygcfg = getconfig(os.path.join(config_root, EPREFIX_LSTRIP, "etc", "make.globals"))
+ self.mygcfg = getconfig(os.path.join(config_root, BPREFIX.lstrip(os.path.sep), "etc", "make.globals"))
if self.mygcfg is None:
self.mygcfg = {}
# ===========================================================================
from portage.const_autotool import *
+# save the original prefix
+BPREFIX = EPREFIX
+# pick up EPREFIX from the environment if set
+if os.environ.has_key("EPREFIX"):
+ EPREFIX = os.path.normpath(os.environ["EPREFIX"])
# ===========================================================================
# START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF