Commit Graph

90 Commits

Author SHA1 Message Date
Miro Hrončok
8c896377da Filter out empty specfile-errors, they are duplicates
Before:

    $ rpmlint python-setuptools.spec
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 58:  %endif # with tests
    python-setuptools.spec: E: specfile-error
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 67:  %endif # without bootstrap
    python-setuptools.spec: E: specfile-error
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 181:  %endif # with tests
    0 packages and 1 specfiles checked; 5 errors, 0 warnings.

After:

    $ rpmlint python-setuptools.spec
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 58:  %endif # with tests
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 67:  %endif # without bootstrap
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 181:  %endif # with tests
    0 packages and 1 specfiles checked; 3 errors, 0 warnings.
2021-04-13 10:48:05 +02:00
Miro Hrončok
77d737a57a Filter out empty py.typed files in Python site-packages 2021-01-25 15:05:32 +01:00
Miro Hrončok
9d73fed514 Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs 2020-08-21 15:07:34 +02:00
Tom Callaway
02b658689b add /usr/bin/python[23] as valid shells 2020-06-10 08:40:10 -04:00
Michel Alexandre Salim
43b8a7e220 Filter out postin-without-install-info
Fedora no longer requires install-info scriptlets, and we already filter out some rpmlint rules (`info-files-without-install-info-postin` and `info-files-without-install-info-postun`).

Some packages (like `emacs-slime`) still has `%post` for other reasons, though, and if they also ship info files this triggers an extraneous rpmlint error.

Filter out `postin-without-install-info` in addition to the existing two rules.

Test case:
```
~/src/fedora/pkgs-others/rpmlint master*
❯ diff -u <(rpmlint /var/lib/mock/fedora-32-x86_64/result/emacs-slime-2.24-1.fc32.noarch.rpm) <(rpmlint -f ./rpmlint.config /var/lib/mock/fedora-32-x86_64/result/emacs-slime-2.24-1.fc32.noarch.rpm)
--- /proc/self/fd/12    2020-04-28 18:24:01.774132790 -0700
+++ /proc/self/fd/13    2020-04-28 18:24:01.775132781 -0700
@@ -1,6 +1,4 @@
 emacs-slime.noarch: E: incorrect-fsf-address /usr/share/common-lisp/source/slime/lib/hyperspec.el
 emacs-slime.noarch: E: incorrect-fsf-address /usr/share/common-lisp/source/slime/swank/clisp.lisp
 emacs-slime.noarch: E: incorrect-fsf-address /usr/share/emacs/site-lisp/slime/lib/hyperspec.el
-emacs-slime.noarch: E: postin-without-install-info /usr/share/info/slime.info.gz
-emacs-slime.noarch: E: postin-without-install-info /usr/share/info/slime.info.gz
-1 packages and 0 specfiles checked; 5 errors, 0 warnings.
+1 packages and 0 specfiles checked; 3 errors, 0 warnings.
```
2020-04-28 18:31:55 -07:00
Tom Callaway
f7f6955004 merge PR requests manually 2019-07-11 09:45:19 -04:00
Nikos Mavrogiannopoulos
4e0d749337 rpmlint.config: corrected typo in bad_crypto_warning for gnutls 2019-05-28 13:35:51 +02:00
Tom Callaway
0e13c403f8 filter out info-files-without-install-info-postin/postun check 2019-01-16 09:13:27 -05:00
Tom Callaway
5a6293221c ignore non-standard-dir-perm error for 700 dirs in /etc and /var/lib 2018-12-07 12:10:37 -05:00
Frank Dana (FeRD)
9d8f6ca034 Add explicit-lib-dependency exception for libreoffice
When readying parlatype[1] for package review[2], I discovered that rpmlint was giving me an explicit-lib-dependency error on the parlatype-libreoffice-helpers package, due to its "Requires: libreoffice-pyuno%{?isa}" component.

