mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5f3dfeacc5
commit
8bcf139150
@@ -845,7 +845,10 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
||||
break
|
||||
if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps:
|
||||
continue
|
||||
error_msg = "%s rdepends on %s, but it isn't a build dependency?" % (pkg, rdepend)
|
||||
if rdep_data and 'PN' in rdep_data:
|
||||
error_msg = "%s rdepends on %s, but it isn't a build dependency, missing %s in DEPENDS or PACKAGECONFIG?" % (pkg, rdepend, rdep_data['PN'])
|
||||
else:
|
||||
error_msg = "%s rdepends on %s, but it isn't a build dependency?" % (pkg, rdepend)
|
||||
package_qa_handle_error("build-deps", error_msg, d)
|
||||
|
||||
if "file-rdeps" not in skip:
|
||||
@@ -911,8 +914,8 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
||||
break
|
||||
if filerdepends:
|
||||
for key in filerdepends:
|
||||
error_msg = "%s contained in package %s requires %s, but no providers found in its RDEPENDS" % \
|
||||
(filerdepends[key],pkg, key)
|
||||
error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS_%s?" % \
|
||||
(filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg)
|
||||
package_qa_handle_error("file-rdeps", error_msg, d)
|
||||
|
||||
def package_qa_check_deps(pkg, pkgdest, skip, d):
|
||||
|
||||
Reference in New Issue
Block a user