lintian: r138 - in trunk: checks debian testset testset/filenames/debian
Author: djpig
Date: 2004-04-08 22:39:35 +0200 (Thu, 08 Apr 2004)
New Revision: 138
Modified:
trunk/checks/files
trunk/checks/files.desc
trunk/debian/changelog
trunk/testset/filenames/debian/changelog
trunk/testset/filenames/debian/rules
trunk/testset/info_tags.filenames
trunk/testset/tags.filenames
Log:
Warn about ancient files with the value of
Dinstall::CutOffPastYear from dak CVS as limit.
(Closes: #204801, #218304)
Modified: trunk/checks/files
===================================================================
--- trunk/checks/files 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/checks/files 2004-04-08 20:39:35 UTC (rev 138)
@@ -81,6 +81,11 @@
$operm = perm2oct($perm);
+ my ($year) = ($date =~ /^(\d{4})/);
+ if ( $year <= 1984 ) { # value from dak CVS: Dinstall::PastCutOffYear
+ print "E: $pkg $type: package-contains-ancient-file $file $date\n";
+ }
+
# ---------------- /etc
if ($file =~ m,^etc/,) {
if ($file =~ m,^etc/nntpserver, ) {
Modified: trunk/checks/files.desc
===================================================================
--- trunk/checks/files.desc 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/checks/files.desc 2004-04-08 20:39:35 UTC (rev 138)
@@ -8,6 +8,13 @@
Info: This script checks if a binary package conforms to policy
WRT to files and directories.
+Tag: package-contains-ancient-file
+Type: error
+Info: Your package contains a file that claims to been generated more
+ than 20 years ago. This is most probably an error. Your package will
+ be rejected by the Debian archive scripts if it contains a file with
+ such a timestamp.
+
Tag: old-app-defaults-directory
Type: error
Info: The app-defaults files have moved to /etc/X11/app-defaults/. Files in
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/debian/changelog 2004-04-08 20:39:35 UTC (rev 138)
@@ -34,6 +34,9 @@
+ [HE] Check for gzipped zero byte files. (Closes: #172052)
+ [FL] Don't complain about read-only *.ali files as requested by
Ludovic Brenta. This makes #226879 wishlist again.
+ + [FL] Warn about ancient files with the value of
+ Dinstall::CutOffPastYear from dak CVS as limit.
+ (Closes: #204801, #218304)
* checks/manpages:
+ [FL] Two new errors: 1) if section number of directory and file
differ, 2) if section number of file differs from what is expected
Modified: trunk/testset/filenames/debian/changelog
===================================================================
--- trunk/testset/filenames/debian/changelog 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/testset/filenames/debian/changelog 2004-04-08 20:39:35 UTC (rev 138)
@@ -1,3 +1,9 @@
+filenames (8) unstable; urgency=low
+
+ * Add a real ancient file
+
+ -- Frank Lichtenheld <djpig@debian.org> Thu, 8 Apr 2004 22:22:40 +0200
+
filenames (7) unstable; urgency=low
* Add a dozen symlinks, some correct, some not
Modified: trunk/testset/filenames/debian/rules
===================================================================
--- trunk/testset/filenames/debian/rules 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/testset/filenames/debian/rules 2004-04-08 20:39:35 UTC (rev 138)
@@ -40,6 +40,7 @@
touch debian/tmp/usr/lib/perl5/foo/.packlist
chmod 644 debian/tmp/usr/lib/perl5/foo/.packlist
touch debian/tmp/usr/lib/perl5/foo/bar.pm
+ touch -t 197501010101 debian/tmp/usr/lib/perl5/foo/ancient.pm
chmod 644 debian/tmp/usr/lib/perl5/foo/bar.pm
install -d debian/tmp/usr/share/doc/filenames
install -d debian/tmp/usr/share/doc/filenames/examples
Modified: trunk/testset/info_tags.filenames
===================================================================
--- trunk/testset/info_tags.filenames 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/testset/info_tags.filenames 2004-04-08 20:39:35 UTC (rev 138)
@@ -52,6 +52,7 @@
W: filenames: file-in-unusual-dir files/ .tif
W: filenames: file-in-unusual-dir files/".tif
W: filenames: file-in-unusual-dir files/'\\
+W: filenames: file-in-unusual-dir files/Maelstrom Sound
W: filenames: file-in-unusual-dir files/svn-commit.tmp
W: filenames: svn-commit-file-in-package files/svn-commit.tmp
N:
@@ -59,7 +60,6 @@
N: certainly a left-over from a failed Subversion commit, and does not
N: belong in a Debian package.
N:
-W: filenames: file-in-unusual-dir files/Maelstrom Sound
E: filenames: package-installs-packlist usr/lib/perl5/foo/.packlist
N:
N: Packages built using the perl MakeMaker package will have a file named
@@ -76,6 +76,13 @@
N: Or by telling MakeMaker to use vendor install dirs; consult a recent
N: version of perl policy. Perl 5.6.0-12 or higher supports this.
N:
+E: filenames: package-contains-ancient-file usr/lib/perl5/foo/ancient.pm 1975-01-01
+N:
+N: Your package contains a file that claims to been generated more than
+N: 20 years ago. This is most probably an error. Your package will be
+N: rejected by the Debian archive scripts if it contains a file with such
+N: a timestamp.
+N:
W: filenames: package-contains-svn-control-dir usr/lib/perl5/.svn/
N:
N: Package contains a .svn directory. It was most likely installed by
@@ -162,6 +169,7 @@
N: /usr/share/perl5, not /usr/lib/perl5 unless there is at least one
N: architecture-dependent file in the module.
N:
+W: filenames: package-installs-nonbinary-perl-in-usr-lib-perl5 usr/lib/perl5/foo/ancient.pm
E: filenames: bad-menu-file-name usr/lib/menu/menu
N:
N: The package installs a file /usr/lib/menu/menu, which is already in
@@ -201,7 +209,7 @@
N: -is or -isp flags to dpkg-gencontrol when building the package. The
N: field is optional in binary packages.
N:
-N: Refer to Policy Manual, section 5.6.4 for details.
+N: Refer to Policy Manual, section 5.3 for details.
N:
W: filenames: no-priority-field
N:
@@ -211,5 +219,5 @@
N: -ip or -isp flags to dpkg-gencontrol when building the package. The
N: field is optional in binary packages.
N:
-N: Refer to policy D.2.9 for details.
+N: Refer to Policy Manual, section 5.3 for details.
N:
Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames 2004-04-08 19:57:55 UTC (rev 137)
+++ trunk/testset/tags.filenames 2004-04-08 20:39:35 UTC (rev 138)
@@ -9,10 +9,11 @@
W: filenames: file-in-unusual-dir files/ .tif
W: filenames: file-in-unusual-dir files/".tif
W: filenames: file-in-unusual-dir files/'\\
+W: filenames: file-in-unusual-dir files/Maelstrom Sound
W: filenames: file-in-unusual-dir files/svn-commit.tmp
W: filenames: svn-commit-file-in-package files/svn-commit.tmp
-W: filenames: file-in-unusual-dir files/Maelstrom Sound
E: filenames: package-installs-packlist usr/lib/perl5/foo/.packlist
+E: filenames: package-contains-ancient-file usr/lib/perl5/foo/ancient.pm 1975-01-01
W: filenames: package-contains-svn-control-dir usr/lib/perl5/.svn/
W: filenames: package-contains-CVS-dir usr/lib/perl5/CVS/
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example
@@ -34,6 +35,7 @@
E: filenames: symlink-should-be-absolute usr/lib/filenames/symlink10wrong ../../..
E: filenames: lengthy-symlink usr/share/doc/filenames/version.txt.gz ../filenames/doc/version6.txt.gz
W: filenames: package-installs-nonbinary-perl-in-usr-lib-perl5 usr/lib/perl5/foo/bar.pm
+W: filenames: package-installs-nonbinary-perl-in-usr-lib-perl5 usr/lib/perl5/foo/ancient.pm
E: filenames: bad-menu-file-name usr/lib/menu/menu
E: filenames: postinst-does-not-call-updatemenus usr/lib/menu/menu
E: filenames: postrm-does-not-call-updatemenus usr/lib/menu/menu
Reply to: