summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-10-15 12:14:14 +0000
committerwiz <wiz@pkgsrc.org>2004-10-15 12:14:14 +0000
commit30ec48ea335b3f1abc0f194e9102d8af53276acb (patch)
tree28be79e98d9f2b127533f0c82872bf4714a38b0e /pkgtools/pkglint/files
parent424b35a2a2a858670f823e2489428740bc240e81 (diff)
downloadpkgsrc-30ec48ea335b3f1abc0f194e9102d8af53276acb.tar.gz
Update to 3.92:
Include each .include'd file only once. Solves the 'Out of memory!' problem for big packages, and avoids repeated warnings about problems coming from bl3 or Makefile.common files. From Roland Illig in private mail.
Diffstat (limited to 'pkgtools/pkglint/files')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 16f73d67a13..7f6cf8284e5 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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.119 2004/09/24 15:33:26 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.120 2004/10/15 12:14:14 wiz Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -295,6 +295,7 @@ my $seen_NO_PKG_REGISTER= false;
my $seen_NO_CHECKSUM = false;
my $seen_USE_PKGLOCALEDIR = false;
my $seen_USE_BUILDLINK3 = false;
+my %seen_Makefile_include = ();
my %predefined;
my $pkgname = "";
@@ -1062,6 +1063,11 @@ sub readmakefile($) {
if ($includefile =~ /\"([^\"]+)\"/) {
$includefile = $1;
}
+ if (exists($seen_Makefile_include{$includefile})) {
+ $contents .= "### pkglint ### skipped $includefile\n";
+ next;
+ }
+ $seen_Makefile_include{$includefile} = true;
if ($includefile =~ /\/mk\/texinfo\.mk/) {
log_error(NO_FILE, NO_LINE_NUMBER, "do not include $includefile");
}