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:17
Message-Id: 1624223698.064c297a459dbcee77f5699f23a718e1590979e5.soap@gentoo
1 commit: 064c297a459dbcee77f5699f23a718e1590979e5
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 21:14:58 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 21:14:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=064c297a
7
8 pax-utils.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/pax-utils.eclass | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 diff --git a/eclass/pax-utils.eclass b/eclass/pax-utils.eclass
17 index 209e4831f96..1b3fa65d131 100644
18 --- a/eclass/pax-utils.eclass
19 +++ b/eclass/pax-utils.eclass
20 @@ -8,6 +8,7 @@
21 # Author: Kevin F. Quinn <kevquinn@g.o>
22 # Author: Anthony G. Basile <blueness@g.o>
23 # @BLURB: functions to provide PaX markings for hardened kernels
24 +# @SUPPORTED_EAPIS: 5 6 7
25 # @DESCRIPTION:
26 #
27 # This eclass provides support for manipulating PaX markings on ELF binaries,
28 @@ -20,6 +21,11 @@
29 # To control what markings are made, set PAX_MARKINGS in /etc/portage/make.conf
30 # to contain either "PT", "XT" or "none". The default is none
31
32 +case ${EAPI:-0} in
33 + [567]) ;;
34 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
35 +esac
36 +
37 if [[ -z ${_PAX_UTILS_ECLASS} ]]; then
38 _PAX_UTILS_ECLASS=1