1 |
commit: 9e239e29fac8f36d5b015f14f7475464eadb12d4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:15:10 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:15:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e239e29 |
7 |
|
8 |
preserve-libs.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/preserve-libs.eclass | 8 +++++++- |
14 |
1 file changed, 7 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/preserve-libs.eclass b/eclass/preserve-libs.eclass |
17 |
index 548c6411fcf..8b2daf3e7f2 100644 |
18 |
--- a/eclass/preserve-libs.eclass |
19 |
+++ b/eclass/preserve-libs.eclass |
20 |
@@ -1,10 +1,16 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
# @ECLASS: preserve-libs.eclass |
26 |
# @MAINTAINER: |
27 |
# base-system@g.o |
28 |
# @BLURB: preserve libraries after SONAME changes |
29 |
+# @SUPPORTED_EAPIS: 5 6 7 |
30 |
+ |
31 |
+case ${EAPI:-0} in |
32 |
+ [567]) ;; |
33 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
34 |
+esac |
35 |
|
36 |
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then |
37 |
_PRESERVE_LIBS_ECLASS=1 |