34627d
# THIS FILE SERVES FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
34627d
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
34627d
34627d
# (same file in python3 package served as a great example)
34627d
34627d
34627d
34627d
# Spelling errors
fb9e3c
addFilter(r'spelling-error .* en_US (cnf|mysqld|benchmarking|pam|passwordless|subpackage|libmariadb) ')
34627d
34627d
# Debugsource
34627d
addFilter(r'^mariadb.*debugsource\.[^:]+: (E|W): no-documentation')
34627d
# Debuginfo
34627d
addFilter(r'^mariadb.*debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')
412ec9
# Debug symlinks
412ec9
addFilter(r'dangling-relative-symlink /usr/lib/.build-id')
34627d
34627d
# Testsuite
34627d
#   Some expected tests results are zero-length files
34627d
addFilter(r'(zero-length|pem-certificate) /usr/share/mysql-test/*')
34627d
34627d
# Chroot function
34627d
#   False positive; checked by upstream
34627d
addFilter(r'missing-call-to-chdir-with-chroot')
34627d
34627d
# Missing documentation
34627d
#   I don't think that's on the upstream priority list
34627d
addFilter(r'no-documentation')
fb9e3c
addFilter(r'no-manual-page-for-binary')
34627d
34627d
# Obsoleted not provided
34627d
#   Obsoleting upstream packages, not providing them is expected to not mix them up
34627d
addFilter(r'obsolete-not-provided MySQL')
fb9e3c
#   Provided by mariadb-connector-c
fb9e3c
addFilter(r'obsolete-not-provided mariadb-libs')
fb9e3c
fb9e3c
# Config file without noreplace flag
fb9e3c
#   Don't replace logs that may contain old entries
fb9e3c
addFilter(r'conffile-without-noreplace-flag /var/log/mariadb/mariadb.log')
fb9e3c
fb9e3c
# Log rotation
fb9e3c
#   MariaDB log rotation script is commented out, because it is still not ready for big industry usage.
fb9e3c
#   Let the user decide, if they want to enable it (uncomment it)
fb9e3c
addFilter(r'incoherent-logrotate-file /etc/logrotate.d/mariadb')
fb9e3c
fb9e3c
# Permissions
fb9e3c
# wsrep_sst_common
fb9e3c
#   It contains a parser of arguments for other sst scripts.
fb9e3c
#   It is meant to be sourced, not to be executed alone.
fb9e3c
#   So it correctly does not have shebang nor executable bit.
fb9e3c
addFilter(r'non-executable-in-bin /usr/bin/wsrep_sst_common 644')
fb9e3c
addFilter(r'script-without-shebang /usr/bin/wsrep_sst_common')
fb9e3c
addFilter(r'non-executable-script /usr/bin/wsrep_sst_common 644 None')
fb9e3c
# mysql-scripts-common has a simmilar issue
fb9e3c
addFilter(r'non-executable-script /usr/libexec/mysql-scripts-common 644 /bin/sh')
fb9e3c
# Seems pretty standard to me ...
fb9e3c
addFilter(r'non-standard-dir-perm /var/log/mariadb 750')
412ec9
412ec9
# Unversioned bundles
412ec9
#  RocksDB has so rapid developement, it it not compatible through versions.
412ec9
#  That means we need to stick to the exact verison upstream use.
412ec9
addFilter(r'unversioned-explicit-provides bundled(rocksdb)')
412ec9
412ec9
# Testsuite errors
412ec9
addFilter(r'non-executable-script /usr/share/mysql-test')