summaryrefslogtreecommitdiffstats
path: root/meta/classes/cve-check.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-06-29 16:15:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-30 10:27:17 +0100
commit271909fa4bd0658d97fb4395c41f0340995fa2a8 (patch)
treead6d50b9e3e7d085b33258ca6f554d1e172c9615 /meta/classes/cve-check.bbclass
parent1d2b1161a91b31cb53f4a46ddc626a1a91428c2b (diff)
downloadpoky-271909fa4bd0658d97fb4395c41f0340995fa2a8.tar.gz
cve-check: hook cleanup to the BuildCompleted event, not CookerExit
The cve-check class writes temporary files to preserve state across the build, and cleans them up in a CookerExit handler. However, in memory-resident builds the cooker won't exit in between builds, so the state isn't cleared and the CVE report generation fails: NOTE: Generating JSON CVE summary ERROR: Error adding the same package twice Easily solved by hooking to BuildCompleted, instead of CookerExit. (From OE-Core rev: fccdcfd301de281a427bfee48d8ff47fa07b7259) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r--meta/classes/cve-check.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 50b9247f46..da7f93371c 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -166,7 +166,7 @@ python cve_check_cleanup () {
166} 166}
167 167
168addhandler cve_check_cleanup 168addhandler cve_check_cleanup
169cve_check_cleanup[eventmask] = "bb.cooker.CookerExit" 169cve_check_cleanup[eventmask] = "bb.event.BuildCompleted"
170 170
171python cve_check_write_rootfs_manifest () { 171python cve_check_write_rootfs_manifest () {
172 """ 172 """