diff options
author | Ruud Koolen <redlizard@redlizard.nl> | 2013-06-17 09:21:41 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-06-18 13:32:22 -0700 |
commit | c9f6aa9f0151adb3c86706eaef1914cdbdcf2b6d (patch) | |
tree | ec4ee1d8b763c572acf01499dff7a700e97f54c8 /bin/dispatch-conf | |
parent | portage.5: repos.conf: document priority (diff) | |
download | portage-c9f6aa9f0151adb3c86706eaef1914cdbdcf2b6d.tar.gz portage-c9f6aa9f0151adb3c86706eaef1914cdbdcf2b6d.tar.bz2 portage-c9f6aa9f0151adb3c86706eaef1914cdbdcf2b6d.zip |
Add cross-prefix support
This patch series adds support for using a portage installed in one prefix
to build packages with a different prefix.
The current portage has a single EPREFIX variable specifying both the prefix
of the portage installation, and the prefix of the packages portage is
building. This patch series splits it into two parts: the
portage.const.EPREFIX variable specifying the prefix of the portage
installation, used for constructing the PATH as well as the paths to files
belonging to a portage installation itself rather than a target root; and the
EPREFIX setting in config instances, specifying the prefix of the
to-be-built packages and being used for almost everything else.
The EPREFIX config setting defaults to const.EPREFIX, but can be overridden
by the EPREFIX environment variable, as well as the emerge --prefix option.
This allows one to install systems with different prefixes using
`EPREFIX=/foo emerge @system`, though some unrelated changes need to happen
elsewhere first in order to make that a reality.
Ruud Koolen (3):
Distinguish between portage prefix and package prefix
Based GLOBAL_CONFIG_PATH and DEPCACHE_PATH on portage prefix
Pick up EPREFIX environment variable
Diffstat (limited to 'bin/dispatch-conf')
-rwxr-xr-x | bin/dispatch-conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf index a41464f2a..10455f444 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -79,7 +79,7 @@ class dispatch: confs = [] count = 0 - config_root = portage.const.EPREFIX or os.sep + config_root = portage.settings["EPREFIX"] or os.sep self.options = portage.dispatch_conf.read_config(MANDATORY_OPTS) if "log-file" in self.options: |