Skip to content

Commit

Permalink
Define BROOT in pkg_* phases following PMS change
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/911797
Bug: https://bugs.gentoo.org/911574
Signed-off-by: James Le Cuirot <[email protected]>
Closes: gentoo#1077
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
chewi authored and thesamesam committed Aug 6, 2023
1 parent 697e297 commit cfa3149
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ portage-3.0.50 (UNRELEASED)

Breaking changes:
* The minimum supported Python version is now >= Python 3.9.

* Portage now installed with Meson and Python sdist + wheel now prepared with
meson-python for PEP 517 compliance.

Expand All @@ -23,6 +24,8 @@ Bug fixes:
* Use the correct Python library path when launching scripts directly from a
virtual environment.

* Define BROOT in pkg_* phases following PMS change.

portage-3.0.49 (2023-06-21)
--------------

Expand Down
4 changes: 2 additions & 2 deletions bin/phase-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ ___best_version_and_has_version_common() {
-r) root=${ROOT%/}/${EPREFIX#/} ;;
-d) root=${ESYSROOT:-/} ;;
-b)
# Use /${PORTAGE_OVERRIDE_EPREFIX#/} which is equivalent
# to BROOT, except BROOT is only defined in src_* phases.
# Use /${PORTAGE_OVERRIDE_EPREFIX#/} to support older
# EAPIs, as it is equivalent to BROOT.
root=/${PORTAGE_OVERRIDE_EPREFIX#/}
cmd+=(env EPREFIX="${PORTAGE_OVERRIDE_EPREFIX}")
;;
Expand Down
2 changes: 1 addition & 1 deletion lib/portage/package/ebuild/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3338,7 +3338,7 @@ def environ(self):
if not (src_like_phase and eapi_attrs.sysroot):
mydict.pop("ESYSROOT", None)

if not (src_like_phase and eapi_attrs.broot):
if not eapi_attrs.broot:
mydict.pop("BROOT", None)

if phase == "depend" or (
Expand Down

0 comments on commit cfa3149

Please sign in to comment.