From 06c4df83d739a6d31bd507388d01553997801302 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Fri, 26 Apr 2024 19:59:37 +0200 Subject: [PATCH] Don't suggest a runtime dependency for TOOL_DEPENDS --- v23/package_test.go | 2 +- v23/vartypecheck.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/v23/package_test.go b/v23/package_test.go index 175d208e..06bd8e82 100644 --- a/v23/package_test.go +++ b/v23/package_test.go @@ -399,7 +399,7 @@ func (s *Suite) Test_Package__TOOL_DEPENDS(c *check.C) { t.CheckOutputLines( "WARN: Makefile:20: " + - "Use USE_TOOLS+=perl:run instead of this dependency.") + "Use USE_TOOLS+=perl instead of this dependency.") } func (s *Suite) Test_NewPackage(c *check.C) { diff --git a/v23/vartypecheck.go b/v23/vartypecheck.go index feb13d58..b316b909 100644 --- a/v23/vartypecheck.go +++ b/v23/vartypecheck.go @@ -463,7 +463,11 @@ func (cv *VartypeCheck) DependencyWithPath() { case "gettext": cv.Warnf("Use USE_TOOLS+=msgfmt instead of this dependency.") case "perl5": - cv.Warnf("Use USE_TOOLS+=perl:run instead of this dependency.") + if cv.Varname == "TOOL_DEPENDS" { + cv.Warnf("Use USE_TOOLS+=perl instead of this dependency.") + } else { + cv.Warnf("Use USE_TOOLS+=perl:run instead of this dependency.") + } case "gmake": cv.Warnf("Use USE_TOOLS+=gmake instead of this dependency.") }