Obviously, a libreoffice package is not a library, even though the package name starts with 'lib'. This change adds an additional filter to the rpmlint.config , excluding `libreoffice.*$` from the explicit-lib-dependency check.

[1]: https://github.com/gkarsay/parlatype
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=1624208
2018-09-10 05:17:54 +00:00
Georg Sauthoff
92819b9482 remove unlisted or-later (+) variants
of licenses that don't have a or-later clause and thus aren't
listed on the Fedora Licensing page.
2018-08-11 11:56:26 +02:00
Georg Sauthoff
4c791e8bf6 add new valid licenses 2018-08-11 11:51:52 +02:00
Todd Zullinger
71aa39eda1 Fix non-ghost-in-run filter in config
The non-ghost-in-var-(lock|run) identifiers were merged and renamed to
non-ghost-in-run in rpmlint-1.8¹.  Update the config to properly filter
this warning.

¹ https://github.com/rpm-software-management/rpmlint/commit/2d56865
2018-06-17 14:21:44 -04:00
Todd Zullinger
211efe1897 Explicitly disable the non-standard-group check
The non-standard-group check has been effectively disabled since rpm
removed the GROUPS file in 4.14.0¹.  Additionally, the Fedora packaging
guidelines discourage the use of the 'Group:' tag², so there is little
point in maintaining a list of valid groups.

¹ https://github.com/rpm-software-management/rpm/commit/0d93b634
² https://fedoraproject.org/wiki/Packaging:Guidelines#Tags_and_Sections
2018-05-04 00:46:14 -04:00
Todd Zullinger
0a7af54e25 Ignore /usr/src/debug/ in debugsource packages
We have ignored /usr/lib/debug in debuginfo packages, since 2006
(503da0b, rpmlint-0.76).  Treat /usr/src/debug in debugsource equally.
2018-04-18 14:38:08 -04:00
Todd Zullinger
40e157a58e Ignore 'no-documentation' in debugsource packages
The no-documentation warning has been ignored for debuginfo packages
since 2006 (503da0b, rpmlint-0.76).
2018-04-18 12:37:02 -04:00
Tom Callaway
f148d64da6 disable library-without-ldconfig-postin/postun checks (F28+) 2018-04-17 16:17:35 -04:00
Todd Zullinger
a325960c04 Update UsrLibBinaryException config to include .build-id
In 2e06474 ("buildid fixes", 2017-07-17) an upstream patch was applied
which added '.build-id' to the UsrLibBinaryException regex.
Unfortunately, since fd3ffab ("add systemd to UsrLibBinaryException",
2014-06-25)), we override this setting in our rpmlint.config file and it
was not updated to include '.build-id'.

Update the regex to include (most) of the upstream changes, along with our
addition of 'systemd' to the regex.

