commit: 064c297a459dbcee77f5699f23a718e1590979e5 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jun 20 21:14:58 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Jun 20 21:14:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=064c297a
pax-utils.eclass: [QA] add EAPI guard Signed-off-by: Sam James <sam <AT> gentoo.org> Signed-off-by: David Seifert <soap <AT> gentoo.org> eclass/pax-utils.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/pax-utils.eclass b/eclass/pax-utils.eclass index 209e4831f96..1b3fa65d131 100644 --- a/eclass/pax-utils.eclass +++ b/eclass/pax-utils.eclass @@ -8,6 +8,7 @@ # Author: Kevin F. Quinn <kevqu...@gentoo.org> # Author: Anthony G. Basile <bluen...@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