From 1434d8dc853a9cc4dd67eef51a63b9641955f9f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sat, 1 Oct 2016 00:21:46 +0200 Subject: [PATCH] depend.apache.eclass: output a fat warning if used with EAPI=6 We would really need a PMS-supplied eqawarn here... --- eclass/depend.apache.eclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 # ============================================================================== -- 2.26.2