This fixes spurious 'only-non-binary-in-usr-lib' warnings.
2018-04-16 16:22:54 -04:00
Tom Callaway
21c51c4c42 ignore common jargon words in spellcheck 2017-10-29 12:52:00 -04:00
Tom Callaway
b3fa55f70c fix SSL_CTX_set_cipher_list waiver, use raw strings in config file to silence python3 deprecation warnings 2017-10-29 12:29:04 -04:00
Tom Callaway
2a5843ffca use correct config file option for debugsource 2017-09-11 11:34:49 -04:00
Tom Callaway
12ea7db6f2 update config file to reflect new licenses and to ignore devel files in debugsource packages 2017-09-08 17:25:17 -04:00
Tom Callaway
fcd9a01d65 ignore long description lines for debuginfo packages 2016-08-26 16:00:01 -04:00
Tom Callaway
6098c6ff42 fix 403 ignore rule for github to be more complete (bz1359582) 2016-07-25 13:49:32 -04:00
Tom Callaway
36f604e5dd ignore python*-*lib* for explicit-lib-dependency, update license list 2016-06-14 14:00:16 -04:00
Tom Callaway
20f2bcffd2 update license list, add github.com to the filter ignore list for 403 errors (bz1326855) 2016-04-18 14:42:40 -05:00
Tom Callaway
0fda47c0f5 fix issue in config regex causing bitbucket URLs to slip through invalid-url filter 2015-09-28 10:51:39 -04:00
Tom Callaway
e45bad3651 1.8 2015-09-25 13:51:08 -04:00
Tom Callaway
71d1d188e1 filter out failure from broken webservers, add new licenses 2015-05-29 12:09:59 -04:00
Tom Callaway
65d75b9e5f update license list in config 2014-12-09 14:47:16 -05:00
Tom Callaway
fd3ffabf2a add systemd to UsrLibBinaryException 2014-06-25 12:39:23 -04:00
Tom Callaway
0536d0406f update config to ignore non-readable /etc/ovirt-engine/isouploader.conf 2014-05-12 15:26:34 -04:00
Tom Callaway
139a2c4b32 filter out broken-syntax-in-scriptlet-requires (except on el4/5) 2014-02-10 16:04:28 -05:00
Ville Skyttä
37bafdf91a Make default config Python 3 compatible. 2014-02-09 14:19:54 +02:00
Tom Callaway
2be746cdc8 update license list, fix desktop file parsing 2013-10-09 19:44:45 -04:00
Tom Callaway
0b83184dc6 1.5 2013-05-17 13:41:17 -04:00
Tom Callaway
e83f5fc5a6 exclude non config files that live in /etc, update license list 2013-03-06 16:09:55 -05:00
Tom Callaway
4ba44299ba fix py3 magic number, update license list 2012-08-14 15:50:21 -04:00
Tom Callaway
364c6fdefd Do not throw an error on desktop files set +x 2011-12-15 14:25:38 -05:00
Tom Callaway
3347761d18 1.4, filter non-ghost-in-var-(lock|run) 2011-12-05 14:35:57 -05:00
Tom "spot" Callaway
32994cd899 fix bz 741298 and 745446 2011-10-12 14:51:03 -04:00
Tom "spot" Callaway
6a047fdab5 update to 1.2, filter out files-attr-not-set except for el4 2011-04-24 21:58:38 -04:00
Tom "spot" Callaway
66f16c4cf4 add support for el5-rpmlint, el6-rpmlint | disable no-cleaning-of-buildroot checks for Fedora | disable no-buildroot-tag check for Fedora | disable no-%clean-section check for Fedora 2010-12-06 12:32:05 -05:00
Ville Skyttä
259364fd5e Sync Fedora license list with Wiki revision 1.85. 2010-11-01 23:31:14 +02:00
Ville Skyttä
8480e39802 Whitelist more expectedly setuid executables; fixes #646455. 2010-11-01 23:20:23 +02:00
Ville Skyttä
db3d04e628 0.99-1
- Update to 0.99; fixes #623607, helps work around #537430.
- Sync Fedora license list with Wiki revision 1.80.
2010-08-19 18:57:17 +03:00
Ville Skyttä
d345d0088c - Update to 0.98; fixes #599427 and #599516.
- Filter out all lib*-java and lib*-python explicit-lib-dependency
    messages.
- Sync Fedora license list with Wiki revision 1.75; fixes #600317.
2010-06-23 19:06:20 +00:00
Ville Skyttä
b7f5315add - Update to 0.97; fixes #459452, #589432.
- Filter out explicit-lib-dep messages for libvirt(-python) (Dan
    Kenigsberg).
- Sync Fedora license list with Wiki revision 1.73.
2010-05-18 19:58:31 +00:00
Ville Skyttä
e2f06ee756 - Update to 0.96; fixes #487974, #571375, #571386, #572090, #572097,
#578390.
- Sync Fedora license list with Wiki revision 1.71.
2010-04-21 21:52:53 +00:00
Ville Skyttä
1468d1ba3f - Update to 0.95; fixes #564585, #567285, #568498, and #570086. 2010-03-03 20:43:08 +00:00