[oe-commits] [openembedded-core] 09/29: insane: check if the recipe incorrectly uses DEPENDS_${PN}

git at git.openembedded.org git at git.openembedded.org
Sat Aug 3 13:48:05 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit cfaa104955c4ad0aafbe5d59ef85e4a8e3526c69
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Aug 1 16:09:44 2019 +0100

    insane: check if the recipe incorrectly uses DEPENDS_${PN}
    
    Some people mistakenly use DEPENDS_${PN} and wonder why the dependencies don't
    work. Check for this and tell the user to use DEPENDS.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/insane.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 891d3a8..35c4fdb 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1237,6 +1237,11 @@ python () {
     if prog.search(pn):
         package_qa_handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d)
 
+    # Some people mistakenly use DEPENDS_${PN} instead of DEPENDS and wonder
+    # why it doesn't work.
+    if (d.getVar(d.expand('DEPENDS_${PN}'))):
+        package_qa_handle_error("pkgvarcheck", "recipe uses DEPENDS_${PN}, should use DEPENDS", d)
+
     issues = []
     if (d.getVar('PACKAGES') or "").split():
         for dep in (d.getVar('QADEPENDS') or "").split():

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list