2021-03-23 15:31:10 +00:00
|
|
|
# Keep matching patterns enough not to hide unintended errors and warnings.
|
2021-03-23 15:31:10 +00:00
|
|
|
|
|
|
|
# There is no way to implement this with `%{SOURCE0}` without `%{_sourcedir}`.
|
|
|
|
# The order in the .spec file could be possibly different.
|
2021-05-12 12:52:37 +00:00
|
|
|
addFilter(r'ruby\.(spec|src):20: E: use-of-RPM_SOURCE_DIR$')
|
2021-03-23 15:31:10 +00:00
|
|
|
|
|
|
|
# The used version is not obvious.
|
2021-05-12 12:52:37 +00:00
|
|
|
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-build_assert\)$')
|
|
|
|
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-check_type\)$')
|
|
|
|
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-container_of\)$')
|
|
|
|
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-list\)$')
|
2021-05-14 15:16:38 +00:00
|
|
|
|
|
|
|
# The template files do not have to have executable bits.
|
|
|
|
addFilter(r'^rubygem-bundler\.noarch: E: non-executable-script /usr/share/gems/gems/bundler-[\d\.]+/lib/bundler/templates/[\w/\.]+ 644 /usr/bin/env ')
|
2021-04-28 18:53:04 +00:00
|
|
|
|
|
|
|
# The bundled gem files permissions are overridden as 644 by `make install`.
|
|
|
|
# https://bugs.ruby-lang.org/issues/17840
|
2022-01-14 18:20:05 +00:00
|
|
|
# https://github.com/rubygems/rubygems/issues/5255
|
|
|
|
# https://github.com/ruby/debug/pull/481
|
|
|
|
# https://github.com/ruby/net-ftp/pull/12
|
|
|
|
# https://github.com/ruby/net-imap/pull/53
|
|
|
|
# https://github.com/ruby/net-pop/pull/7
|
|
|
|
# https://github.com/ruby/prime/pull/16
|
|
|
|
addFilter(r'^.*: E: non-executable-script /usr/share/gems/gems/(debug|net-(ftp|imap|pop)|prime)-[\d\.]+/bin/\w+ 644 ')
|
|
|
|
|
|
|
|
# Ruby provides API to set the cipher list.
|
|
|
|
addFilter(r'^ruby-libs\.\w+: W: crypto-policy-non-compliance-openssl /usr/lib(64)?/ruby/openssl.so SSL_CTX_set_cipher_list$')
|
|
|
|
|
|
|
|
# `gethostbyname` is part of deprecated Ruby API. There is also request to drop the API altogether:
|
|
|
|
# https://bugs.ruby-lang.org/issues/13097
|
|
|
|
# https://bugs.ruby-lang.org/issues/17944
|
|
|
|
addFilter(r'^ruby-libs\.\w+: W: binary-or-shlib-calls-gethostbyname /usr/lib(64)?/ruby/socket.so$')
|
2021-05-14 16:00:25 +00:00
|
|
|
|
|
|
|
# Nothing referred and no dependency information should be no problem.
|
|
|
|
# https://bugs.ruby-lang.org/issues/16558#note-2
|
2022-01-14 18:20:05 +00:00
|
|
|
addFilter(r'^ruby-libs\.\w+: E: shared-library-without-dependency-information /usr/lib(64)?/ruby/enc/gb2312.so$')
|
|
|
|
|
|
|
|
# These are Ruby plugins, where Ruby always load glibc prior the library.
|
|
|
|
addFilter(r'^ruby-libs\.\w+: W: library-not-linked-against-libc /usr/lib(64)?/ruby/.*.so$')
|
|
|
|
|
|
|
|
# Rake ships some examples.
|
|
|
|
addFilter(r'^rubygem-rake.noarch: W: devel-file-in-non-devel-package /usr/share/gems/gems/rake-[\d\.]+/doc/example/\w+.c$')
|
|
|
|
|
|
|
|
# Some executables don't have their manual pages. Is it worth of use help2man?
|
|
|
|
addFilter(r'^.+: W: no-manual-page-for-binary (bundler|gem|rbs|rdbg|rdoc|ruby-mri|typeprof)$')
|
|
|
|
|
|
|
|
# Default gems does not come with any documentation.
|
|
|
|
addFilter(r'^rubygem-(bigdecimal|io-console|json|psych)\.\w+: W: no-documentation$')
|
|
|
|
|
|
|
|
# rubygems-devel ships only RPM macros and generators. Their placement is given
|
|
|
|
# by RPM and can't be modified.
|
|
|
|
addFilter(r'rubygems-devel.noarch: W: only-non-binary-in-usr-lib$')
|
2022-03-14 17:06:54 +00:00
|
|
|
|
|
|
|
# The empty gem.build_complete file is false positive. This error is gone in rpmlint 2.0+.
|
|
|
|
# https://github.com/rpm-software-management/rpmlint/commit/e34ce874f27d733628f51c9884ac951af072bed2
|
|
|
|
addFilter(r'^ruby(gem)?-(bigdecimal|bundled-gems|io-console|json|psych|rbs)\.\w+: E: zero-length /usr/lib(64)?/gems/ruby/.*/gem.build_complete')
|