summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 06:55:38 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 06:55:38 +0000
commit36d70f5552dcc2fbcbc7c44abe136591818ad8f3 (patch)
treef51fe90e6b0a235722a4717b937f49ee6588211d /bin/ebuild.sh
parenta88ac424affd5ecddd5fe3e7251b17e806e45607 (diff)
downloadportage-36d70f5552dcc2fbcbc7c44abe136591818ad8f3.tar.gz
portage-36d70f5552dcc2fbcbc7c44abe136591818ad8f3.tar.bz2
portage-36d70f5552dcc2fbcbc7c44abe136591818ad8f3.zip
Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, since
it's incompatible with <=portage-2.1.6.7. (trunk r12794) svn path=/main/branches/2.1.6/; revision=13028
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index a850e5935..2c326d21f 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -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