commit:     412889f34fcab92cef02b22296ba50984b0eca4b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  2 08:53:11 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Sep  3 15:19:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=412889f3

kernel-2.eclass: Move EXPORT_FUNCTIONS below inherit

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/kernel-2.eclass | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index c2f1e93dca6..ef70e250c17 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -199,12 +199,11 @@
 # that of course does not mean we're not willing to help.
 
 inherit estack toolchain-funcs
-[[ ${EAPI:-0} == 6 ]] && inherit eapi7-ver
-case ${EAPI:-0} in
-       6|7|8)
-               EXPORT_FUNCTIONS src_{unpack,prepare,compile,install,test} \
-                       pkg_{setup,preinst,postinst,postrm} ;;
-       *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
+[[ ${EAPI} == 6 ]] && inherit eapi7-ver
+
+case ${EAPI} in
+       6|7|8) ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
 # Added by Daniel Ostrow <dost...@gentoo.org>
@@ -1566,3 +1565,6 @@ kernel-2_pkg_postrm() {
        ewarn "For more detailed kernel removal instructions, please see: "
        ewarn "https://wiki.gentoo.org/wiki/Kernel/Removal";
 }
+
+EXPORT_FUNCTIONS src_{unpack,prepare,compile,install,test} \
+       pkg_{setup,preinst,postinst,postrm}

Reply via email to