Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, since
authorZac Medico <zmedico@gentoo.org>
Sun, 8 Mar 2009 22:29:35 +0000 (22:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 Mar 2009 22:29:35 +0000 (22:29 -0000)
it's incompatible with <=portage-2.1.6.7.

svn path=/main/trunk/; revision=12794

bin/ebuild.sh

index e1c2b872004ae794b63943144f0e634ae11de87d..75b5dabd1081777854a78b705c847f46dcc4fc6f 100755 (executable)
@@ -1156,6 +1156,13 @@ inherit() {
                debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})"
        fi
 
+       if [[ -n $ECLASS && -n ${!__export_funcs_var} ]] ; then
+               echo "QA Notice: EXPORT_FUNCTIONS is called before inherit in" \
+                       "$ECLASS.eclass. For compatibility with <=portage-2.1.6.7," \
+                       "only call EXPORT_FUNCTIONS after inherit(s)." \
+                       | fmt -w 75 | while read ; do eqawarn "$REPLY" ; done
+       fi
+
        local location
        local olocation
        local x