lintian: r145 - in trunk: checks debian testset testset/filenames/debian
Author: he
Date: 2004-04-11 00:39:09 +0200 (Sun, 11 Apr 2004)
New Revision: 145
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 *.ali files introduced, warn if their permissions are !=
0444. (Closes: #226879)
Modified: trunk/checks/files
===================================================================
--- trunk/checks/files 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/checks/files 2004-04-10 22:39:09 UTC (rev 145)
@@ -330,6 +330,11 @@
print "E: $pkg $type: use-of-compat-symlink $file\n";
}
+ # ---------------- .ali files (Ada Library Information)
+ if ($file =~ m,^usr/lib/.*\.ali$, && $operm != 0444) {
+ print "W: $pkg $type: bad-permissions-for-ali-file $file\n";
+ }
+
# ---------------- any files
if ($perm !~ m/^d/) {
unless ($type eq 'udeb' or
Modified: trunk/checks/files.desc
===================================================================
--- trunk/checks/files.desc 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/checks/files.desc 2004-04-10 22:39:09 UTC (rev 145)
@@ -472,3 +472,14 @@
Info: Compiled python source files should not be included in the package.
These files should be removed from the package and created at package
installation time in the postinst.
+
+Tag: bad-permissions-for-ali-file
+Type: warning
+Info: Ada Library Information (*.ali) files are required to be read-only
+ (mode 0444) by GNAT.
+ .
+ If at least one user can write the *.ali file, GNAT considers whether
+ or not to recompile the corresponding source file. Such recompilation
+ 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).
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/debian/changelog 2004-04-10 22:39:09 UTC (rev 145)
@@ -53,6 +53,8 @@
+ [FL] Warn about ancient files with the value of
Dinstall::CutOffPastYear from dak CVS as limit.
(Closes: #204801, #218304)
+ + [HE] Check for *.ali files introduced, warn if their permissions are !=
+ 0444. (Closes: #226879)
* 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-10 22:06:41 UTC (rev 144)
+++ trunk/testset/filenames/debian/changelog 2004-04-10 22:39:09 UTC (rev 145)
@@ -1,3 +1,10 @@
+filenames (9) unstable; urgency=low
+
+ * Add a two *.ali files, one with the right permission, one with
+ the more common, but false one.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 11 Apr 2004 00:18:16 +0200
+
filenames (8) unstable; urgency=low
* Add a real ancient file
Modified: trunk/testset/filenames/debian/rules
===================================================================
--- trunk/testset/filenames/debian/rules 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/testset/filenames/debian/rules 2004-04-10 22:39:09 UTC (rev 145)
@@ -48,6 +48,10 @@
touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example
touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
gzip debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
+ install -d debian/tmp/usr/lib/ada/adalib/
+ touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali
+ chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali
+ chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali
touch debian/tmp/usr/share/doc/filenames/Changes
chmod 644 debian/tmp/usr/share/doc/filenames/Changes
gzip -9 debian/tmp/usr/share/doc/filenames/Changes
Modified: trunk/testset/info_tags.filenames
===================================================================
--- trunk/testset/info_tags.filenames 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/testset/info_tags.filenames 2004-04-10 22:39:09 UTC (rev 145)
@@ -94,6 +94,18 @@
N: Package contains a CVS directory. It was most likely installed by
N: accident, since transient CVS data usually doesn't belong in packages.
N:
+W: filenames: bad-permissions-for-ali-file usr/lib/ada/adalib/test.ali
+N:
+N: Ada Library Information (*.ali) files are required to be read-only
+N: (mode 0444) by GNAT.
+N:
+N: If at least one user can write the *.ali file, GNAT considers whether
+N: or not to recompile the corresponding source file. Such recompilation
+N: would fail because normal users don't have write permission on the
+N: files. Moreover, such recompilation would defeat the purpose of
+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
N:
N: Package contains a file which is empty.
Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames 2004-04-10 22:06:41 UTC (rev 144)
+++ trunk/testset/tags.filenames 2004-04-10 22:39:09 UTC (rev 145)
@@ -16,6 +16,7 @@
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: bad-permissions-for-ali-file usr/lib/ada/adalib/test.ali
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: