Blame python37.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:
3dcd46f
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')
3dcd46f
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
3dcd46f
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
3dcd46f
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\d+m?/pyconfig-(32|64)\.h')
3dcd46f
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
2e4dc60
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3?-debug|pathfix|msgfmt|pygettext)')
2e4dc60
addFilter(r'no-manual-page-for-binary python3?.*-config$')
3dcd46f
addFilter(r'no-manual-page-for-binary python3\.\d+d?m?$')
94ba907
94ba907
# missing documentation from subpackages
3dcd46f
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
3dcd46f
addFilter(r'^python3\d*-debugsource\.[^:]+: (E|W): no-documentation')
42c61b3
42c61b3
# debuginfo
3dcd46f
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
3dcd46f
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
3dcd46f
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc python-3\.\d+(-embed)?\.pc')
3dcd46f
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\d+dm?(-embed)?\.pc \[Errno 2\]')
2e4dc60
2e4dc60
# the python-unversioned-command package contains dangling symlinks by design
2e4dc60
addFilter(r'^python-unversioned-command\.[^:]+: (E|W): dangling-relative-symlink '
2e4dc60
          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
a6496be
# Python modules don't need to be linked against libc
a6496be
addFilter(r'E: library-not-linked-against-libc /usr/lib(64)?/python3.\d/lib-dynload/')
a6496be
94ba907
# SPELLING ERRORS
94ba907
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')