The do_rootfs log contains a number of unsatisfied package recommendations. At the moment those are only visible when reviewing the rootfs log.
This class adds an extra check to surface any unsatisfied recommendation as WARNINGS to the build output. Signed-off-by: Jose Alarcon <jose.alar...@ge.com> --- meta/classes/rootfs-check-recommends.bbclass | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta/classes/rootfs-check-recommends.bbclass diff --git a/meta/classes/rootfs-check-recommends.bbclass b/meta/classes/rootfs-check-recommends.bbclass new file mode 100644 index 0000000..351e438 --- /dev/null +++ b/meta/classes/rootfs-check-recommends.bbclass @@ -0,0 +1,21 @@ +# +# This bbclass adds an extra check to surface any unsatisfied +# recommendation (RRECOMMENDS) as WARNINGS to the build output. +# +# To enable, use INHERIT in conf/distro/distro.conf: +# +# INHERIT += "rootfs-check-recommends" +# + +python log_check_recommends() { + log_path = d.expand("${T}/log.do_rootfs") + with open(log_path, 'r') as log: + for line in log: + if 'log_check' in line: + continue + + if 'unsatisfied recommendation for' in line: + bb.warn('[log_check] %s: %s' % (d.getVar('PN', True), line)) +} + +do_rootfs[postfuncs] += "log_check_recommends " -- 2.10.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core