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 ECAB715827B for ; Mon, 25 Aug 2025 09:52:37 +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 D787B341073 for ; Mon, 25 Aug 2025 09:52:37 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 49538110568; 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 397CD110568 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 E6FE8340FCB 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 6895034E5 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: <1756115495.5eafc6b22479d263b46f2f9cda5ccb46acb62c54.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/package/ebuild/_config/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/package/ebuild/_config/special_env_vars.py X-VCS-Directories: lib/portage/package/ebuild/_config/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5eafc6b22479d263b46f2f9cda5ccb46acb62c54 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: 8382c7c5-c1bd-4558-8369-bab19857bcd7 X-Archives-Hash: 2160c502d0b0233c70cf484e4cdb1ffb commit: 5eafc6b22479d263b46f2f9cda5ccb46acb62c54 Author: Kerin Millar plushkava net> AuthorDate: Mon Jul 28 17:57:10 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 25 09:51:35 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5eafc6b2 special_env_vars.py: add GLOBSORT to the environ_filter set The traditional behaviour of bash has been to sort the words produced by pathname expansion by name, in ascending lexicographical order, and in accordance with the collation defined by the 'LC_COLLATE' variable. However, bash-5.3 introduces the new 'GLOBSORT' variable which provides a means of controlling how the words are sorted. For example, setting GLOBSORT="-mtime" will sort by reverse order of modification time. Given that bash is capable of inheriting this variable from its process environment, portage must not be allowed to propagate the variable to the "ebuild.sh" utility or any other programs that it executes. To that end, incorporate the 'GLOBSORT' variable into the 'environ_filter' set defined by the "special_env_vars.py" unit. See-also: 8a607ed23beb4995627f9c4e2c7580469ace56bb Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> lib/portage/package/ebuild/_config/special_env_vars.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/portage/package/ebuild/_config/special_env_vars.py b/lib/portage/package/ebuild/_config/special_env_vars.py index 17f7bf0f76..e4cfc727fc 100644 --- a/lib/portage/package/ebuild/_config/special_env_vars.py +++ b/lib/portage/package/ebuild/_config/special_env_vars.py @@ -265,6 +265,7 @@ environ_filter = frozenset( "MANPATH", "USER", # variables that break bash + "GLOBSORT", "HISTFILE", "POSIXLY_CORRECT", # portage config variables and variables set directly by portage