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 97E0315808A for ; Tue, 22 Jul 2025 22:28:54 +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 7DA383417EA for ; Tue, 22 Jul 2025 22:28:54 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 18DE7110564; Tue, 22 Jul 2025 22:28:46 +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 0E507110563 for ; Tue, 22 Jul 2025 22:28:46 +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 BE40F340FB1 for ; Tue, 22 Jul 2025 22:28:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 327FC329D for ; Tue, 22 Jul 2025 22:28:43 +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: <1753223320.1df2556c3aeebc64f64c5e6a2f92d9f4a68eb9da.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: 1df2556c3aeebc64f64c5e6a2f92d9f4a68eb9da X-VCS-Branch: master Date: Tue, 22 Jul 2025 22:28:43 +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: f6d5c217-53b8-4a3e-aac4-20c18bead276 X-Archives-Hash: 3aac9ab9a224141bee1546bf904a2405 commit: 1df2556c3aeebc64f64c5e6a2f92d9f4a68eb9da Author: Kerin Millar plushkava net> AuthorDate: Tue Jul 15 16:09:50 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jul 22 22:28:40 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1df2556c save-ebuild-env.sh: filter out variables that can influence coreutils As of the time of writing, there are 18 variables that may influence the behaviour of the utilities comprising the GNU coreutils project. Ensure that they are filtered out by the __save_ebuild_env() function. Some, such as 'HOME' and 'TMPDIR', continue to be specified elsewhere. Such is harmless. I would sooner be thorough in the course of listing variables that can be directly attributed to a given source. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/save-ebuild-env.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh index 480854ad84..b71de06ed1 100644 --- a/bin/save-ebuild-env.sh +++ b/bin/save-ebuild-env.sh @@ -38,9 +38,14 @@ __save_ebuild_env() ( fi 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 + SHELL TIME_STYLE TABSIZE TMPDIR TERM TZ + # misc variables inherited from the calling environment - COLORTERM DISPLAY EDITOR LS_COLORS LESSOPEN LOGNAME LESS PAGER - TERMCAP TERM USER ftp_proxy https_proxy http_proxy no_proxy + DISPLAY EDITOR LESSOPEN LOGNAME LESS PAGER TERMCAP USER + ftp_proxy https_proxy http_proxy no_proxy # other variables inherited from the calling environment CVS_RSH ECHANGELOG_USER GPG_AGENT_INFO SSH_AGENT_PID