From: Andreas K. Hüttel Date: Fri, 30 Sep 2016 22:21:46 +0000 (+0200) Subject: depend.apache.eclass: output a fat warning if used with EAPI=6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1434d8dc853a9cc4dd67eef51a63b9641955f9f4;p=gentoo.git depend.apache.eclass: output a fat warning if used with EAPI=6 We would really need a PMS-supplied eqawarn here... --- diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index 22a8216a02d9..5fd9071f504e 100644 --- a/eclass/depend.apache.eclass +++ b/eclass/depend.apache.eclass @@ -42,6 +42,21 @@ inherit multilib +case ${EAPI:-0} in + 0|1|2|3|4|5) + ;; + 6) + ewarn + ewarn "EAPI=${EAPI} is not supported by depend.apache.eclass." + ewarn "This means that ${CATEGORY}/${PVR} is most likely buggy." + ewarn "Please file a report on https://bugs.gentoo.org/" + ewarn + ;; + *) + die "EAPI=${EAPI} is not supported by depend.apache.eclass" + ;; +esac + # ============================================================================== # INTERNAL VARIABLES # ==============================================================================