summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorschmonz <schmonz>2014-12-06 22:21:30 +0000
committerschmonz <schmonz>2014-12-06 22:21:30 +0000
commit84df18543f99045c2c0ba70d1344b186fffd7edd (patch)
tree26493bee7851acf79a6e36dd9326551eab6ae77f /pkgtools
parentb084602d50a15f6e14a1977f396852abaf1fb380 (diff)
downloadpkgsrc-84df18543f99045c2c0ba70d1344b186fffd7edd.tar.gz
Don't complain about exact (non-range, non-wildcard) dependencies.
Now that mail/qmail-run "looks fine", replace it with another of my errant packages as a test case. Bump version.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
-rw-r--r--pkgtools/pkglint/files/pkglint.t13
3 files changed, 9 insertions, 12 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index bc5e1ef059f..055919380d7 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.454 2014/11/23 15:30:07 mef Exp $
+# $NetBSD: Makefile,v 1.455 2014/12/06 22:21:30 schmonz Exp $
# Note: if you update the version number, please have a look at the
# changes between the CVS tag "pkglint_current" and HEAD.
# After updating, please re-set the CVS tag to HEAD.
-PKGNAME= pkglint-4.148
+PKGNAME= pkglint-4.149
CATEGORIES= pkgtools
OWNER= wiz@NetBSD.org
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 0a8eadab680..6e5ce9fcae0 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.873 2014/10/09 13:54:47 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.874 2014/12/06 22:21:30 schmonz Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -3930,7 +3930,7 @@ sub checkline_mk_vartype_basic($$$$$$$$) {
},
Dependency => sub {
- if ($value =~ m"^(${regex_pkgbase})(<|=|>|<=|>=|!=)(${regex_pkgversion})$") {
+ if ($value =~ m"^(${regex_pkgbase})(<|=|>|<=|>=|!=|-)(${regex_pkgversion})$") {
my ($depbase, $depop, $depversion) = ($1, $2, $3);
} elsif ($value =~ m"^(${regex_pkgbase})-(?:\[(.*)\]\*|(\d+(?:\.\d+)*(?:\.\*)?)(\{,nb\*\}|\*|)|(.*))?$") {
diff --git a/pkgtools/pkglint/files/pkglint.t b/pkgtools/pkglint/files/pkglint.t
index fb20587c308..856f55947d6 100644
--- a/pkgtools/pkglint/files/pkglint.t
+++ b/pkgtools/pkglint/files/pkglint.t
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.t,v 1.12 2014/11/24 16:31:34 schmonz Exp $
+# $NetBSD: pkglint.t,v 1.13 2014/12/06 22:21:30 schmonz Exp $
#
require 'pkglint.pl'; # so we can test its internals
@@ -148,14 +148,11 @@ sub test_pkglint_main {
sub test_lint_some_reference_packages {
my %reference_packages = (
- 'mail/qmail-run' => {
+ 'devel/syncdir' => {
stdout_re => <<EOT,
-^WARN: .*distinfo: File not found\. Please run '.*make makesum'\.
-ERROR: .*Makefile: Each package must define its LICENSE\.
-ERROR: .*Makefile:[0-9]+: Unknown dependency pattern \"qmail-qfilter-1\.5nb1\"\.
-WARN: .*Makefile:[0-9]+: The LOCALBASE variable should not be used by packages\.
-WARN: .*Makefile:[0-9]+: The LOCALBASE variable should not be used by packages\.
-2 errors and 3 warnings found\..*\$
+^ERROR: .*Makefile: Each package must define its LICENSE\.
+ERROR: .*patches/patch-aa:[0-9]+: Comment expected\.
+2 errors and 0 warnings found\..*\$
EOT
stderr_re => undef,
exitcode => 1,