Rpmlint

From Rosalab Wiki
Revision as of 20:29, 22 August 2012 by D uragan (Talk | contribs) (Configuration: + note about rpmlint-mandriva-policy)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Official rpmlint configuration for ROSA is provided by the rpmlint-mandriva-policy package. Before using rpmlint in ROSA, make sure that this package is installed.

You can configure rpmlint with 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.