churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

Blame python3.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:
4332c4f
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')
4332c4f
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
4332c4f
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
4332c4f
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\d+m?/pyconfig-(32|64)\.h')
4332c4f
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
a1d16f7
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3?-debug|pathfix|msgfmt|pygettext)')
a1d16f7
addFilter(r'no-manual-page-for-binary python3?.*-config$')
4332c4f
addFilter(r'no-manual-page-for-binary python3\.\d+d?m?$')
94ba907
94ba907
# missing documentation from subpackages
4332c4f
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
4332c4f
addFilter(r'^python3\d*-debugsource\.[^:]+: (E|W): no-documentation')
42c61b3
42c61b3
# debuginfo
4332c4f
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
4332c4f
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
4332c4f
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc python-3\.\d+(-embed)?\.pc')
4332c4f
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc \[Errno 2\]')
a1d16f7
a1d16f7
# the python-unversioned-command package contains dangling symlinks by design
a1d16f7
addFilter(r'^python-unversioned-command\.[^:]+: (E|W): dangling-relative-symlink '
a1d16f7
          r'(/usr/bin/python \./python3|/usr/share/man/man1/python\.1\S* ./python3\.1\S*)$')
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
553fd27
# Python modules don't need to be linked against libc
9fbe2ee
# Since 3.8 they are no longer linked against libpython3.8.so.1.0
4332c4f
addFilter(r'E: library-not-linked-against-libc /usr/lib(64)?/python3\.\d+/lib-dynload/')
4332c4f
addFilter(r'E: shared-lib-without-dependency-information /usr/lib(64)?/python3\.\d+/lib-dynload/')
553fd27
94ba907
# SPELLING ERRORS
94ba907
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')