summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-01-20 23:57:30 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-19 01:01:25 +0000
commit8bcf139150644a20b0bebd39239b991352a6b8fd (patch)
tree9090b4283c9dfa5867a387bab8696c15007152b3 /meta/classes
parent5f3dfeacc52cdeaa2ca85e23453bf29b110795dd (diff)
downloadpoky-8bcf139150644a20b0bebd39239b991352a6b8fd.tar.gz
insane.bbclass: print more info for build-deps and file-rdeps
This is useful for oe newbie: * build-deps: print recipe name, and suggest fixing from DEPENDS or PACKAGECONFIG, for example: WARNING: QA Issue: patch rdepends on libattr, but it isn't a build dependency, missing attr in DEPENDS or PACKAGECONFIG? [build-deps] * file-rdeps: print RDEPENDS_pkg rather than RDEPENDS, for example: WARNING: QA Issue: /sbin/osd_login contained in package nfs-utils requires /bin/bash, but no providers found in RDEPENDS_nfs-utils? [file-rdeps] Fix a bug in file-rdeps, there was "@underscore@" in file-rdeps: WARNING: QA Issue: /sbin/osd@underscore@login_nfs-utils contained in [snip] [YOCTO #8922] [YOCTO #8847] (From OE-Core rev: f8754281451bbb64c3d26bbdbf1e596271534469) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 241ad0850b..61936e1377 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -845,7 +845,10 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
845 break 845 break
846 if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: 846 if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps:
847 continue 847 continue
848 error_msg = "%s rdepends on %s, but it isn't a build dependency?" % (pkg, rdepend) 848 if rdep_data and 'PN' in rdep_data:
849 error_msg = "%s rdepends on %s, but it isn't a build dependency, missing %s in DEPENDS or PACKAGECONFIG?" % (pkg, rdepend, rdep_data['PN'])
850 else:
851 error_msg = "%s rdepends on %s, but it isn't a build dependency?" % (pkg, rdepend)
849 package_qa_handle_error("build-deps", error_msg, d) 852 package_qa_handle_error("build-deps", error_msg, d)
850 853
851 if "file-rdeps" not in skip: 854 if "file-rdeps" not in skip:
@@ -911,8 +914,8 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
911 break 914 break
912 if filerdepends: 915 if filerdepends:
913 for key in filerdepends: 916 for key in filerdepends:
914 error_msg = "%s contained in package %s requires %s, but no providers found in its RDEPENDS" % \ 917 error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS_%s?" % \
915 (filerdepends[key],pkg, key) 918 (filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg)
916 package_qa_handle_error("file-rdeps", error_msg, d) 919 package_qa_handle_error("file-rdeps", error_msg, d)
917 920
918def package_qa_check_deps(pkg, pkgdest, skip, d): 921def package_qa_check_deps(pkg, pkgdest, skip, d):