2008-04-21 18:36:30 +02:00
|
|
|
# -*- python -*-
|
|
|
|
# Configuration for the rpmlint utility.
|
|
|
|
# Loaded before ~/.rpmlintrc
|
|
|
|
# $Id: config,v 1.39 2003/12/22 11:20:55 flepied Exp $
|
|
|
|
|
|
|
|
# This line is mandatory to access the configuration functions
|
|
|
|
from Config import *
|
|
|
|
|
|
|
|
# Additionale path to look for checks
|
|
|
|
|
|
|
|
#addCheckDir("~/mandrake/rpmlint")
|
|
|
|
|
|
|
|
# Configure the checks if you don't want the default ones
|
|
|
|
|
|
|
|
allChecks()
|
|
|
|
|
|
|
|
addCheck("CheckBuildRoot")
|
|
|
|
addCheck("CheckExecDocs")
|
|
|
|
addCheck("CheckPkgConfig")
|
|
|
|
addCheck("CheckCommonFiles")
|
|
|
|
addCheck("CheckInitScripts")
|
|
|
|
addCheck("DuplicatesCheck")
|
|
|
|
addCheck("LibraryPolicyCheck")
|
|
|
|
addCheck("CheckIconSizes")
|
|
|
|
#addCheck("CheckStaticLibraries")
|
|
|
|
addCheck("BrandingPolicyCheck")
|
2008-11-01 23:14:12 +01:00
|
|
|
addCheck("CheckSUIDPermissions")
|
2008-12-15 15:05:00 +01:00
|
|
|
# polkit-default-privs would need to be installed always
|
|
|
|
#addCheck("CheckPolkitPrivs")
|
|
|
|
addCheck("CheckDBUSServices")
|
2009-01-23 23:37:26 +01:00
|
|
|
addCheck("CheckDBusPolicy")
|
2009-01-09 01:55:09 +01:00
|
|
|
addCheck("CheckFilelist")
|
2008-04-21 18:36:30 +02:00
|
|
|
|
|
|
|
# stuff autobuild takes care about
|
|
|
|
addFilter(".*invalid-version.*")
|
|
|
|
addFilter(".*invalid-packager.*")
|
|
|
|
addFilter(".*not-standard-release-extension.*")
|
2010-01-27 18:18:50 +01:00
|
|
|
#addFilter(".*non-standard-group.*")
|
2008-04-21 18:36:30 +02:00
|
|
|
addFilter(".*invalid-buildhost.*")
|
|
|
|
addFilter(".*executable-in-library-package.*")
|
|
|
|
addFilter(".*non-versioned-file-in-library-package.*")
|
|
|
|
addFilter(".*incoherent-version-in-name.*")
|
|
|
|
addFilter(".*invalid-vendor.*")
|
|
|
|
addFilter(".*invalid-distribution.*")
|
|
|
|
|
|
|
|
# Configuration options used by the checks
|
|
|
|
|
|
|
|
#setOption("Vendor", "MySelf")
|
|
|
|
#setOption("Distribution", "MyDistrib")
|
|
|
|
setOption("UseBzip2", 0)
|
|
|
|
setOption("UseUTF8", 1)
|
|
|
|
#setOption("ReleaseExtension", None)
|
|
|
|
#setOption("ValidGroups", ("Group1", "Group2"))
|
|
|
|
#setOption("KernelModuleRPMsOK", 0)
|
|
|
|
|
|
|
|
@STDGROUPS@
|
|
|
|
@STDUSERS@
|
|
|
|
|
|
|
|
setOption('DanglingSymlinkExceptions',
|
|
|
|
(['/usr/share/doc/licenses/', 'licenses'],
|
|
|
|
['consolehelper$', 'usermode-consoleonly'],
|
|
|
|
))
|
|
|
|
|
|
|
|
# Output filters
|
|
|
|
addFilter(".*spurious-bracket-in-.*")
|
|
|
|
addFilter(".*one-line-command-in-.*")
|
|
|
|
addFilter(" dir-or-file-in-opt")
|
|
|
|
addFilter("incoherent-version-in-changelog")
|
|
|
|
addFilter(" no-signature")
|
|
|
|
addFilter(" without-chkconfig")
|
|
|
|
addFilter("unstripped-binary-or-object.*\.ko")
|
|
|
|
addFilter(" no-chkconfig")
|
|
|
|
addFilter(" subsys-not-used")
|
|
|
|
addFilter(" dangerous-command.*")
|
|
|
|
addFilter(" setuid-binary.*")
|
|
|
|
addFilter(".*FSSTND-dir-in-var /var/adm/.*")
|
|
|
|
addFilter("no-url-tag")
|
|
|
|
addFilter("subdir-in-bin /sbin/conf.d/")
|
|
|
|
addFilter(" invalid-license")
|
|
|
|
addFilter(".* nss_db non-standard-dir-in-var db")
|
|
|
|
addFilter("non-standard-dir-in-usr openwin")
|
|
|
|
addFilter("ibcs2 non-standard-dir-in-usr i486-sysv4")
|
|
|
|
addFilter("shlibs5 non-standard-dir-in-usr i486-linux-libc5")
|
|
|
|
addFilter("filesystem dir-or-file")
|
|
|
|
addFilter("filesystem hidden-")
|
|
|
|
addFilter("explicit-lib-dependency libtool")
|
|
|
|
|
|
|
|
|
|
|
|
# suppress any errors about internal packages
|
|
|
|
addFilter("^qa\S+: [EWI]:")
|
|
|
|
addFilter("^\S*(?:INTERNAL|internal)\.\S+: [EWI]:")
|
|
|
|
|
|
|
|
|
|
|
|
# exceptions for devel-files
|
|
|
|
addFilter("devel-file-in-non-devel-package.*/boot/vmlinuz-.*autoconf.h")
|
|
|
|
addFilter("devel-file-in-non-devel-package.*/usr/src/linux-")
|
|
|
|
addFilter("devel-file-in-non-devel-package.*/usr/share/systemtap")
|
|
|
|
addFilter("kde4-kapptemplate\.\S+:.*devel-file-in-non-devel-package")
|
|
|
|
addFilter("kdesdk3\.\S+:.*devel-file-in-non-devel-package")
|
|
|
|
addFilter("-(?:examples|doc)\.\S+: \w: devel-file-in-non-devel-package")
|
|
|
|
addFilter("java\S+-demo\.\S+: \w: devel-file-in-non-devel-package")
|
|
|
|
addFilter('avr-libc\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('dietlibc\.\S+ \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('cross-.*devel-file-in-non-devel-package')
|
|
|
|
addFilter('cmake.*devel-file-in-non-devel-package')
|
|
|
|
addFilter('gcc\d\d.*devel-file-in-non-devel-package')
|
|
|
|
addFilter('OpenOffice_org-sdk\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('wnn-sdk\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('ocaml\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('xorg-x11-server-sdk\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter('linux-kernel-headers\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
addFilter(' devel-file-in-non-devel-package.*-config')
|
|
|
|
addFilter('libtool\.\S+: \w: devel-file-in-non-devel-package')
|
|
|
|
|
|
|
|
addFilter('update-desktop-files\.\S+: \w: untranslated-desktop-file')
|
|
|
|
addFilter("sdb.* dangling-relative-symlink /usr/share/doc/sdb/.*/gifs ../gifs")
|
|
|
|
addFilter("kernel-modules-not-in-kernel-packages")
|
2010-01-27 18:18:50 +01:00
|
|
|
# SUSE kmp's don't need manual depmod (bnc#456048)
|
|
|
|
addFilter("module-without-depmod-postin")
|
|
|
|
addFilter("postin-with-wrong-depmod")
|
|
|
|
addFilter("module-without-depmod-postun")
|
|
|
|
addFilter("postun-with-wrong-depmod")
|
|
|
|
#
|
2008-04-21 18:36:30 +02:00
|
|
|
addFilter("configure-without-libdir-spec")
|
|
|
|
addFilter("conffile-without-noreplace-flag /etc/init.d")
|
|
|
|
addFilter("use-of-RPM_SOURCE_DIR")
|
|
|
|
addFilter(" info info-dir-file /usr/share/info/dir")
|
|
|
|
addFilter("use-tmp-in-")
|
|
|
|
addFilter("symlink-contains-up-and-down-segments /var/lib/named")
|
|
|
|
addFilter("no-ldconfig-symlink")
|
|
|
|
addFilter("aaa_base\.\S+: \w: use-of-home-in-%post")
|
|
|
|
addFilter("description-line-too-long")
|
|
|
|
addFilter("hardcoded-library-path")
|
|
|
|
# addFilter("incoherent-subsys")
|
|
|
|
# doesn't seem to make sense
|
|
|
|
addFilter("invalid-ldconfig-symlink")
|
|
|
|
addFilter("invalid-soname")
|
|
|
|
addFilter("library-not-linked-against-libc")
|
|
|
|
addFilter("only-non-binary-in-usr-lib")
|
|
|
|
addFilter("outside-libdir-files")
|
|
|
|
# we want these files
|
|
|
|
addFilter(" perl-temp-file ")
|
|
|
|
addFilter(" hidden-file-or-dir .*/\.packlist")
|
|
|
|
addFilter(" hidden-file-or-dir .*/\.directory")
|
|
|
|
addFilter("perl-.*no-binary")
|
|
|
|
addFilter(" no-major-in-name ")
|
|
|
|
# we check for that already
|
|
|
|
addFilter("dangling-relative-symlink")
|
|
|
|
addFilter(" lib-package-without-%mklibname")
|
|
|
|
addFilter(" requires-on-release")
|
|
|
|
addFilter(" non-executable-script /etc/profile.d/")
|
|
|
|
addFilter(" non-executable-script /var/adm/fillup-templates/")
|
|
|
|
addFilter(" init-script-name-with-dot ")
|
|
|
|
addFilter('.* statically-linked-binary /sbin/ldconfig')
|
|
|
|
addFilter('.* statically-linked-binary /sbin/init')
|
|
|
|
addFilter('ldconfig-post.*/ddiwrapper/wine/')
|
|
|
|
addFilter('glibc\.\S+: \w: statically-linked-binary /usr/sbin/glibc_post_upgrade')
|
|
|
|
addFilter(" symlink-should-be-relative ")
|
|
|
|
addFilter(" binary-or-shlib-defines-rpath .*ORIGIN")
|
|
|
|
addFilter("libzypp.*shlib-policy-name-error.*libzypp")
|
|
|
|
|
|
|
|
# stuff that is currently too noisy, but might become relevant in the future
|
|
|
|
addFilter(" file-not-utf8")
|
|
|
|
addFilter(" tag-not-utf8")
|
|
|
|
addFilter(" setup-not-quiet")
|
|
|
|
addFilter(" no-cleaning-of-buildroot ")
|
|
|
|
addFilter(" mixed-use-of-spaces-and-tabs ")
|
|
|
|
addFilter(" prereq-use ")
|
|
|
|
addFilter(" unversioned-explicit-provides ")
|
|
|
|
addFilter(" unversioned-explicit-obsoletes ")
|
|
|
|
addFilter(" no-%clean-section")
|
|
|
|
addFilter(" service-default-enabled ")
|
|
|
|
addFilter(" non-standard-dir-perm ")
|
|
|
|
addFilter(" conffile-without-noreplace-flag ")
|
|
|
|
addFilter(" non-standard-executable-perm ")
|
|
|
|
addFilter(" jar-not-indexed ")
|
|
|
|
addFilter(" non-conffile-in-etc ")
|
|
|
|
addFilter(" uncompressed-zip ")
|
|
|
|
addFilter(" %ifarch-applied-patch ")
|
|
|
|
addFilter(" read-error ")
|
|
|
|
addFilter(" init-script-without-chkconfig-postin ")
|
|
|
|
addFilter(" init-script-without-chkconfig-preun ")
|
|
|
|
addFilter(" postin-without-chkconfig ")
|
|
|
|
addFilter(" preun-without-chkconfig ")
|
|
|
|
addFilter(" no-dependency-on locales")
|
|
|
|
addFilter(" incoherent-version-in-name")
|
|
|
|
addFilter(" binary-or-shlib-defines-rpath")
|
|
|
|
addFilter(" executable-marked-as-config-file")
|
|
|
|
addFilter(" log-files-without-logrotate")
|
|
|
|
addFilter(" hardcoded-prefix-tag")
|
|
|
|
addFilter(" no-documentation")
|
|
|
|
addFilter(" multiple-specfiles")
|
|
|
|
addFilter(" apache2-naming-policy-not-applied")
|
|
|
|
addFilter(" no-default-runlevel ")
|
|
|
|
addFilter(" setgid-binary ")
|
|
|
|
addFilter(" non-standard-gid ")
|
|
|
|
addFilter(" non-readable ")
|
|
|
|
addFilter(" manpage-not-bzipped ")
|
|
|
|
addFilter(" postin-without-ghost-file-creation ")
|
|
|
|
# bug 287090
|
|
|
|
addFilter(" file-in-usr-marked-as-conffile")
|
|
|
|
addFilter(" non-remote_fs-dependency.*/boot")
|
|
|
|
|
|
|
|
# exceptions for non-devel-buildrequires
|
|
|
|
addFilter(" non-devel-buildrequires apache2-mod_perl")
|
|
|
|
addFilter(" non-devel-buildrequires ksh")
|
|
|
|
addFilter(" non-devel-buildrequires perl")
|
|
|
|
addFilter(" non-devel-buildrequires php5")
|
|
|
|
addFilter(" non-devel-buildrequires postfix")
|
|
|
|
addFilter(" non-devel-buildrequires python")
|
|
|
|
addFilter(" non-devel-buildrequires ruby")
|
|
|
|
addFilter(" non-devel-buildrequires valgrind")
|
|
|
|
addFilter(" non-devel-buildrequires yasm")
|
|
|
|
addFilter(" non-devel-buildrequires tcl")
|
|
|
|
|
|
|
|
addFilter("beagle-index\.\S+: \w: (non-devel|unnecessary)-buildrequires")
|
|
|
|
addFilter("collect-desktop-files\.\S+: \w: (non-devel|unnecessary)-buildrequires")
|
|
|
|
addFilter("installation-images\.\S+: \w: (non-devel|unnecessary)-buildrequires")
|
|
|
|
|
|
|
|
# suboptimal library packaging
|
|
|
|
addFilter(" non-devel-buildrequires graphviz")
|
|
|
|
addFilter(" non-devel-buildrequires ImageMagick")
|
|
|
|
addFilter(" non-devel-buildrequires aspell")
|
|
|
|
addFilter(" non-devel-buildrequires autotrace")
|
|
|
|
addFilter(" non-devel-buildrequires gettext")
|
|
|
|
addFilter(" non-devel-buildrequires devhelp")
|
|
|
|
addFilter(" non-devel-buildrequires libxml2")
|
|
|
|
addFilter(" non-devel-buildrequires libxslt")
|
|
|
|
addFilter(" non-devel-buildrequires recode")
|
|
|
|
|
|
|
|
|
|
|
|
# many places have shorter paths
|
|
|
|
addFilter(" non-coherent-filename ")
|
|
|
|
|
|
|
|
# mandriva specific stuff that we don't want
|
|
|
|
addFilter(" invalid-build-requires ")
|
|
|
|
addFilter(" no-provides ")
|
|
|
|
|
|
|
|
# config ends here
|
|
|
|
|