summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-11 22:57:10 +0000
committerrillig <rillig@pkgsrc.org>2006-01-11 22:57:10 +0000
commitfb188361c044989f69bb24dc65a7a9dd2ec5bf26 (patch)
tree803d4bb4e28c526623b3edce0eed79b96ca56a76 /pkgtools
parentf100c2fd07eaadb0443d28dbc913d414c0882da9 (diff)
downloadpkgsrc-fb188361c044989f69bb24dc65a7a9dd2ec5bf26.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.pl7
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.");
}