summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:58 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:58 +0200
commit064c297a459dbcee77f5699f23a718e1590979e5 (patch)
tree7b1db0ae83a59e10f5c5a23bbc01cd657d1af232 /eclass/pax-utils.eclass
parentpam.eclass: [QA] add EAPI guard (diff)
downloadgentoo-064c297a459dbcee77f5699f23a718e1590979e5.tar.gz
gentoo-064c297a459dbcee77f5699f23a718e1590979e5.tar.bz2
gentoo-064c297a459dbcee77f5699f23a718e1590979e5.zip
pax-utils.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/pax-utils.eclass')
-rw-r--r--eclass/pax-utils.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/pax-utils.eclass b/eclass/pax-utils.eclass
index 209e4831f960..1b3fa65d1319 100644
--- a/eclass/pax-utils.eclass
+++ b/eclass/pax-utils.eclass
@@ -8,6 +8,7 @@
# Author: Kevin F. Quinn <kevquinn@gentoo.org>
# Author: Anthony G. Basile <blueness@gentoo.org>
# @BLURB: functions to provide PaX markings for hardened kernels
+# @SUPPORTED_EAPIS: 5 6 7
# @DESCRIPTION:
#
# This eclass provides support for manipulating PaX markings on ELF binaries,
@@ -20,6 +21,11 @@
# To control what markings are made, set PAX_MARKINGS in /etc/portage/make.conf
# to contain either "PT", "XT" or "none". The default is none
+case ${EAPI:-0} in
+ [567]) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
if [[ -z ${_PAX_UTILS_ECLASS} ]]; then
_PAX_UTILS_ECLASS=1