churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

Blame python3.rpmlintrc

58c6b17
# KNOWN BUGS:
58c6b17
# https://bugzilla.redhat.com/show_bug.cgi?id=1489816
58c6b17
addFilter(r'crypto-policy-non-compliance-openssl')
58c6b17
58c6b17
58c6b17
# TESTS:
58c6b17
addFilter(r'(zero-length|pem-certificate|uncompressed-zip) /usr/lib(64)?/python3.\d/test')
58c6b17
58c6b17
58c6b17
# OTHER DELIBERATES:
58c6b17
# chroot function
58c6b17
addFilter(r'missing-call-to-chdir-with-chroot')
58c6b17
58c6b17
# intentionally unversioned and selfobsoleted
58c6b17
addFilter(r'unversioned-explicit-obsoletes python')
58c6b17
addFilter(r'self-obsoletion python3\d obsoletes python3\d')
58c6b17
58c6b17
# intentionally hardcoded
58c6b17
addFilter(r'hardcoded-library-path in %{_prefix}/lib/(debug/%{_libdir}|python%{pybasever})')
58c6b17
58c6b17
# we have non binary stuff, python files
58c6b17
addFilter(r'only-non-binary-in-usr-lib')
58c6b17
58c6b17
# some devel files that are deliberately needed
58c6b17
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\dm/pyconfig-(32|64)\.h')
58c6b17
addFilter(r'devel-file-in-non-devel-package /usr/lib64/python3\.\d/distutils/tests/xxmodule\.c')
58c6b17
58c6b17
58c6b17
# SORRY, NOT SORRY:
58c6b17
# manual pages
58c6b17
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3-debug|pathfix\.py)')
58c6b17
addFilter(r'no-manual-page-for-binary python3.*-config$')
58c6b17
addFilter(r'no-manual-page-for-binary python3.\dd?m$')
58c6b17
58c6b17
# missing documentation from subpackages
58c6b17
addFilter(r'^python3\d?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documentation')
58c6b17
58c6b17
# platform python is obsoleted, but not provided
58c6b17
addFilter(r'obsolete-not-provided platform-python')
58c6b17
58c6b17
58c6b17
# RPMLINT IMPERFECTIONS:
58c6b17
# ifarch applied patches are OK
58c6b17
# https://fedoraproject.org/wiki/Packaging:Guidelines#Architecture_Support
58c6b17
addFilter(r'%ifarch-applied-patch')
58c6b17
58c6b17
# debugsource
58c6b17
addFilter(r'^python3\d?-debugsource\.[^:]+: (E|W): no-documentation')
58c6b17
58c6b17
# debuginfo
58c6b17
addFilter(r'^python3\d?-debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')
58c6b17
58c6b17
# this is OK for F28+
58c6b17
addFilter(r'library-without-ldconfig-post')
58c6b17
58c6b17
# debug package contains devel and non-devel files
58c6b17
addFilter(r'python3\d?-debug.[^:]+: (E|W): (non-)?devel-file-in-(non-)?devel-package')
58c6b17
58c6b17
# this goes to other subpackage, hence not actually dangling, the read error is bogus
58c6b17
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc python-3\.\d\.pc')
58c6b17
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc \[Errno 2\]')
58c6b17
58c6b17
58c6b17
# SPELLING ERRORS
58c6b17
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')