Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249229 - Ability to suppress specific warnings, per ebuild
Summary: Ability to suppress specific warnings, per ebuild
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 06:08 UTC by Robin Johnson
Modified: 2022-10-20 01:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.