rpm-software-management / rpmlint

Tool for checking common errors in rpm packages
GNU General Public License v2.0
135 stars 117 forks source link

rpmlint and rpmlintrc have no man page (the irony!) #1077

Open paulwouters opened 1 year ago

paulwouters commented 1 year ago

running rpmlint on the rpmlint package should indeed give a:

E: no-manual-page-for-binary

The reason I found this was because I wanted to know if there is a way to disable the "valid opensource licencse" check without needing a per package rpmlintrc line with addFilter("E: invalid-license") for our own (non-opensource) packages.

danigm commented 1 year ago

Which rpmlint package? maybe we can create a test to verify the problem. As far as I can tell this error is disabled by default, at least in openSUSE.

paulwouters commented 1 year ago

in the fedora package in rawhide:

paul.wouters@fedora:~/fedora/rpmlint (rawhide)$ rpmlint /home/paul.wouters/RPMS/noarch/rpmlint-2.4.0-9.fc37.noarch.rpm ============================ rpmlint session starts ============================ rpmlint: 2.4.0 configuration: /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml checks: 31, packages: 1

rpmlint.noarch: W: no-manual-page-for-binary rpmdiff rpmlint.noarch: W: no-manual-page-for-binary rpmlint 1 packages and 0 specfiles checked; 0 errors, 2 warnings, 0 badness; has taken 0.1 s

But ofcourse the proper fix is not to silence the warning, but to ship with man pages for the binaries and for the rpmlintrc format :)