commit: 5b643fb9e8179b77f4e7cb13fc6e871cc4f5eda0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 26 06:23:38 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 26 06:23:38 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5b643fb9
save-ebuild-env.sh: don't strip PATH
A recent commit added PATH to the list of variables we strip out when
environment saving, but this defeats e.g. llvm-r{1,2}.eclass's mangling
of PATH, showing up when building dev-lang/python[jit]. But it's pretty
common to set PATH somewhere in the ebuild and expect it to persist into
other phases.
Instances of SHELL and TZ could do with checking in ::gentoo to see if
we need to change that too.
Fixes: 1df2556c3aeebc64f64c5e6a2f92d9f4a68eb9da
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/save-ebuild-env.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh
index a11f7a0147..3197e3c297 100644
--- a/bin/save-ebuild-env.sh
+++ b/bin/save-ebuild-env.sh
@@ -40,7 +40,7 @@ __save_ebuild_env() (
REPLY+=(
# variables that can influence the behaviour of GNU coreutils
BLOCK_SIZE COLORTERM COLUMNS DF_BLOCK_SIZE DU_BLOCK_SIZE HOME
- LS_BLOCK_SIZE LS_COLORS POSIXLY_CORRECT PATH PWD QUOTING_STYLE
+ LS_BLOCK_SIZE LS_COLORS POSIXLY_CORRECT PWD QUOTING_STYLE
SHELL TIME_STYLE TABSIZE TMPDIR TERM TZ
# misc variables inherited from the calling environment