commit:     e9e6d8c367fdf02b14f9cb2a59489833975d1445
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Fri Mar  7 15:53:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 21:29:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9e6d8c3

toolchain.eclass: drop support EAPI 7

should only supports EAPI=8 since rust was introduced in inherit.

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/40954
Closes: https://github.com/gentoo/gentoo/pull/40954
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9e79d3de9f28..5d7bf2a67547 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -4,7 +4,7 @@
 # @ECLASS: toolchain.eclass
 # @MAINTAINER:
 # Toolchain Ninjas <[email protected]>
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 8
 # @BLURB: Common code for sys-devel/gcc ebuilds
 # @DESCRIPTION:
 # Common code for sys-devel/gcc ebuilds (and occasionally GCC forks, like
@@ -17,7 +17,7 @@ _TOOLCHAIN_ECLASS=1
 RUST_OPTIONAL="1"
 
 case ${EAPI} in
-       7|8) ;;
+       8) ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -463,13 +463,8 @@ PDEPEND=">=sys-devel/gcc-config-2.11"
 # @ECLASS_VARIABLE: TOOLCHAIN_PATCH_SUFFIX
 # @DESCRIPTION:
 # Used to override compression used for for patchsets.
-# Default is xz for EAPI 8+ and bz2 for older EAPIs.
-if [[ ${EAPI} == 8 ]] ; then
+# Default is xz for EAPI 8+.
        : "${TOOLCHAIN_PATCH_SUFFIX:=xz}"
-else
-       # Older EAPIs
-       : "${TOOLCHAIN_PATCH_SUFFIX:=bz2}"
-fi
 
 # @ECLASS_VARIABLE: TOOLCHAIN_SET_S
 # @DESCRIPTION:
@@ -766,11 +761,10 @@ do_gcc_gentoo_patches() {
                                fi
                        fi
 
-                       local shopt_save=$(shopt -p nullglob)
+                       local -
                        shopt -s nullglob
                        einfo "Applying musl patches ..."
                        eapply "${WORKDIR}"/musl/{,nocross/}*.patch
-                       ${shopt_save}
                fi
 
                #

Reply via email to