lintian: r149 - in trunk: checks debian testset testset/filenames/debian
Author: he
Date: 2004-04-12 23:46:54 +0200 (Mon, 12 Apr 2004)
New Revision: 149
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:
checks/files:
+ [HE] Check for README for other distributions/platforms and warn if
they're installed. Based on patch by Jay Bonci. (Closes: #178441)
Modified: trunk/checks/files
===================================================================
--- trunk/checks/files 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/checks/files 2004-04-12 21:46:54 UTC (rev 149)
@@ -196,6 +196,14 @@
if ($file =~ m,^usr/share/doc/$tmp/INSTALL(?:\..+)*$,) {
print "W: $pkg $type: package-contains-upstream-install-documentation $file\n";
}
+
+ # contains a README for another distribution/platform?
+ if ($file =~ m,^usr/share/doc/$tmp/readme\.(apple|aix|atari|be|beos|bsd|bsdi|
+ cygwin|darwin|irix|gentoo|freebsd|mac|macos|macosx|netbsd|
+ openbsd|osf|redhat|sco|sgi|solaris|suse|sun|vms|win32|win9x|
+ windows)(\.txt)?(\.gz)?$,xi){
+ print "W: $pkg $type: package-contains-readme-for-other-platform-or-distro $file\n";
+ }
}
}
# ---------------- /usr/doc
Modified: trunk/checks/files.desc
===================================================================
--- trunk/checks/files.desc 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/checks/files.desc 2004-04-12 21:46:54 UTC (rev 149)
@@ -501,3 +501,11 @@
would fail because normal users don't have write permission on the
files. Moreover, such recompilation would defeat the purpose of
library packages, which provide *.a and *.so libraries to link against).
+
+Tag: package-contains-readme-for-other-platform-or-distro
+Type: warning
+Info: package contains a README.(platform) file that contains instructions
+ specific to a platform or distribution other than Debian and thus can
+ most likely be removed. If it contains information that pertains to
+ Debian, please consider renaming it, or including it in an already
+ existing README file.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/debian/changelog 2004-04-12 21:46:54 UTC (rev 149)
@@ -57,6 +57,8 @@
0444. (Closes: #226879)
+ [HE] New checks for deprecated X11 dirs (/usr/{bin,lib,include}/X11 and
usr/X11R6/*). (Closes: #81004)
+ + [HE] Check for README for other distributions/platforms and warn if
+ they're installed. Based on patch by Jay Bonci. (Closes: #178441)
* checks/manpages:
+ [FL] New checks:
- Section number of directory and file differ
Modified: trunk/testset/filenames/debian/changelog
===================================================================
--- trunk/testset/filenames/debian/changelog 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/testset/filenames/debian/changelog 2004-04-12 21:46:54 UTC (rev 149)
@@ -1,3 +1,9 @@
+filenames (11) unstable; urgency=low
+
+ * Add a README.macos.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Mon, 12 Apr 2004 23:35:24 +0200
+
filenames (10) unstable; urgency=low
* Some new files to check the checks for the use of /usr/*/X11 and
Modified: trunk/testset/filenames/debian/rules
===================================================================
--- trunk/testset/filenames/debian/rules 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/testset/filenames/debian/rules 2004-04-12 21:46:54 UTC (rev 149)
@@ -43,6 +43,7 @@
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
+ touch debian/tmp/usr/share/doc/filenames/README.macosx
install -d debian/tmp/usr/share/doc/filenames/examples
touch debian/tmp/usr/share/doc/filenames/examples/__init__.py
touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example
Modified: trunk/testset/info_tags.filenames
===================================================================
--- trunk/testset/info_tags.filenames 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/testset/info_tags.filenames 2004-04-12 21:46:54 UTC (rev 149)
@@ -120,10 +120,19 @@
N: library packages, which provide *.a and *.so libraries to link
N: against).
N:
-W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example
+W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/README.macosx
N:
N: Package contains a file which is empty.
N:
+W: filenames: package-contains-readme-for-other-platform-or-distro usr/share/doc/filenames/README.macosx
+N:
+N: package contains a README.(platform) file that contains instructions
+N: specific to a platform or distribution other than Debian and thus can
+N: most likely be removed. If it contains information that pertains to
+N: Debian, please consider renaming it, or including it in an already
+N: existing README file.
+N:
+W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example2.gz
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/Changes.gz
E: filenames: package-installs-file-to-usr-something-x11 usr/bin/X11/
Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames 2004-04-11 15:49:33 UTC (rev 148)
+++ trunk/testset/tags.filenames 2004-04-12 21:46:54 UTC (rev 149)
@@ -19,6 +19,8 @@
W: filenames: package-contains-svn-control-dir usr/lib/perl5/.svn/
W: filenames: package-contains-CVS-dir usr/lib/perl5/CVS/
W: filenames: bad-permissions-for-ali-file usr/lib/ada/adalib/test.ali
+W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/README.macosx
+W: filenames: package-contains-readme-for-other-platform-or-distro usr/share/doc/filenames/README.macosx
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/examples/very_interesting_example2.gz
W: filenames: zero-byte-file-in-doc-directory usr/share/doc/filenames/Changes.gz
Reply to: