diff options
author | Jose Alarcon <jose.alarcon@ge.com> | 2017-09-04 08:12:24 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-05 15:01:01 +0100 |
commit | f30adee451c28ffd19f30adb9bc88c76281a7ad5 (patch) | |
tree | d714efc006bbc9dbbf8d6288258affca357778d6 /meta/classes | |
parent | ab44ad3fdf139990787d174b7b7b44a77f2ea86b (diff) | |
download | poky-f30adee451c28ffd19f30adb9bc88c76281a7ad5.tar.gz |
rootfs-postcommands: add test for unsatisfied RRECOMMENDS
The do_rootfs log contains a number of unsatisfied package
recommendations. At the moment those are only visible when
reviewing the rootfs log.
This patch adds an extra check to surface any unsatisfied
recommendation as WARNINGS to the build output.
Enable this check with:
ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"
(From OE-Core rev: 9d049bf7941f30e35c51775684559e95185fba96)
Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index fb36bad7f3..f6d31a00f7 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
@@ -307,3 +307,15 @@ python write_image_test_data() { | |||
307 | os.remove(testdata_link) | 307 | os.remove(testdata_link) |
308 | os.symlink(os.path.basename(testdata), testdata_link) | 308 | os.symlink(os.path.basename(testdata), testdata_link) |
309 | } | 309 | } |
310 | |||
311 | # Check for unsatisfied recommendations (RRECOMMENDS) | ||
312 | python rootfs_log_check_recommends() { | ||
313 | log_path = d.expand("${T}/log.do_rootfs") | ||
314 | with open(log_path, 'r') as log: | ||
315 | for line in log: | ||
316 | if 'log_check' in line: | ||
317 | continue | ||
318 | |||
319 | if 'unsatisfied recommendation for' in line: | ||
320 | bb.warn('[log_check] %s: %s' % (d.getVar('PN', True), line)) | ||
321 | } | ||