diff options
| -rw-r--r-- | meta/classes-global/insane.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index ec76f9a5e3..828f618cda 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
| @@ -1607,6 +1607,12 @@ python () { | |||
| 1607 | if (d.getVar(d.expand('DEPENDS:${PN}'))): | 1607 | if (d.getVar(d.expand('DEPENDS:${PN}'))): |
| 1608 | oe.qa.handle_error("pkgvarcheck", "recipe uses DEPENDS:${PN}, should use DEPENDS", d) | 1608 | oe.qa.handle_error("pkgvarcheck", "recipe uses DEPENDS:${PN}, should use DEPENDS", d) |
| 1609 | 1609 | ||
| 1610 | # virtual/ is meaningless for those variables | ||
| 1611 | for k in ['RDEPENDS', 'RPROVIDES']: | ||
| 1612 | for var in bb.utils.explode_deps(d.getVar(k + ':' + pn) or ""): | ||
| 1613 | if var.startswith("virtual/"): | ||
| 1614 | 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)) | ||
| 1615 | |||
| 1610 | issues = [] | 1616 | issues = [] |
| 1611 | if (d.getVar('PACKAGES') or "").split(): | 1617 | if (d.getVar('PACKAGES') or "").split(): |
| 1612 | for dep in (d.getVar('QADEPENDS') or "").split(): | 1618 | for dep in (d.getVar('QADEPENDS') or "").split(): |
