From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RYXht-0002Yv-VO for garchives@archives.gentoo.org; Thu, 08 Dec 2011 06:43:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16AB021C05E; Thu, 8 Dec 2011 06:43:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DC21B21C05E for ; Thu, 8 Dec 2011 06:43:41 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65AB31B4021 for ; Thu, 8 Dec 2011 06:43:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A4F0A80042 for ; Thu, 8 Dec 2011 06:43:40 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <5cd61be51c5d6c9e4714e65db77ad9c27b2fb9a7.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/phase-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5cd61be51c5d6c9e4714e65db77ad9c27b2fb9a7 Date: Thu, 8 Dec 2011 06:43:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 89b1a47b-9b88-408b-a8f1-28a1a0046264 X-Archives-Hash: ecd3edb67ff9d8e23b62629636ee0d79 commit: 5cd61be51c5d6c9e4714e65db77ad9c27b2fb9a7 Author: Zac Medico gentoo org> AuthorDate: Thu Dec 8 06:43:06 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Dec 8 06:43:06 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D5cd61be5 Save EPREFIX in vdb when appropriate. The prefix branch already does this since it makes it easy to use chpathtool to adjust the content of a binary package so that it will work in a different EPREFIX from the one is was built for. --- bin/phase-functions.sh | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 351ae9e..2302910 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -558,6 +558,20 @@ dyn_install() { fi echo "${USE}" > USE echo "${EAPI:-0}" > EAPI + + # Save EPREFIX, since it makes it easy to use chpathtool to + # adjust the content of a binary package so that it will + # work in a different EPREFIX from the one is was built for. + case "${EAPI:-0}" in + 0|1|2) + [[ " ${USE} " =3D=3D *" prefix "* ]] && \ + [ -n "${EPREFIX}" ] && echo "${EPREFIX}" > EPREFIX + ;; + *) + [ -n "${EPREFIX}" ] && echo "${EPREFIX}" > EPREFIX + ;; + esac + set +f =20 # local variables can leak into the saved environment.