summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-09 22:39:56 +0000
committerrillig <rillig>2006-07-09 22:39:56 +0000
commit207186a9b4cd9727eb3d75683b318923dfe62fbc (patch)
tree55dc0351cc125cf3049257110111e6a7c6465a45 /pkgtools/pkglint/files/pkglint.pl
parent95a3199099f20c357259693ecb31dd9ff37c36bd (diff)
downloadpkgsrc-207186a9b4cd9727eb3d75683b318923dfe62fbc.tar.gz
Added more tracing. Adjusted pkglint to the latest change to the
buildlink3.mk files by jlam.
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 145f6c68ba9..8182cfc6f92 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.639 2006/07/07 09:45:07 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.640 2006/07/09 22:39:56 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -5016,6 +5016,8 @@ sub checkline_mk_varassign($$$$$) {
my $varbase = varname_base($varname);
my $varcanon = varname_canon($varname);
+ $opt_debug_trace and $line->log_debug("checkline_mk_varassign($varname, $op, $value)");
+
checkline_mk_vardef($line, $varname, $op);
if ($op eq "?=" && defined($seen_bsd_prefs_mk) && !$seen_bsd_prefs_mk) {
@@ -5303,6 +5305,8 @@ sub checklines_mk($) {
my ($allowed_targets) = ({});
my ($substcontext) = PkgLint::SubstContext->new();
+ $opt_debug_trace and log_debug((@{$lines} != 0) ? $lines->[0]->fname : NO_FILE, NO_LINES, "checklines_mk()");
+
# Define global variables for the Makefile context.
$mkctx_indentations = [0];
$mkctx_target = undef;
@@ -5648,6 +5652,7 @@ sub checkfile_buildlink3_mk($) {
return;
}
}
+ expect_text($lines, \$lineno, "BUILDLINK_ORDER:=\t\${BUILDLINK_ORDER} \${BUILDLINK_DEPTH}${bl_pkgbase}");
expect_empty_line($lines, \$lineno);
# Fourth paragraph: Package information.