From: Richard Purdie Date: Sat, 10 Feb 2024 07:44:36 +0000 (+0000) Subject: insane: Clarify runtime/ warning X-Git-Tag: uninative-4.4~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d815aa2c0bea113fb79b51bf67c0ff90d57dd2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git insane: Clarify runtime/ warning We should be pointing people at VIRTUAL-RUNTIME, not virtual so tweak the warning. Try and make it clear the difference between the build dependencies and the runtime ones. Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 828f618cda1..9909526f51d 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -1611,7 +1611,7 @@ python () { for k in ['RDEPENDS', 'RPROVIDES']: for var in bb.utils.explode_deps(d.getVar(k + ':' + pn) or ""): if var.startswith("virtual/"): - bb.warn("%s is set to %s, the substring 'virtual/' holds no meaning in this context. It is suggested to use the 'virtual-' instead." % (k, var)) + bb.warn("%s is set to %s but the substring 'virtual/' holds no meaning in this context. It only works for build time dependencies, not runtime ones. It is suggested to use 'VIRTUAL-RUNTIME_' variables instead." % (k, var)) issues = [] if (d.getVar('PACKAGES') or "").split():