From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F338F15827B for ; Mon, 25 Aug 2025 09:52:34 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id DECE43410CB for ; Mon, 25 Aug 2025 09:52:34 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1D9DD110565; Mon, 25 Aug 2025 09:52:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 132A1110565 for ; Mon, 25 Aug 2025 09:52:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C20A4340FC0 for ; Mon, 25 Aug 2025 09:52:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E17834E0 for ; Mon, 25 Aug 2025 09:52:21 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1756115493.9b16b9b5e4ce8c8aa2d2f55376daae50b27c8d69.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/save-ebuild-env.sh X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9b16b9b5e4ce8c8aa2d2f55376daae50b27c8d69 X-VCS-Branch: master Date: Mon, 25 Aug 2025 09:52:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d17be541-544d-47f4-a19e-ca157d581c48 X-Archives-Hash: 7b354b5a729d685dc5607b5bb020ed8b commit: 9b16b9b5e4ce8c8aa2d2f55376daae50b27c8d69 Author: Kerin Millar plushkava net> AuthorDate: Mon Jul 28 10:10:03 2025 +0000 Commit: Sam James gentoo 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 plushkava.net> Signed-off-by: Sam James 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