summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-08-21 18:25:27 +0000
committerrillig <rillig@pkgsrc.org>2005-08-21 18:25:27 +0000
commitc4c597dc44f3703ec8aadf47825b4985bc6a62ae (patch)
tree89f9446a50acf21c15b2af32d30717707e5161b0 /pkgtools
parenta68e869480e50ef23703e97dad77b6863adbd386 (diff)
downloadpkgsrc-c4c597dc44f3703ec8aadf47825b4985bc6a62ae.tar.gz
Buildlink files may use the := assignment operator for variable names that
contain "BUILDLINK". All other uses are still flagged.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 2df880a3a9b..84c7e7d90da 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.251 2005/08/21 15:33:45 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.252 2005/08/21 18:25:27 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1323,7 +1323,7 @@ sub checklines_Makefile($) {
if ($text =~ $regex_varassign) {
my ($varname, $op, $value) = ($1, $2, $3);
- if ($op eq ":=") {
+ if ($op eq ":=" && !($line->file =~ qr"buildlink3.mk$" && $varname =~ "BUILDLINK")) {
$line->log_warning("Please use \"=\" instead of \":=\" if possible.");
}
}