pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - In the shell command parser, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2a8851cbbe09
branches: trunk
changeset: 506102:2a8851cbbe09
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Jan 11 22:57:10 2006 +0000
description:
- 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:
pkgtools/pkglint/files/pkglint.pl | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 15b563272b09 -r 2a8851cbbe09 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Jan 11 22:50:21 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Jan 11 22:57:10 2006 +0000
@@ -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 @@
: ($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 @@
} 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.");
}
Home |
Main Index |
Thread Index |
Old Index