Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 30 Sep 2016 22:23:01
Message-Id: 1475274167.1434d8dc853a9cc4dd67eef51a63b9641955f9f4.dilfridge@gentoo
1 commit: 1434d8dc853a9cc4dd67eef51a63b9641955f9f4
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 22:21:46 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 22:22:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1434d8dc
7
8 depend.apache.eclass: output a fat warning if used with EAPI=6
9
10 We would really need a PMS-supplied eqawarn here...
11
12 eclass/depend.apache.eclass | 15 +++++++++++++++
13 1 file changed, 15 insertions(+)
14
15 diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass
16 index 22a8216..5fd9071 100644
17 --- a/eclass/depend.apache.eclass
18 +++ b/eclass/depend.apache.eclass
19 @@ -42,6 +42,21 @@
20
21 inherit multilib
22
23 +case ${EAPI:-0} in
24 + 0|1|2|3|4|5)
25 + ;;
26 + 6)
27 + ewarn
28 + ewarn "EAPI=${EAPI} is not supported by depend.apache.eclass."
29 + ewarn "This means that ${CATEGORY}/${PVR} is most likely buggy."
30 + ewarn "Please file a report on https://bugs.gentoo.org/"
31 + ewarn
32 + ;;
33 + *)
34 + die "EAPI=${EAPI} is not supported by depend.apache.eclass"
35 + ;;
36 +esac
37 +
38 # ==============================================================================
39 # INTERNAL VARIABLES
40 # ==============================================================================