[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r159 - in trunk: checks debian testset/scripts/debian



Author: he
Date: 2004-04-14 19:54:55 +0200 (Wed, 14 Apr 2004)
New Revision: 159

Modified:
   trunk/checks/scripts
   trunk/debian/changelog
   trunk/testset/scripts/debian/changelog
   trunk/testset/scripts/debian/rules
Log:
checks/scripts:
  + [HE] Don't warn about files with a shebang line which are not executable
    when they are called *in, as they're probably just templates. (Closes:
    #114740)



Modified: trunk/checks/scripts
===================================================================
--- trunk/checks/scripts	2004-04-14 17:51:21 UTC (rev 158)
+++ trunk/checks/scripts	2004-04-14 17:54:55 UTC (rev 159)
@@ -219,7 +219,8 @@
 	       unless $is_absolute;
     tag_warn("script-not-executable", $filename)
 	unless ($executable{$filename} or
-		$filename =~ m,usr/(lib|share)/.*\.pm,);
+		$filename =~ m,usr/(lib|share)/.*\.pm, or
+		$filename =~ m,\.in$,);
 
     if (exists $valid_interpreters{$base}) {
 	tag_error("wrong-path-for-$base", $filename, "#!$interpreter")

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-04-14 17:51:21 UTC (rev 158)
+++ trunk/debian/changelog	2004-04-14 17:54:55 UTC (rev 159)
@@ -108,6 +108,9 @@
       shouldn't/can't be called directly anymore so add a new
       error and remove it from the list of usual interpreters.
       (Closes: #240806)
+    + [HE] Don't warn about files with a shebang line which are not executable
+      when they are called *in, as they're probably just templates. (Closes:
+      #114740)
   * checks/shared-libs:
     + [HE] Add some new logic to cope with symlinks from /usr/lib to another
       dir to fix false positives of postrm-has-useless-call-to-ldconfig and

Modified: trunk/testset/scripts/debian/changelog
===================================================================
--- trunk/testset/scripts/debian/changelog	2004-04-14 17:51:21 UTC (rev 158)
+++ trunk/testset/scripts/debian/changelog	2004-04-14 17:54:55 UTC (rev 159)
@@ -1,3 +1,10 @@
+scripts (4) unstable; urgency=low
+
+  * Add new example to check that not executable files with a shebang line
+    called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Wed, 14 Apr 2004 19:44:04 +0200
+
 scripts (3) unstable; urgency=low
 
   * Add suidperlfoo and some code in debian/rules to

Modified: trunk/testset/scripts/debian/rules
===================================================================
--- trunk/testset/scripts/debian/rules	2004-04-14 17:51:21 UTC (rev 158)
+++ trunk/testset/scripts/debian/rules	2004-04-14 17:54:55 UTC (rev 159)
@@ -8,6 +8,7 @@
 
 binary-indep:
 	install -d $(tmp)/usr/bin/
+	install -d $(tmp)/usr/share/scripts/
 	install -d $(tmp)/usr/share/doc/scripts/
 	install -d $(tmp)/usr/lib/python2.3/site-packages/
 	install -d $(tmp)/DEBIAN
@@ -18,6 +19,10 @@
 	install -m 4755 perlfoo $(tmp)/usr/bin/suidperlfoo2
 	install -m 4755 suidperlfoo $(tmp)/usr/bin/
 	install -m 755 tkfoo $(tmp)/usr/bin/
+	
+	echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+	chmod 644 $(tmp)/usr/share/scripts/foobar.in
+	
 	touch $(tmp)/usr/lib/python2.3/site-packages/test.pyc
 	cp debian/changelog $(tmp)/usr/share/doc/scripts/changelog
 	gzip -9 $(tmp)/usr/share/doc/scripts/changelog



Reply to: