Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 17 Jul 2021 10:25:32
Message-Id: 1626517525.002a26639a795dd49753b225d0953e1d0fa1ec60.slyfox@gentoo
1 commit: 002a26639a795dd49753b225d0953e1d0fa1ec60
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 09:09:04 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 10:25:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002a2663
7
8 toolchain.eclass: add EAPI=8 support
9
10 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
11
12 eclass/toolchain.eclass | 27 ++++++++++++++-------------
13 1 file changed, 14 insertions(+), 13 deletions(-)
14
15 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
16 index 357c99d0921..f10309c3f73 100644
17 --- a/eclass/toolchain.eclass
18 +++ b/eclass/toolchain.eclass
19 @@ -2,7 +2,7 @@
20 # Distributed under the terms of the GNU General Public License v2
21
22 # Maintainer: Toolchain Ninjas <toolchain@g.o>
23 -# @SUPPORTED_EAPIS: 5 6 7
24 +# @SUPPORTED_EAPIS: 5 6 7 8
25
26 DESCRIPTION="The GNU Compiler Collection"
27 HOMEPAGE="https://gcc.gnu.org/"
28 @@ -27,9 +27,10 @@ fi
29
30 FEATURES=${FEATURES/multilib-strict/}
31
32 -case ${EAPI:-0} in
33 +case ${EAPI} in
34 5|6) inherit eapi7-ver eutils ;;
35 7) inherit eutils ;;
36 + 8) ;;
37 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
38 esac
39
40 @@ -121,9 +122,9 @@ IUSE="test vanilla +nls"
41 RESTRICT="!test? ( test )"
42
43 tc_supports_dostrip() {
44 - case ${EAPI:-0} in
45 - 5*|6) return 1 ;;
46 - 7) return 0 ;;
47 + case ${EAPI} in
48 + 5|6) return 1 ;;
49 + 7|8) return 0 ;;
50 *) die "Update apply_patches() for ${EAPI}." ;;
51 esac
52 }
53 @@ -266,8 +267,8 @@ if tc_has_feature valgrind; then
54 BDEPEND+=" valgrind? ( dev-util/valgrind )"
55 fi
56
57 -case ${EAPI:-0} in
58 - 5*|6) DEPEND+=" ${BDEPEND}" ;;
59 +case ${EAPI} in
60 + 5|6) DEPEND+=" ${BDEPEND}" ;;
61 esac
62
63 PDEPEND=">=sys-devel/gcc-config-2.3"
64 @@ -446,11 +447,11 @@ tc_apply_patches() {
65
66 einfo "$1"; shift
67
68 - case ${EAPI:-0} in
69 + case ${EAPI} in
70 # Note: even for EAPI=6 we used 'epatch' semantics. To avoid
71 # breaking existing ebuilds use 'eapply' only in EAPI=7 or later.
72 - 5*|6) epatch "$@" ;;
73 - 7) eapply "$@" ;;
74 + 5|6) epatch "$@" ;;
75 + 7|8) eapply "$@" ;;
76 *) die "Update apply_patches() for ${EAPI}." ;;
77 esac
78 }
79 @@ -467,9 +468,9 @@ toolchain_src_prepare() {
80 BRANDING_GCC_PKGVERSION="${BRANDING_GCC_PKGVERSION}, commit ${EGIT_VERSION}"
81 fi
82
83 - case ${EAPI:-0} in
84 - 5*) epatch_user;;
85 - 6|7) eapply_user ;;
86 + case ${EAPI} in
87 + 5) epatch_user;;
88 + 6|7|8) eapply_user ;;
89 *) die "Update toolchain_src_prepare() for ${EAPI}." ;;
90 esac