Skip useq() IUSE QA Notices during the "depend" phase because lots of
authorZac Medico <zmedico@gentoo.org>
Sat, 2 May 2009 22:14:44 +0000 (22:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 May 2009 22:14:44 +0000 (22:14 -0000)
ebuilds/eclasses have stuff in global scope that really belongs somewhere
like pkg_setup or src_configure. Thanks to Arfrever for reporting.

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

bin/ebuild.sh

index 65154143c8b8984070054de46e403d4a98b4408f..9d49ae2a45e73429d67015cf4cae80d8e1458639 100755 (executable)
@@ -142,7 +142,11 @@ useq() {
        fi
 
        # Make sure we have this USE flag in IUSE
-       if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then
+       # Skip this during the "depend" phase because lots of ebuilds/eclasses
+       # have stuff in global scope that really belongs somewhere like pkg_setup
+       # or src_configure.
+       if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE && \
+               $EBUILD_PHASE != depend ]] ; then
                [[ $u =~ $PORTAGE_IUSE ]] || \
                        eqawarn "QA Notice: USE Flag '${u}' not" \
                                "in IUSE for ${CATEGORY}/${PF}"