pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Removed the check for absolute filena...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/96cac58e57c2
branches:  trunk
changeset: 494003:96cac58e57c2
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 18 08:28:06 2005 +0000

description:
Removed the check for absolute filenames, as it has produced too many
false positive warnings. Added a reminder to TODO that a similar check
be added to pkglint. Welcome to 4.15.

diffstat:

 pkgtools/pkglint/Makefile         |   4 ++--
 pkgtools/pkglint/TODO             |   1 +
 pkgtools/pkglint/files/pkglint.pl |  10 ++--------
 3 files changed, 5 insertions(+), 10 deletions(-)

diffs (62 lines):

diff -r a7f57f636cdf -r 96cac58e57c2 pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Wed May 18 06:10:48 2005 +0000
+++ b/pkgtools/pkglint/Makefile Wed May 18 08:28:06 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.235 2005/05/15 02:38:56 rillig Exp $
+# $NetBSD: Makefile,v 1.236 2005/05/18 08:28:06 rillig Exp $
 #
 
-DISTNAME=      pkglint-4.14
+DISTNAME=      pkglint-4.15
 CATEGORIES=    pkgtools devel
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r a7f57f636cdf -r 96cac58e57c2 pkgtools/pkglint/TODO
--- a/pkgtools/pkglint/TODO     Wed May 18 06:10:48 2005 +0000
+++ b/pkgtools/pkglint/TODO     Wed May 18 08:28:06 2005 +0000
@@ -9,3 +9,4 @@
 * check for C/C++ style comments in Makefiles
   rm -f *.o            /* delete unused files */
   .ifdef foo           /* xyz */
+* add checking for absolute paths
diff -r a7f57f636cdf -r 96cac58e57c2 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed May 18 06:10:48 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed May 18 08:28:06 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.151 2005/05/18 03:48:43 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.152 2005/05/18 08:28:06 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by Hubert Feyrer <hubertf%netbsd.org@localhost>,
@@ -362,7 +362,6 @@
 sub checkextra($$);
 sub checkorder($$@);
 sub checkearlier($@);
-sub abspathname($$);
 sub check_predefined_sites($);
 sub category_check();
 sub check_package();
@@ -960,7 +959,7 @@
        open(IN, "< $opt_packagedir/$file") || return false;
        { local $/; $whole = <IN>; }
        close(IN);
-       return abspathname($whole, $file);
+       return true;
 }
 
 sub checklastline($) {
@@ -1428,11 +1427,6 @@
        }
 
        #
-       # whole file: full path name
-       #
-       &abspathname($whole, $file);
-
-       #
        # break the makefile into sections.
        #
        @sections = split(/\n\n+/, $rawwhole);



Home | Main Index | Thread Index | Old Index