Rpmlint

From Rosalab Wiki
Revision as of 12:27, 9 February 2012 by D uragan (Talk | contribs) (Added rpmlint description for ROSA Linux)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a page snapshot, showing old (but not deleted) versions of images and templates.
Jump to: navigation, search


Description

rpmlint is a tool to check common errors on RPM packages. Rpmlint in ROSA Linux is adopted for this particular distribution and configured to check problems with ROSA policies. If you think you have find a bug in rpmlint, it is better to report it first in ROSA bugzilla.

Configuration

You can configure rpmlintwith the file ~/.config/rpmlint, or /etc/rpmlint/config. Default configuration used in ROSA can be found in files from the /usr/share/rpmlint/config.d directory. Note that build cluster has rpmlint configured to detect follow this configuration, so even if you filter out some errors in your config and your package passes rpmlint checks successfully, there still can be problems when building in the build system.

However, there are some issues that are guaranteed not to happen when building with the build system. In particular, it is the build system who signs packages and adds Packager tag. So in local config, you should set at least the following:

addFilter("E:.* no-signature")
addFilter("W:.* invalid-packager")
addFilter("E:.* no-packager-tag")

For details of rpmlint configuration and options, look at the rpmlint documentation.

Results

Rpmlint errors are detailed in Rpmlint Errors.