Gentoo Archives: gentoo-dev

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-dev@l.g.o, Sergei Trofimovich <slyfox@g.o>
Subject: Re: [gentoo-dev] [PATCH v2 1/5] flag-o-matic.eclass: get rid of eutils in <EAPI-8, fix eclassdoc, make some funcs internal
Date: Thu, 01 Apr 2021 09:57:12
Message-Id: 2537255.vuYhMxLoTh@tuxbook
In Reply to: Re: [gentoo-dev] [PATCH] flag-o-matic.eclass: get rid of eutils in by Sergei Trofimovich
1 From 0bdac63ac30fdbe2d1293d0ecbdbc2a5ea673112 Mon Sep 17 00:00:00 2001
2 From: Andreas Sturmlechner <asturm@g.o>
3 Date: Sun, 28 Mar 2021 11:41:32 +0200
4 Subject: [PATCH 1/5] flag-o-matic.eclass: SUPPORTED_EAPIS: 5,6,7; drop eutils,
5 multilib
6
7 - eutils was only used for eqawarn in old EAPI
8 - multilib usage unknown, but is inherited by toolchain-funcs anyway
9
10 Signed-off-by: Andreas Sturmlechner <asturm@g.o>
11 ---
12 eclass/flag-o-matic.eclass | 11 +++++++++--
13 1 file changed, 9 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
16 index 20ee39d98ba..ab79f70392d 100644
17 --- a/eclass/flag-o-matic.eclass
18 +++ b/eclass/flag-o-matic.eclass
19 @@ -1,9 +1,10 @@
20 -# Copyright 1999-2020 Gentoo Authors
21 +# Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 # @ECLASS: flag-o-matic.eclass
25 # @MAINTAINER:
26 # toolchain@g.o
27 +# @SUPPORTED_EAPIS: 5 6 7
28 # @BLURB: common functions to manipulate and query toolchain flags
29 # @DESCRIPTION:
30 # This eclass contains a suite of functions to help developers sanely
31 @@ -12,7 +13,13 @@
32 if [[ -z ${_FLAG_O_MATIC_ECLASS} ]]; then
33 _FLAG_O_MATIC_ECLASS=1
34
35 -inherit eutils toolchain-funcs multilib
36 +inherit toolchain-funcs
37 +
38 +case ${EAPI} in
39 + [0-4]) die "flag-o-matic.eclass: EAPI ${EAPI} is too old." ;;
40 + [5-7]) inherit eutils ;;
41 + *) die "EAPI ${EAPI} is not supported by flag-o-matic.eclass." ;;
42 +esac
43
44 # Return all the flag variables that our high level funcs operate on.
45 all-flag-vars() {
46 --
47 2.31.0

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies