If kernel-2_src_unpack() is called in EAPI6, epatch_user() function
inherited from eutils.eclass is undefined.
See bug #579188

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

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index c171940..3f5fb3b 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1260,8 +1260,12 @@ kernel-2_src_unpack() {
    # we run misc `make` functions below
    [[ $(type -t kernel-2_hook_premake) == "function" ]] &&
kernel-2_hook_premake

-   debug-print "Doing epatch_user"
-   epatch_user
+   debug-print "Applying user patches if they exist"
+   # apply any user patches
+    case ${EAPI:-0} in
+        0|1|2|3|4|5) epatch_user ;;
+        6) eapply_user ;;
+    esac

    debug-print "Doing unpack_set_extraversion"

-- 
2.7.3

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to