commit:     1ca082e48f5e80acf0962f6c5759f62e99fef4a5
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  9 07:59:46 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 17 19:00:35 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1ca082e4

EAPI 9: Bash version is 5.2

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/eapi.sh   | 3 ++-
 bin/ebuild.sh | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/eapi.sh b/bin/eapi.sh
index 6a7927f8b4..8618815b8d 100644
--- a/bin/eapi.sh
+++ b/bin/eapi.sh
@@ -80,7 +80,8 @@ ___eapi_usev_has_second_arg()                                 
  [[ ${1-${EAPI-0}
 
 ___eapi_bash_3_2()                          [[ ${1-${EAPI-0}} == [0-5] ]]
 ___eapi_bash_4_2()                          [[ ${1-${EAPI-0}} == [67]  ]]
-___eapi_bash_5_0()                          [[ ${1-${EAPI-0}} != [0-7] ]]
+___eapi_bash_5_0()                          [[ ${1-${EAPI-0}} == 8     ]]
+___eapi_bash_5_2()                          [[ ${1-${EAPI-0}} != [0-8] ]]
 ___eapi_enables_failglob_in_global_scope()  [[ ${1-${EAPI-0}} != [0-5] ]]
 ___eapi_has_ENV_UNSET()                     [[ ${1-${EAPI-0}} != [0-6] ]]
 ___eapi_has_strict_keepdir()                [[ ${1-${EAPI-0}} != [0-7] ]]

diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 6a12d65a7c..593c18ef5a 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Prevent aliases from causing portage to act inappropriately.
@@ -26,6 +26,8 @@ __check_bash_version() {
                maj=4 min=2
        elif ___eapi_bash_5_0 ; then
                maj=5 min=0
+       elif ___eapi_bash_5_2 ; then
+               maj=5 min=2
        else
                return
        fi

Reply via email to