2018-03-01 14:21:59 +00:00
|
|
|
# KNOWN BUGS:
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1489816
|
|
|
|
addFilter(r'crypto-policy-non-compliance-openssl')
|
|
|
|
|
|
|
|
|
|
|
|
# TESTS:
|
2020-05-26 17:16:15 +00:00
|
|
|
addFilter(r'(zero-length|pem-certificate|uncompressed-zip) /usr/lib(64)?/python3\.\d+/test')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# OTHER DELIBERATES:
|
|
|
|
# chroot function
|
|
|
|
addFilter(r'missing-call-to-chdir-with-chroot')
|
|
|
|
|
2018-03-01 15:00:00 +00:00
|
|
|
# intentionally unversioned and selfobsoleted
|
2018-03-01 14:21:59 +00:00
|
|
|
addFilter(r'unversioned-explicit-obsoletes python')
|
2020-05-07 14:50:36 +00:00
|
|
|
addFilter(r'self-obsoletion python3\.\d+ obsoletes python3\.\d+')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# intentionally hardcoded
|
|
|
|
addFilter(r'hardcoded-library-path in %{_prefix}/lib/(debug/%{_libdir}|python%{pybasever})')
|
|
|
|
|
|
|
|
# intentional for our pythonXY package
|
2020-05-07 14:50:36 +00:00
|
|
|
addFilter(r'python3\.\d+\.[^:]+: (E|W): devel-file-in-non-devel-package')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
2018-03-01 15:00:00 +00:00
|
|
|
# we have non binary stuff, python files
|
|
|
|
addFilter(r'only-non-binary-in-usr-lib')
|
|
|
|
|
|
|
|
# some devel files that are deliberately needed
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\d+m?/pyconfig-(32|64)\.h')
|
|
|
|
addFilter(r'devel-file-in-non-devel-package /usr/lib(64)?/python3\.\d+/distutils/tests/xxmodule\.c')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
2020-10-09 10:13:10 +00:00
|
|
|
# some bytecode is shipped without sources on purpose, as a space optimization
|
|
|
|
# if this regex needs to be relaxed in the future, make sure it **does not** match pyc files in __pycache__
|
|
|
|
addFilter(r'python-bytecode-without-source /usr/lib(64)?/python3\.\d+/(encodings|pydoc_data)/[^/]+.pyc')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# SORRY, NOT SORRY:
|
|
|
|
# manual pages
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3?-debug|pathfix|msgfmt|pygettext)')
|
|
|
|
addFilter(r'no-manual-page-for-binary python3?.*-config$')
|
|
|
|
addFilter(r'no-manual-page-for-binary python3\.\d+dm?$')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
|
|
|
# missing documentation from subpackages
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'^python3(\.\d+)?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documentation')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
|
|
|
# platform python is obsoleted, but not provided
|
|
|
|
addFilter(r'obsolete-not-provided platform-python')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
2021-03-26 12:44:21 +00:00
|
|
|
# we have extra tokens at the end of %endif/%else directives, we consider them useful
|
|
|
|
addFilter(r'extra tokens at the end of %(endif|else) directive')
|
|
|
|
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# RPMLINT IMPERFECTIONS
|
|
|
|
# https://github.com/rpm-software-management/rpmlint/issues/123
|
|
|
|
addFilter(r'python-bytecode-wrong-magic-value .* expected 33\d\d \(3\.7\), found 3393')
|
2018-06-12 09:47:27 +00:00
|
|
|
# https://github.com/rpm-software-management/rpmlint/pull/133
|
|
|
|
addFilter(r'python-bytecode-wrong-magic-value .* expected 33\d\d \(3\.7\), found 3394')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1550562
|
|
|
|
# https://github.com/rpm-software-management/rpmlint/issues/128
|
|
|
|
addFilter(r'python-bytecode-inconsistent-mtime .* 1970')
|
|
|
|
|
2020-05-11 09:01:57 +00:00
|
|
|
# we provide python(abi) manually to be sure. createrepo will merge this with the automatic
|
|
|
|
addFilter(r'python3(\.\d+)?\.[^:-]+: (E|W): useless-provides python\(abi\)')
|
|
|
|
|
2018-03-01 14:21:59 +00:00
|
|
|
# debugsource
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'^python3(\.\d+)?-debugsource\.[^:]+: (E|W): no-documentation')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# debuginfo
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'^python3(\.\d+)?-debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')
|
2018-03-01 14:21:59 +00:00
|
|
|
|
|
|
|
# this is OK for F28+
|
|
|
|
addFilter(r'library-without-ldconfig-post')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
|
|
|
# debug package contains devel and non-devel files
|
2020-05-26 17:16:15 +00:00
|
|
|
addFilter(r'python3(\.\d+)?-debug\.[^:]+: (E|W): (non-)?devel-file-in-(non-)?devel-package')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
|
|
|
# this goes to other subpackage, hence not actually dangling, the read error is bogus
|
2020-05-11 09:01:57 +00:00
|
|
|
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc python-3\.\d+(-embed)?\.pc')
|
|
|
|
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc \[Errno 2\]')
|
|
|
|
|
|
|
|
# the python-unversioned-command package contains dangling symlinks by design
|
|
|
|
addFilter(r'^python-unversioned-command\.[^:]+: (E|W): dangling-relative-symlink '
|
|
|
|
r'(/usr/bin/python \./python3|/usr/share/man/man1/python\.1\S* ./python3\.1\S*)$')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
2018-03-24 07:06:56 +00:00
|
|
|
# we need this macro to evaluate, even if the line starts with #
|
|
|
|
addFilter(r'macro-in-comment %\{_pyconfig(32|64)_h\}')
|
2018-03-01 15:00:00 +00:00
|
|
|
|
2019-02-06 01:25:20 +00:00
|
|
|
# Python modules don't need to be linked against libc
|
2019-05-16 08:33:14 +00:00
|
|
|
# Since 3.8 they are no longer linked against libpython3.8.so.1.0
|
2021-03-26 12:48:47 +00:00
|
|
|
addFilter(r'(E|W): library-not-linked-against-libc /usr/lib(64)?/python3\.\d+/lib-dynload/')
|
|
|
|
addFilter(r'(E|W): shared-lib-without-dependency-information /usr/lib(64)?/python3\.\d+/lib-dynload/')
|
2019-02-06 01:25:20 +00:00
|
|
|
|
2021-03-26 12:44:21 +00:00
|
|
|
# specfile-errors are listed twice, once with reason and once without
|
|
|
|
# we filter out the empty ones
|
|
|
|
addFilter(r'\bpython3(\.\d+)?\.(src|spec): (E|W): specfile-error\s+$')
|
|
|
|
|
2018-03-01 15:00:00 +00:00
|
|
|
# SPELLING ERRORS
|
|
|
|
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')
|