Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, since
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:55:38 +0000 (06:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:55:38 +0000 (06:55 -0000)
it's incompatible with <=portage-2.1.6.7. (trunk r12794)

svn path=/main/branches/2.1.6/; revision=13028

bin/ebuild.sh

index a850e59356ddbc488a6f50be96f70d7acb863b3f..2c326d21fa63f0814d5894d65540a2aa08f5abad 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