From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E34621381F3 for ; Tue, 18 Jun 2013 21:07:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70032E099F; Tue, 18 Jun 2013 21:07:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C17CEE0999 for ; Tue, 18 Jun 2013 21:07:02 +0000 (UTC) Received: from [192.168.26.7] (ip98-164-195-43.oc.oc.cox.net [98.164.195.43]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id BF37933E5CD for ; Tue, 18 Jun 2013 21:07:01 +0000 (UTC) Message-ID: <51C0CBF4.3060603@gentoo.org> Date: Tue, 18 Jun 2013 14:07:00 -0700 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] [PATCH 0/3] Add cross-prefix support References: <201306170921.41945.redlizard@redlizard.nl> In-Reply-To: <201306170921.41945.redlizard@redlizard.nl> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: f271594c-123e-4548-853a-2e6c691683a3 X-Archives-Hash: 02b13e3eba7fb6e71db052c09e0be3c5 On 06/17/2013 12:21 AM, Ruud Koolen wrote: > 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 > > bin/dispatch-conf | 2 +- > bin/portageq | 2 +- > pym/_emerge/actions.py | 9 +---- > pym/_emerge/main.py | 7 ++++ > pym/portage/_legacy_globals.py | 3 +- > pym/portage/_sets/__init__.py | 3 -- > pym/portage/const.py | 34 ++++++++++---------- > pym/portage/dispatch_conf.py | 2 +- > .../package/ebuild/_config/LocationsManager.py | 22 ------------- > pym/portage/package/ebuild/config.py | 21 ------------ > pym/portage/package/ebuild/doebuild.py | 2 +- > pym/portage/package/ebuild/fetch.py | 4 -- > pym/portage/tests/resolver/ResolverPlayground.py | 3 +- > pym/portage/util/env_update.py | 3 +- > 14 files changed, 34 insertions(+), 83 deletions(-) > I've committed your patches with a few trivial modifications, as noted here: http://bugs.gentoo.org/show_bug.cgi?id=395633#c37 -- Thanks, Zac