summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2009-11-20 12:02:33 +0000
committerrillig <rillig@pkgsrc.org>2009-11-20 12:02:33 +0000
commit40d043ed1c3dd2b14f6cca3f0d2bf794823e1966 (patch)
tree95264b14d9ca6665116596682c56a984bde1286a /pkgtools
parent1bc0944c1dbc5d66e300d61f1804862ba08b81f7 (diff)
downloadpkgsrc-40d043ed1c3dd2b14f6cca3f0d2bf794823e1966.tar.gz
The GNU tools usually provide replacements for their counterparts whose
name doesn't start with a "g". Fixes PR 40261.
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 7840eedd20a..c6425e69568 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.820 2009/09/10 21:22:56 joerg Exp $
+# $NetBSD: pkglint.pl,v 1.821 2009/11/20 12:02:33 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4473,7 +4473,7 @@ sub checkline_mk_shelltext($$) {
"package via pkg_add.");
} elsif (exists(get_tool_names()->{$shellword})) {
- if (!exists($mkctx_tools->{$shellword})) {
+ if (!exists($mkctx_tools->{$shellword}) && !exists($mkctx_tools->{"g$shellword"})) {
$line->log_warning("The \"${shellword}\" tool is used but not added to USE_TOOLS.");
}