Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 326747 | Differences between
and this patch

Collapse All | Expand All

(-)a/bin/repoman (+2 lines)
Lines 279-284 qahelp={ Link Here
279
	"file.name":"File/dir name must be composed of only the following chars: %s " % allowed_filename_chars,
279
	"file.name":"File/dir name must be composed of only the following chars: %s " % allowed_filename_chars,
280
	"file.UTF8":"File is not UTF8 compliant",
280
	"file.UTF8":"File is not UTF8 compliant",
281
	"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
281
	"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
282
	"inherit.deprecated":"Ebuild inherits a deprecated eclass",
282
	"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
283
	"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
283
	"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
284
	"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
284
	"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
285
	"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
Lines 387-392 qawarnings = set(( Link Here
387
"ebuild.patches",
388
"ebuild.patches",
388
"file.size",
389
"file.size",
389
"inherit.autotools",
390
"inherit.autotools",
391
"inherit.deprecated",
390
"java.eclassesnotused",
392
"java.eclassesnotused",
391
"metadata.warning",
393
"metadata.warning",
392
"virtual.versioned",
394
"virtual.versioned",
(-)a/man/repoman.1 (+3 lines)
Lines 294-299 Package lacks a files directory Link Here
294
.B inherit.autotools
294
.B inherit.autotools
295
Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf
295
Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf
296
.TP
296
.TP
297
.B inherit.deprecated
298
Ebuild inherits a deprecated eclass
299
.TP
297
.B java.eclassesnotused
300
.B java.eclassesnotused
298
With virtual/jdk in DEPEND you must inherit a java eclass. Refer to
301
With virtual/jdk in DEPEND you must inherit a java eclass. Refer to
299
\fIhttp://www.gentoo.org/proj/en/java/java\-devel.xml\fR for more information.
302
\fIhttp://www.gentoo.org/proj/en/java/java\-devel.xml\fR for more information.
(-)a/pym/repoman/checks.py (-2 / +30 lines)
Lines 294-299 class EbuildQuotedA(LineCheck): Link Here
294
		if match:
294
		if match:
295
			return "Quoted \"${A}\" on line: %d"
295
			return "Quoted \"${A}\" on line: %d"
296
296
297
class InheritDeprecated(LineCheck):
298
	"""Check if ebuild inherits a deprecated eclass"""
299
300
	repoman_check_name = 'inherit.deprecated'
301
302
	# deprecated eclass : new eclass (0 if no new eclass)
303
	deprecated_classes = {
304
		"gems": "ruby-fakegem",
305
		"php-pear": "php-pear-r1",
306
		"qt3": 0,
307
		"qt4": "qt4-r2",
308
		"ruby": "ruby-ng",
309
		"ruby-gnome2": "ruby-ng-gnome2"
310
		}
311
312
	def new(self, pkg):
313
		self.matched_eclasses = frozenset(self.deprecated_classes.keys()).intersection(pkg.inherited);
314
315
	def check(self, num, line):
316
		pass
317
318
	def end(self):
319
		for i in self.matched_eclasses:
320
			if self.deprecated_classes[i] == 0:
321
				yield i + ": deprecated eclass"
322
			else:
323
				yield "uses deprecated eclass '"+ i +"'. please migrate to '"+ \
324
					self.deprecated_classes[i] +"'"
325
297
class InheritAutotools(LineCheck):
326
class InheritAutotools(LineCheck):
298
	"""
327
	"""
299
	Make sure appropriate functions are called in
328
	Make sure appropriate functions are called in
Lines 492-498 _constant_checks = tuple((c() for c in ( Link Here
492
	EbuildAssignment, EbuildUselessDodoc,
521
	EbuildAssignment, EbuildUselessDodoc,
493
	EbuildUselessCdS, EbuildNestedDie,
522
	EbuildUselessCdS, EbuildNestedDie,
494
	EbuildPatches, EbuildQuotedA, EapiDefinition,
523
	EbuildPatches, EbuildQuotedA, EapiDefinition,
495
	IUseUndefined, InheritAutotools,
524
	IUseUndefined, InheritAutotools, InheritDeprecated,
496
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
525
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
497
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
526
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
498
	SrcCompileEconf, Eapi3DeprecatedFuncs,
527
	SrcCompileEconf, Eapi3DeprecatedFuncs,
499
- 

Return to bug 326747