[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-portage-dev
Subject: Re: [gentoo-portage-dev] [PATCH] Allow ESYSROOT and BROOT in the pkg_setup phase
From: Zac Medico <zmedico () gentoo ! org>
Date: 2019-08-14 1:42:05
Message-ID: 1ae10638-a10b-9ac5-e2eb-09b152b6e5d5 () gentoo ! org
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
On 8/11/19 6:51 AM, James Le Cuirot wrote:
> From: Michał Górny <mgorny@gentoo.org>
>
> This follows a recent change to PMS.
>
> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
> ---
> lib/portage/package/ebuild/config.py | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> Sending this on behalf of mgorny as requested.
>
> diff --git a/lib/portage/package/ebuild/config.py b/lib/portage/package/ebuild/config.py
> index 83a15b370..e0dda54d4 100644
> --- a/lib/portage/package/ebuild/config.py
> +++ b/lib/portage/package/ebuild/config.py
> @@ -2820,12 +2820,13 @@ class config(object):
> if not eapi_exports_merge_type(eapi):
> mydict.pop("MERGE_TYPE", None)
>
> - src_phase = _phase_func_map.get(phase, '').startswith('src_')
> + src_like_phase = (phase == 'setup' or
> + _phase_func_map.get(phase, '').startswith('src_'))
>
> - if not (src_phase and eapi_attrs.sysroot):
> + if not (src_like_phase and eapi_attrs.sysroot):
> mydict.pop("ESYSROOT", None)
>
> - if not (src_phase and eapi_attrs.broot):
> + if not (src_like_phase and eapi_attrs.broot):
> mydict.pop("BROOT", None)
>
> # Prefix variables are supported beginning with EAPI 3, or when
>
Thanks, merged:
https://gitweb.gentoo.org/proj/portage.git/commit/?id=f28d32f298d4b089a2e36bebca2a55b6aeabe2a3
--
Thanks,
Zac
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic