Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 249229

Summary: Ability to suppress specific warnings, per ebuild
Product: Portage Development Reporter: Robin Johnson <robbat2>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED OBSOLETE    
Severity: enhancement    
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
See Also: https://github.com/pkgcore/pkgcheck/issues/478
Whiteboard:
Package list:
Runtime testing required: ---

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-29 06:08:31 UTC
Just after dealing with a bunch of Java stuff in work lately, I realized it would probably be useful to add support into repoman to suppress specific warnings.

As an example, for gitosis (and gitosis-gentoo), I'd like to suppress these:
  RDEPEND.suspect               2
   dev-util/gitosis/gitosis-0.2_p20080626.ebuild: '>=dev-python/setuptools-0.6_rc5'
   dev-util/gitosis/gitosis-0.2_p20080825.ebuild: '>=dev-python/setuptools-0.6_rc5'
Because the Python code in gitosis DOES actually use setuptools stuff at runtime.

This could open the door for running regular full-tree checks while cutting down the noise by being able to ignore the false positives.

As a syntax, I suggest comment blocks:
# @repoman-suppress (error name) (optional args)
Eg:
# @repoman-suppress RDEPEND.suspect dev-python/setuptools
# @repoman-suppress ebuild.allmasked
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-20 01:59:06 UTC
Filed https://github.com/pkgcore/pkgcheck/issues/478.