unset DOC_SYMLINKS_DIR INSTALL_MASK PKG_INSTALL_MASK
# Prefix additions
- unset BPREFIX DEFAULT_PATH EXTRA_PATH PORTAGE_GROUP PORTAGE_USER
+ unset DEFAULT_PATH EXTRA_PATH PORTAGE_GROUP PORTAGE_USER
declare -p
declare -fp
import portage.util
import portage.locks
import portage.exception
-from portage.const import EPREFIX, BPREFIX, EPREFIX_LSTRIP
+from portage.const import EPREFIX, EPREFIX_LSTRIP
from portage.data import secpass
from portage.dbapi.dep_expand import dep_expand
from portage.util import normalize_path as normpath
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, BPREFIX, rootuid
+ EPREFIX, EPREFIX_LSTRIP, rootuid
except ImportError as e:
sys.stderr.write("\n\n")
import os
-# save the original prefix
-BPREFIX = EPREFIX
-# pick up EPREFIX from the environment if set
-if "EPREFIX" in os.environ:
- if os.environ["EPREFIX"] != "":
- EPREFIX = os.path.normpath(os.environ["EPREFIX"])
- else:
- EPREFIX = os.environ["EPREFIX"]
-
# ===========================================================================
# START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
# ===========================================================================
LOCALE_DATA_PATH = PORTAGE_BASE_PATH + "/locale" # FIXME: not used
EBUILD_SH_BINARY = PORTAGE_BIN_PATH + "/ebuild.sh"
MISC_SH_BINARY = PORTAGE_BIN_PATH + "/misc-functions.sh"
-SANDBOX_BINARY = BPREFIX + "/usr/bin/sandbox"
-FAKEROOT_BINARY = BPREFIX + "/usr/bin/fakeroot"
+SANDBOX_BINARY = EPREFIX + "/usr/bin/sandbox"
+FAKEROOT_BINARY = EPREFIX + "/usr/bin/fakeroot"
BASH_BINARY = PORTAGE_BASH
MOVE_BINARY = PORTAGE_MV
PRELINK_BINARY = "/usr/sbin/prelink"
"ROOT", "ROOTPATH", "T", "TMP", "TMPDIR",
"USE_EXPAND", "USE_ORDER", "WORKDIR",
"XARGS", "__PORTAGE_TEST_HARDLINK_LOCKS",
- "BPREFIX", "DEFAULT_PATH", "EXTRA_PATH",
+ "DEFAULT_PATH", "EXTRA_PATH",
"PORTAGE_GROUP", "PORTAGE_USER",
]