diff options
author | rillig <rillig> | 2006-01-11 22:57:10 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-01-11 22:57:10 +0000 |
commit | bd2265657b1415da828f3bd764304a8474327f18 (patch) | |
tree | 803d4bb4e28c526623b3edce0eed79b96ca56a76 /pkgtools | |
parent | 7deddc3660a9a3d03b3bc8442830adfc95d10708 (diff) | |
download | pkgsrc-bd2265657b1415da828f3bd764304a8474327f18.tar.gz |
- In the shell command parser, go to state SCST_CONT instead of SCST_START
after parsing the command line options of ${INSTALL}.
- Don't warn for CFLAGS that reference other make variables.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index d0b82496ce7..70bcebd7628 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -w -# $NetBSD: pkglint.pl,v 1.462 2006/01/11 12:25:19 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.463 2006/01/11 22:57:10 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -1958,7 +1958,7 @@ sub checkline_mk_shelltext($$) { : ($state == SCST_MKDIR) ? SCST_MKDIR : ($state == SCST_INSTALL && $shellword eq "-d") ? SCST_INSTALL_D : ($state == SCST_INSTALL || $state == SCST_INSTALL_D) ? ( - ($shellword =~ qr"^-[ogm]$") ? SCST_START + ($shellword =~ qr"^-[ogm]$") ? SCST_CONT : $state) : ($state == SCST_PAX) ? ( ($shellword eq "-s") ? SCST_PAX_S @@ -2067,6 +2067,9 @@ sub checkline_mk_vartype_basic($$$$$) { } elsif ($value =~ qr"^-.*") { $line->log_warning("Unknown compiler flag \"${value}\"."); + } elsif ($value =~ regex_unresolved) { + $line->log_debug("Unresolved CFLAG: ${value}\n"); + } else { $line->log_warning("Compiler flag \"${value}\" does not start with a dash."); } |