]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: hook cleanup to the BuildCompleted event, not CookerExit
authorRoss Burton <ross.burton@arm.com>
Wed, 29 Jun 2022 15:15:19 +0000 (16:15 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 5 Jul 2022 20:04:09 +0000 (10:04 -1000)
commitee3270709158aff463fec6798f3b8968268b4d4b
tree3c088f90ed0bb2fa45054d602184ff66bfadd86e
parentb82c95720488eea8ea4b5684c9f89e4931085fa5
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fccdcfd301de281a427bfee48d8ff47fa07b7259)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass