summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2006-02-12 12:10:13 +0000
committerrillig <rillig>2006-02-12 12:10:13 +0000
commit87116f5e6704d6e676c91e83c94200275e7d2dd4 (patch)
tree307054739c434a5ea730d26e8cc53937166b29cf /pkgtools
parent98a4eecfb2b11d5a8f8326aa3a97ee252b33fd44 (diff)
downloadpkgsrc-87116f5e6704d6e676c91e83c94200275e7d2dd4.tar.gz
- ${COMPILER_RPATH_FLAG} should be used instead of the various -Wl,...
flags. - [Brackets] are allowed in pathname masks.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index ef76aaeb9db..64807ae2dd0 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.511 2006/02/11 20:58:08 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.512 2006/02/12 12:10:13 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2244,6 +2244,12 @@ sub checkline_mk_text($$) {
$line->log_warning("Using \"\${WRKSRC}/..\" is conceptually wrong. Please use a combination of WRKSRC, CONFIGURE_DIRS and BUILD_DIRS instead.");
}
+ if ($text =~ qr"\b(-Wl,--rpath,|-Wl,-rpath-link,|-Wl,-rpath,|-Wl,-R)\b") {
+ $line->log_warning("Please use \${COMPILER_RPATH_FLAG} instead of $1.");
+ }
+ # Note: A simple -R is not detected, as the rate of false
+ # positives is too high.
+
$rest = $text;
$depr_map = get_deprecated_map();
while ($rest =~ s/(?:^|[^\$])\$\{([-A-Z0-9a-z_]+)(\.[\-0-9A-Z_a-z]+)?(?::[^\}]+)?\}//) {
@@ -2882,7 +2888,7 @@ sub checkline_mk_vartype_basic($$$$$$) {
}
} elsif ($type eq "Pathmask") {
- if ($value_novar !~ qr"^[-0-9A-Za-z._~+%*?/]*$") {
+ if ($value_novar !~ qr"^[-0-9A-Za-z._~+%*?/\[\]]*$") {
$line->log_warning("\"${value}\" is not a valid pathname mask.");
}