Gentoo Archives: gentoo-dev

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] optfeature.eclass: Drop support for EAPIs 0,1,2,3,4,5
Date: Fri, 23 Jul 2021 06:44:48
Message-Id: 4611749.OV4Wx5bFTl@tuxbook
In Reply to: [gentoo-dev] [PATCH] optfeature.eclass: Support EAPI-8 by Andreas Sturmlechner
1 Signed-off-by: Andreas Sturmlechner <asturm@g.o>
2 ---
3 eclass/optfeature.eclass | 8 ++++----
4 1 file changed, 4 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/optfeature.eclass b/eclass/optfeature.eclass
7 index b853f61be32..f9870e04732 100644
8 --- a/eclass/optfeature.eclass
9 +++ b/eclass/optfeature.eclass
10 @@ -4,12 +4,12 @@
11 # @ECLASS: optfeature.eclass
12 # @MAINTAINER:
13 # base-system@g.o
14 -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 8
15 +# @SUPPORTED_EAPIS: 6 7 8
16 # @BLURB: Advertise optional functionality that might be useful to users
17
18 -case ${EAPI:-0} in
19 - [0-8]) ;;
20 - *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
21 +case ${EAPI} in
22 + 6|7|8) ;;
23 + *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;;
24 esac
25
26 if [[ -z ${_OPTFEATURE_ECLASS} ]]; then
27 --
28 2.32.0

Attachments

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

Replies