commit: 9b16b9b5e4ce8c8aa2d2f55376daae50b27c8d69 Author: Kerin Millar <kfm <AT> plushkava <DOT> net> AuthorDate: Mon Jul 28 10:10:03 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Aug 25 09:51:33 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=9b16b9b5
save-ebuild-env.sh: don't filter out the TZ variable The 'TZ' environment variable may be set in order to define the effective timezone. As of a recent commit, it is filtered out by the __save_ebuild_env() function. However, some packages set and export the variable during various phases, as shown by the following table. ┌────────────────────────────┬───────────────────┐ │ Package │ Phase │ ├────────────────────────────┼───────────────────┤ │ dev-build/automake │ src_prepare │ │ dev-build/automake-vanilla │ src_prepare │ │ dev-java/jackcess │ src_test │ │ dev-libs/glib │ multilib_src_test │ │ dev-perl/Time-Format │ src_configure │ │ media-tv/xmltv │ pkg_setup │ │ net-libs/gnutls │ src_prepare │ │ www-apps/rt │ src_configure │ └────────────────────────────┴───────────────────┘ In some instances, such as where running a test suite, there won't be a need for the variable to persist across consecutive ebuild phases. Yet, in other instances, there might be. For the time being, it would be prudent to avoid the risk of incurring a regression. Hence, prevent the __save_ebuild_env() function from filtering out the 'TZ' variable. See-also: 5b643fb9e8179b77f4e7cb13fc6e871cc4f5eda0 See-also: 1df2556c3aeebc64f64c5e6a2f92d9f4a68eb9da Link: https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html Signed-off-by: Kerin Millar <kfm <AT> plushkava.net> Signed-off-by: Sam James <sam <AT> gentoo.org> bin/save-ebuild-env.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh index b48aa3d120..77d3852d48 100644 --- a/bin/save-ebuild-env.sh +++ b/bin/save-ebuild-env.sh @@ -61,7 +61,6 @@ __save_ebuild_env() ( TERM TIME_STYLE TMPDIR - TZ # Miscellaneous variables inherited from the operating environment. DISPLAY
