diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-09 22:39:56 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-09 22:39:56 +0000 |
commit | 5156a16bdb5c4c1071d73c3c5c5d9d9d9d97759c (patch) | |
tree | 55dc0351cc125cf3049257110111e6a7c6465a45 /pkgtools | |
parent | 85eac801782e0f6591a8f34035b6dbe41f02959c (diff) | |
download | pkgsrc-5156a16bdb5c4c1071d73c3c5c5d9d9d9d97759c.tar.gz |
Added more tracing. Adjusted pkglint to the latest change to the
buildlink3.mk files by jlam.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 7 |
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. |