Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13597 - main/trunk/bin
Date: Sat, 02 May 2009 22:14:46
Message-Id: E1M0NTo-0005LY-LC@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-05-02 22:14:44 +0000 (Sat, 02 May 2009)
3 New Revision: 13597
4
5 Modified:
6 main/trunk/bin/ebuild.sh
7 Log:
8 Skip useq() IUSE QA Notices during the "depend" phase because lots of
9 ebuilds/eclasses have stuff in global scope that really belongs somewhere
10 like pkg_setup or src_configure. Thanks to Arfrever for reporting.
11
12
13 Modified: main/trunk/bin/ebuild.sh
14 ===================================================================
15 --- main/trunk/bin/ebuild.sh 2009-05-02 20:49:27 UTC (rev 13596)
16 +++ main/trunk/bin/ebuild.sh 2009-05-02 22:14:44 UTC (rev 13597)
17 @@ -142,7 +142,11 @@
18 fi
19
20 # Make sure we have this USE flag in IUSE
21 - if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then
22 + # Skip this during the "depend" phase because lots of ebuilds/eclasses
23 + # have stuff in global scope that really belongs somewhere like pkg_setup
24 + # or src_configure.
25 + if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE && \
26 + $EBUILD_PHASE != depend ]] ; then
27 [[ $u =~ $PORTAGE_IUSE ]] || \
28 eqawarn "QA Notice: USE Flag '${u}' not" \
29 "in IUSE for ${CATEGORY}/${PF}"