summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2006-02-13 15:37:49 +0000
committerrillig <rillig>2006-02-13 15:37:49 +0000
commit850f4001965662c5486c9bf65b3c9cb389ebea86 (patch)
tree1e8d47918317db00ba24be37c963173b354e2d3f /pkgtools
parentf85701cdedce7dcb0b0318812c49a8590b0ab547 (diff)
downloadpkgsrc-850f4001965662c5486c9bf65b3c9cb389ebea86.tar.gz
- Including "options.mk" does not qualify to using common Makefiles, which
would suppress the variable order checking. - Added an additional debugging statement to the variable ordering.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index a4e9723efe4..a0846adcf2a 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.513 2006/02/13 15:20:22 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.514 2006/02/13 15:37:49 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -1974,7 +1974,8 @@ sub readmakefile($$$$) {
if ($includefile =~ qr"(?:^|/)Makefile.common$"
|| ($includefile =~ qr"^(?:\.\./(\.\./[^/]+/)?[^/]+/)?([^/]+)$"
&& (!defined($1) || $1 ne "../mk")
- && $2 ne "buildlink3.mk")) {
+ && $2 ne "buildlink3.mk"
+ && $2 ne "options.mk")) {
$line->log_debug("including ${includefile} sets seen_Makefile_common.");
$seen_Makefile_common = true;
}
@@ -3349,6 +3350,8 @@ sub checklines_package_Makefile_varorder($) {
my $line = $lines->[$lineno];
my $text = $line->text;
+ $line->log_debug("[varorder] section ${sectindex} variable ${varindex}.");
+
if ($next_section) {
$next_section = false;
$sectindex++;