#28 Add rpmlintrc file
Merged 6 years ago by churchyard. Opened 6 years ago by churchyard.
rpms/ churchyard/python3 rpmlintrc  into  master

file added
+65
@@ -0,0 +1,65 @@ 

+ # KNOWN BUGS:

+ # https://bugzilla.redhat.com/show_bug.cgi?id=1489816

This has actually been fixed on python3, is it required?

Not fixed in python3-3.6.4-17.fc29

+ addFilter(r'crypto-policy-non-compliance-openssl')

+ 

+ 

+ # TESTS:

+ addFilter(r'(zero-length|pem-certificate|uncompressed-zip) /usr/lib(64)?/python3.\d/test')

+ 

+ 

+ # OTHER DELIBERATES:

+ # chroot function

+ addFilter(r'missing-call-to-chdir-with-chroot')

+ 

+ # intentionally unversioned and selfobsoleted

+ addFilter(r'unversioned-explicit-obsoletes python')

+ addFilter(r'self-obsoletion python3\d obsoletes python3\d')

+ 

+ # intentionally hardcoded

+ addFilter(r'hardcoded-library-path in %{_prefix}/lib/(debug/%{_libdir}|python%{pybasever})')

+ 

+ # we have non binary stuff, python files

+ addFilter(r'only-non-binary-in-usr-lib')

right. let's change that in python37 if it really bothers us.

+ 

+ # some devel files that are deliberately needed

+ addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\dm/pyconfig-(32|64)\.h')

+ addFilter(r'devel-file-in-non-devel-package /usr/lib64/python3\.\d/distutils/tests/xxmodule\.c')

+ 

+ 

+ # SORRY, NOT SORRY:

+ # manual pages

+ addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3-debug|pathfix\.py)')

+ addFilter(r'no-manual-page-for-binary python3.*-config$')

+ addFilter(r'no-manual-page-for-binary python3.\dd?m$')

+ 

+ # missing documentation from subpackages

+ addFilter(r'^python3\d?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documentation')

+ 

+ # platform python is obsoleted, but not provided

+ addFilter(r'obsolete-not-provided platform-python')

+ 

+ 

+ # RPMLINT IMPERFECTIONS:

+ # ifarch applied patches are OK

+ # https://fedoraproject.org/wiki/Packaging:Guidelines#Architecture_Support

+ addFilter(r'%ifarch-applied-patch')

+ 

+ # debugsource

+ addFilter(r'^python3\d?-debugsource\.[^:]+: (E|W): no-documentation')

+ 

+ # debuginfo

+ addFilter(r'^python3\d?-debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')

+ 

+ # this is OK for F28+

+ addFilter(r'library-without-ldconfig-post')

+ 

+ # debug package contains devel and non-devel files

+ addFilter(r'python3\d?-debug.[^:]+: (E|W): (non-)?devel-file-in-(non-)?devel-package')

+ 

+ # this goes to other subpackage, hence not actually dangling, the read error is bogus

+ addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc python-3\.\d\.pc')

+ addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc \[Errno 2\]')

+ 

+ 

+ # SPELLING ERRORS

+ addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')

file modified
+2 -2
@@ -884,9 +884,9 @@ 

  #include <bits/wordsize.h>

  

  #if __WORDSIZE == 32

- #include "%{_pyconfig32_h}"

+ #include "%%{_pyconfig32_h}"

  #elif __WORDSIZE == 64

- #include "%{_pyconfig64_h}"

+ #include "%%{_pyconfig64_h}"

  #else

  #error "Unknown word size"

  #endif

This has actually been fixed on python3, is it required?

Not fixed in python3-3.6.4-17.fc29

rebased onto 90512a5

6 years ago

I'd like to push Fix the py_byte_compile macro to work on Python 2 and Add -n option for pathfix.py as updates. While we do that, it would be very convenient to have this PR merged as well.

Just one more nitpick. Go ahead and merge.

right. let's change that in python37 if it really bothers us.

Pull-Request has been merged by churchyard

6 years ago