Gentoo Archives: gentoo-portage-dev

From: Ruud Koolen <redlizard@×××××××××.nl>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH 0/3] Add cross-prefix support
Date: Mon, 17 Jun 2013 07:21:53
Message-Id: 201306170921.41945.redlizard@redlizard.nl
1 This patch series adds support for using a portage installed in one prefix
2 to build packages with a different prefix.
3
4 The current portage has a single EPREFIX variable specifying both the prefix
5 of the portage installation, and the prefix of the packages portage is
6 building. This patch series splits it into two parts: the
7 portage.const.EPREFIX variable specifying the prefix of the portage
8 installation, used for constructing the PATH as well as the paths to files
9 belonging to a portage installation itself rather than a target root; and the
10 EPREFIX setting in config instances, specifying the prefix of the
11 to-be-built packages and being used for almost everything else.
12
13 The EPREFIX config setting defaults to const.EPREFIX, but can be overridden
14 by the EPREFIX environment variable, as well as the emerge --prefix option.
15 This allows one to install systems with different prefixes using
16 `EPREFIX=/foo emerge @system`, though some unrelated changes need to happen
17 elsewhere first in order to make that a reality.
18
19 Ruud Koolen (3):
20 Distinguish between portage prefix and package prefix
21 Based GLOBAL_CONFIG_PATH and DEPCACHE_PATH on portage prefix
22 Pick up EPREFIX environment variable
23
24 bin/dispatch-conf | 2 +-
25 bin/portageq | 2 +-
26 pym/_emerge/actions.py | 9 +----
27 pym/_emerge/main.py | 7 ++++
28 pym/portage/_legacy_globals.py | 3 +-
29 pym/portage/_sets/__init__.py | 3 --
30 pym/portage/const.py | 34 ++++++++++----------
31 pym/portage/dispatch_conf.py | 2 +-
32 .../package/ebuild/_config/LocationsManager.py | 22 -------------
33 pym/portage/package/ebuild/config.py | 21 ------------
34 pym/portage/package/ebuild/doebuild.py | 2 +-
35 pym/portage/package/ebuild/fetch.py | 4 --
36 pym/portage/tests/resolver/ResolverPlayground.py | 3 +-
37 pym/portage/util/env_update.py | 3 +-
38 14 files changed, 34 insertions(+), 83 deletions(-)
39
40 --
41 1.7.2.5

Replies