diff options
author | rillig <rillig> | 2009-11-20 12:02:33 +0000 |
---|---|---|
committer | rillig <rillig> | 2009-11-20 12:02:33 +0000 |
commit | 737534c6a9db29ed522530050affa96b61cdc844 (patch) | |
tree | 95264b14d9ca6665116596682c56a984bde1286a /pkgtools | |
parent | af2c8c6a1ddc7a39ef0587461f4abf51fe15d47b (diff) | |
download | pkgsrc-737534c6a9db29ed522530050affa96b61cdc844.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.pl | 4 |
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."); } |