1 |
On 06/17/2013 12:21 AM, Ruud Koolen wrote: |
2 |
> This patch series adds support for using a portage installed in one prefix |
3 |
> to build packages with a different prefix. |
4 |
> |
5 |
> The current portage has a single EPREFIX variable specifying both the prefix |
6 |
> of the portage installation, and the prefix of the packages portage is |
7 |
> building. This patch series splits it into two parts: the |
8 |
> portage.const.EPREFIX variable specifying the prefix of the portage |
9 |
> installation, used for constructing the PATH as well as the paths to files |
10 |
> belonging to a portage installation itself rather than a target root; and the |
11 |
> EPREFIX setting in config instances, specifying the prefix of the |
12 |
> to-be-built packages and being used for almost everything else. |
13 |
> |
14 |
> The EPREFIX config setting defaults to const.EPREFIX, but can be overridden |
15 |
> by the EPREFIX environment variable, as well as the emerge --prefix option. |
16 |
> This allows one to install systems with different prefixes using |
17 |
> `EPREFIX=/foo emerge @system`, though some unrelated changes need to happen |
18 |
> elsewhere first in order to make that a reality. |
19 |
> |
20 |
> Ruud Koolen (3): |
21 |
> Distinguish between portage prefix and package prefix |
22 |
> Based GLOBAL_CONFIG_PATH and DEPCACHE_PATH on portage prefix |
23 |
> Pick up EPREFIX environment variable |
24 |
> |
25 |
> bin/dispatch-conf | 2 +- |
26 |
> bin/portageq | 2 +- |
27 |
> pym/_emerge/actions.py | 9 +---- |
28 |
> pym/_emerge/main.py | 7 ++++ |
29 |
> pym/portage/_legacy_globals.py | 3 +- |
30 |
> pym/portage/_sets/__init__.py | 3 -- |
31 |
> pym/portage/const.py | 34 ++++++++++---------- |
32 |
> pym/portage/dispatch_conf.py | 2 +- |
33 |
> .../package/ebuild/_config/LocationsManager.py | 22 ------------- |
34 |
> pym/portage/package/ebuild/config.py | 21 ------------ |
35 |
> pym/portage/package/ebuild/doebuild.py | 2 +- |
36 |
> pym/portage/package/ebuild/fetch.py | 4 -- |
37 |
> pym/portage/tests/resolver/ResolverPlayground.py | 3 +- |
38 |
> pym/portage/util/env_update.py | 3 +- |
39 |
> 14 files changed, 34 insertions(+), 83 deletions(-) |
40 |
> |
41 |
|
42 |
I've committed your patches with a few trivial modifications, as noted here: |
43 |
|
44 |
http://bugs.gentoo.org/show_bug.cgi?id=395633#c37 |
45 |
-- |
46 |
Thanks, |
47 |
Zac |