summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-05-08 23:11:48 +0000
committersbd <sbd@pkgsrc.org>2012-05-08 23:11:48 +0000
commit3e5f8e188cf8cc82ce9fc56a339dd15912b77064 (patch)
treebb9912b78781b28afdaa15efbf2b01a9cb221ccd
parent1edeb61381c9257dbee002ac585ac119bc7b02bc (diff)
downloadpkgsrc-3e5f8e188cf8cc82ce9fc56a339dd15912b77064.tar.gz
In parse_makefile_vars() inprove the pattern used to remove comments so
that it doesn't match on backslash quoted hash characters. PR/46422 Bump PKGVERSION.
-rw-r--r--pkgtools/lintpkgsrc/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/lintpkgsrc/Makefile b/pkgtools/lintpkgsrc/Makefile
index 9a8d21cde3b..f76e1057d09 100644
--- a/pkgtools/lintpkgsrc/Makefile
+++ b/pkgtools/lintpkgsrc/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2010/02/24 22:04:38 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2012/05/08 23:11:48 sbd Exp $
#
-DISTNAME= lintpkgsrc-4.82
+DISTNAME= lintpkgsrc-4.83
CATEGORIES= pkgtools
MASTER_SITES= # none
DISTFILES= # none
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index f6ae00839b3..eb9aeb4afea 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#! @PERL@
-# $NetBSD: lintpkgsrc.pl,v 1.115 2007/11/22 09:36:38 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.116 2012/05/08 23:11:48 sbd Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -994,7 +994,7 @@ sub parse_makefile_vars($$) {
}
while ( defined( $_ = shift(@data) ) ) {
- s/\s*#.*//;
+ s/\s*[^\\]#.*//;
# Continuation lines
#