Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 20 Jun 2021 21:16:18
Message-Id: 1624223704.8bb76275c813bfeff07d46cd14faae560ea517e5.soap@gentoo
1 commit: 8bb76275c813bfeff07d46cd14faae560ea517e5
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 21:15:04 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 21:15:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb76275
7
8 portability.eclass: [QA] add EAPI guard
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 eclass/portability.eclass | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 diff --git a/eclass/portability.eclass b/eclass/portability.eclass
17 index 3b085d6c4e7..1b3c3952f83 100644
18 --- a/eclass/portability.eclass
19 +++ b/eclass/portability.eclass
20 @@ -7,6 +7,12 @@
21 # @AUTHOR:
22 # Diego Pettenò <flameeyes@g.o>
23 # @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds
24 +# @SUPPORTED_EAPIS: 5 6 7
25 +
26 +case ${EAPI:-0} in
27 + [567]) ;;
28 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
29 +esac
30
31 if [[ -z ${_PORTABILITY_ECLASS} ]]; then
32 _PORTABILITY_ECLASS=1