42c61b
# KNOWN BUGS:
42c61b
# https://bugzilla.redhat.com/show_bug.cgi?id=1489816
42c61b
addFilter(r'crypto-policy-non-compliance-openssl')
42c61b
42c61b
42c61b
# TESTS:
42c61b
addFilter(r'(zero-length|pem-certificate|uncompressed-zip) /usr/lib(64)?/python3.\d/test')
42c61b
42c61b
42c61b
# OTHER DELIBERATES:
42c61b
# chroot function
42c61b
addFilter(r'missing-call-to-chdir-with-chroot')
42c61b
94ba90
# intentionally unversioned and selfobsoleted
42c61b
addFilter(r'unversioned-explicit-obsoletes python')
94ba90
addFilter(r'self-obsoletion python3\d obsoletes python3\d')
42c61b
42c61b
# intentionally hardcoded
42c61b
addFilter(r'hardcoded-library-path in %{_prefix}/lib/(debug/%{_libdir}|python%{pybasever})')
42c61b
42c61b
# intentional for our pythonXY package
42c61b
addFilter(r'python3\d\.[^:]+: (E|W): devel-file-in-non-devel-package')
42c61b
94ba90
# we have non binary stuff, python files
94ba90
addFilter(r'only-non-binary-in-usr-lib')
94ba90
94ba90
# some devel files that are deliberately needed
94ba90
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\dm/pyconfig-(32|64)\.h')
33cd8f
addFilter(r'devel-file-in-non-devel-package /usr/lib(64)?/python3\.\d/distutils/tests/xxmodule\.c')
94ba90
42c61b
42c61b
# SORRY, NOT SORRY:
42c61b
# manual pages
33cd8f
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3-debug|pathfix|msgfmt|pygettext)')
42c61b
addFilter(r'no-manual-page-for-binary python3.*-config$')
94ba90
addFilter(r'no-manual-page-for-binary python3.\dd?m$')
94ba90
94ba90
# missing documentation from subpackages
94ba90
addFilter(r'^python3\d?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documentation')
94ba90
94ba90
# platform python is obsoleted, but not provided
94ba90
addFilter(r'obsolete-not-provided platform-python')
42c61b
42c61b
42c61b
# RPMLINT IMPERFECTIONS
42c61b
# https://github.com/rpm-software-management/rpmlint/issues/123
42c61b
addFilter(r'python-bytecode-wrong-magic-value .* expected 33\d\d \(3\.7\), found 3393')
ceff4b
# https://github.com/rpm-software-management/rpmlint/pull/133
ceff4b
addFilter(r'python-bytecode-wrong-magic-value .* expected 33\d\d \(3\.7\), found 3394')
42c61b
42c61b
# https://bugzilla.redhat.com/show_bug.cgi?id=1550562
42c61b
# https://github.com/rpm-software-management/rpmlint/issues/128
42c61b
addFilter(r'python-bytecode-inconsistent-mtime .* 1970')
42c61b
42c61b
# debugsource
42c61b
addFilter(r'^python3\d?-debugsource\.[^:]+: (E|W): no-documentation')
42c61b
42c61b
# debuginfo
42c61b
addFilter(r'^python3\d?-debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')
42c61b
42c61b
# this is OK for F28+
42c61b
addFilter(r'library-without-ldconfig-post')
94ba90
94ba90
# debug package contains devel and non-devel files
94ba90
addFilter(r'python3\d?-debug.[^:]+: (E|W): (non-)?devel-file-in-(non-)?devel-package')
94ba90
94ba90
# this goes to other subpackage, hence not actually dangling, the read error is bogus
94ba90
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc python-3\.\d\.pc')
94ba90
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc \[Errno 2\]')
94ba90
34f9f5
# we need this macro to evaluate, even if the line starts with #
34f9f5
addFilter(r'macro-in-comment %\{_pyconfig(32|64)_h\}')
94ba90
553fd2
# Python modules don't need to be linked against libc
9fbe2e
# Since 3.8 they are no longer linked against libpython3.8.so.1.0
553fd2
addFilter(r'E: library-not-linked-against-libc /usr/lib(64)?/python3.\d/lib-dynload/')
9fbe2e
addFilter(r'E: shared-lib-without-dependency-information /usr/lib(64)?/python3.\d/lib-dynload/')
553fd2
94ba90
# SPELLING ERRORS
94ba90
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')