summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2010-11-13 04:09:56 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-13 04:09:56 -0800
commit30a602f8b1ca4b6e0500d4c082c8a83387e4e0cd (patch)
tree82a267cc2de4354f60ffc909b8faba0072e36fa7
parente0a813c3a515f51fd8502a291ef9d2ee47d588c1 (diff)
downloadportage-30a602f8b1ca4b6e0500d4c082c8a83387e4e0cd.tar.gz
portage-30a602f8b1ca4b6e0500d4c082c8a83387e4e0cd.tar.bz2
portage-30a602f8b1ca4b6e0500d4c082c8a83387e4e0cd.zip
repoman: add wxwidgets.eclassnotused (bug 305469)
-rwxr-xr-xbin/repoman11
-rw-r--r--man/repoman.14
2 files changed, 15 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 0265e9dd5..ddeadca77 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -291,6 +291,7 @@ qahelp={
"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
"inherit.deprecated":"Ebuild inherits a deprecated eclass",
"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
+ "wxwidgets.eclassnotused":"Ebuild DEPENDs on x11-libs/wxGTK without inheriting wxwidgets.eclass",
"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
"KEYWORDS.stable":"Ebuilds that have been added directly with stable KEYWORDS",
@@ -404,6 +405,7 @@ qawarnings = set((
"inherit.autotools",
"inherit.deprecated",
"java.eclassesnotused",
+"wxwidgets.eclassnotused",
"metadata.warning",
"virtual.versioned",
"virtual.exists",
@@ -1631,6 +1633,7 @@ for x in scanlist:
inherited_java_eclass = "java-pkg-2" in inherited or \
"java-pkg-opt-2" in inherited
+ inherited_wxwidgets_eclass = "wxwidgets" in inherited
operator_tokens = set(["||", "(", ")"])
type_list, badsyntax = [], []
for mytype in ("DEPEND", "RDEPEND", "PDEPEND",
@@ -1667,6 +1670,14 @@ for x in scanlist:
atom.cp == "virtual/jdk":
stats['java.eclassesnotused'] += 1
fails['java.eclassesnotused'].append(relative_path)
+ elif mytype == "DEPEND" and \
+ not is_blocker and \
+ not inherited_wxwidgets_eclass and \
+ atom.cp == "x11-libs/wxGTK":
+ stats['wxwidgets.eclassnotused'] += 1
+ fails['wxwidgets.eclassnotused'].append(
+ relative_path + ": DEPENDs on x11-libs/wxGTK"
+ " without inheriting wxwidgets.eclass")
elif mytype in ("PDEPEND", "RDEPEND"):
if not is_blocker and \
atom.cp in suspect_rdepend:
diff --git a/man/repoman.1 b/man/repoman.1
index b4b6b1d49..27b213c78 100644
--- a/man/repoman.1
+++ b/man/repoman.1
@@ -352,6 +352,10 @@ PROVIDE contains a virtual which contains no profile default
.TP
.B virtual.versioned
PROVIDE contains virtuals with versions
+.TP
+.B wxwidgets.eclassnotused
+Ebuild DEPENDs on x11-libs/wxGTK without inheriting wxwidgets.eclass. Refer to
+bug #305469 for more information.
.SH "REPORTING BUGS"
Please report bugs via http://bugs.gentoo.org/
.SH AUTHORS