Skip to content

Commit

Permalink
bin/phase-functions.sh: Preserve PORTAGE_BZIP2_COMMAND in environment…
Browse files Browse the repository at this point in the history
….bz2

Bug: https://bugs.gentoo.org/948067
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Jan 14, 2025
1 parent 957698a commit 50bf55b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/phase-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ PORTAGE_READONLY_VARS="D EBUILD EBUILD_PHASE EBUILD_PHASE_FUNC \
PORTAGE_ACTUAL_DISTDIR PORTAGE_ARCHLIST PORTAGE_BASHRC \
PORTAGE_BINPKG_FILE PORTAGE_BINPKG_TAR_OPTS PORTAGE_BINPKG_TMPFILE \
PORTAGE_BIN_PATH PORTAGE_BUILDDIR PORTAGE_BUILD_GROUP \
PORTAGE_BUILD_USER PORTAGE_BUNZIP2_COMMAND \
PORTAGE_BZIP2_COMMAND PORTAGE_COLORMAP PORTAGE_CONFIGROOT \
PORTAGE_BUILD_USER \
PORTAGE_COLORMAP PORTAGE_CONFIGROOT \
PORTAGE_DEBUG PORTAGE_DEPCACHEDIR PORTAGE_EBUILD_EXIT_FILE \
PORTAGE_ECLASS_LOCATIONS PORTAGE_EXPLICIT_INHERIT \
PORTAGE_GID PORTAGE_GRPNAME PORTAGE_INST_GID PORTAGE_INST_UID \
Expand Down Expand Up @@ -191,6 +191,9 @@ __preprocess_ebuild_env() {
# because it's already filtered above.
source "${PORTAGE_BIN_PATH}/save-ebuild-env.sh" || exit $?

# Prefer latest make.conf values of these.
unset PORTAGE_BZIP2_COMMAND PORTAGE_BUNZIP2_COMMAND

# Rely on __save_ebuild_env() to filter out any remaining variables
# and functions that could interfere with the current environment.
__save_ebuild_env || exit $?
Expand Down

0 comments on commit 50bf55b

Please sign in to comment.