[SCM] Debian package checker branch, master, updated. 2.3.2-26-gf6d6500
The following commit has been merged in the master branch:
commit 2163d9b12500f44b3137900ffc0e11eb07cba2f0
Author: Raphael Geissert <atomo64@gmail.com>
Date: Sun Jan 31 00:55:10 2010 -0600
Warn about packages containing update-mime-database cache files
* checks/files{,.desc}:
+ [RG] Warn about packages shipping cache files generated by
update-mime-database. Thanks, Jakub Wilk. (Closes: #563685)
diff --git a/checks/files b/checks/files
index a00cb3a..0f3ebd7 100644
--- a/checks/files
+++ b/checks/files
@@ -454,6 +454,10 @@ foreach my $file (sort keys %{$info->index}) {
tag 'package-contains-info-dir-file', $file;
}
}
+ # ---------------- /usr/share/mime
+ elsif ($file =~ m,^usr/share/mime/[^/]+$,) {
+ tag 'package-contains-mime-cache-file', $file;
+ }
# ---------------- /usr/share/linda/overrides
elsif ($file =~ m,^usr/share/linda/overrides/\S+,) {
tag "package-contains-linda-override", $file;
diff --git a/checks/files.desc b/checks/files.desc
index a92173d..b20373c 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -1045,6 +1045,16 @@ Info: This package contains a file named <tt>dir</tt> or <tt>dir.old</tt>,
package since it needs to be generated dynamically based on the installed
info files on the system.
+Tag: package-contains-mime-cache-file
+Severity: serious
+Certainty: certain
+Info: This package contains a cache file generated automatically by
+ update-mime-database when a package containing MIME-Info Database
+ files is installed. Some upstream build systems create them
+ automatically, but they must not be included in a package since they need
+ to be generated dynamically based on the installed MIME-Info Database
+ files on the system.
+
Tag: package-modifies-ld.so-search-path
Severity: important
Certainty: possible
diff --git a/debian/changelog b/debian/changelog
index 7717846..4d19459 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ lintian (2.3.3) UNRELEASED; urgency=low
+ Added:
- missing-dependency-on-phpapi
- obsolete-comments-style-in-php-ini
+ - package-contains-mime-cache-file
- triplet-dir-and-architecture-mismatch
* checks/binaries{,.desc}:
@@ -24,6 +25,8 @@ lintian (2.3.3) UNRELEASED; urgency=low
+ [RG] Warn about packages containing (/usr)/lib/<triplet>
directories for a <triplet> that isn't the one of the
architecture of the package, per Policy 3.8.4 requirement.
+ + [RG] Warn about packages shipping cache files generated by
+ update-mime-database. Thanks, Jakub Wilk. (Closes: #563685)
* checks/init.d:
+ [RG] Warn about init scripts depending on checkroot instead of
$local_fs.
diff --git a/t/tests/files-general/debian/debian/install b/t/tests/files-general/debian/debian/install
index 484eb07..d099884 100644
--- a/t/tests/files-general/debian/debian/install
+++ b/t/tests/files-general/debian/debian/install
@@ -8,3 +8,4 @@ dir usr/share/info
foo.vcproj usr/lib/foo
lintian-lib.conf etc/ld.so.conf.d
php-foo.ini etc/php5/conf.d
+types usr/share/mime
diff --git a/reporting/lintian-dummy.cfg b/t/tests/files-general/debian/types
similarity index 100%
copy from reporting/lintian-dummy.cfg
copy to t/tests/files-general/debian/types
diff --git a/t/tests/files-general/desc b/t/tests/files-general/desc
index 1fa3607..687a475 100644
--- a/t/tests/files-general/desc
+++ b/t/tests/files-general/desc
@@ -13,6 +13,7 @@ Test-For:
obsolete-comments-style-in-php-ini
package-contains-empty-directory
package-contains-info-dir-file
+ package-contains-mime-cache-file
package-modifies-ld.so-search-path
stray-directory-in-manpage-directory
windows-devel-file-in-package
diff --git a/t/tests/files-general/tags b/t/tests/files-general/tags
index 7c54162..9a45bda 100644
--- a/t/tests/files-general/tags
+++ b/t/tests/files-general/tags
@@ -4,6 +4,7 @@ E: files-general: executable-manpage usr/share/man/man5/foo.5.gz
E: files-general: global-data-in-games-directory usr/share/games/icons/hicolor/22x22/lintian-22x22.png
E: files-general: non-conf-file-in-modprobe.d etc/modprobe.d/--lzma
E: files-general: package-contains-info-dir-file usr/share/info/dir.gz
+E: files-general: package-contains-mime-cache-file usr/share/mime/types
E: files-general: package-modifies-ld.so-search-path etc/ld.so.conf.d/lintian-lib.conf
E: files-general: stray-directory-in-manpage-directory usr/share/man/man1/random/
I: files-general: duplicated-compressed-file usr/share/doc/lintian/lintian-16x16.png.gz
--
Debian package checker
Reply to: