churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame python38.rpmlintrc

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