summaryrefslogtreecommitdiffstats
path: root/meta/classes/cve-check.bbclass
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2022-01-07 10:48:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-08 14:17:35 +0000
commitd55fbf4779483d2cfd71df78d0f733b599fef739 (patch)
treef30481b4e721941cac301298df513250a70172de /meta/classes/cve-check.bbclass
parent0b032e6ff476ce94fb283d4af9914e373a8e317b (diff)
downloadpoky-d55fbf4779483d2cfd71df78d0f733b599fef739.tar.gz
cve-check: add lockfile to task
this should prevent running into the very rare error sqlite3.OperationalError: attempt to write a readonly database As highlighted by https://www.sqlite.org/faq.html#q5 it is likely that the adapter won't allow use multiple exec calls at the same time. So it's best to prevent multiple accesses at a time, by reusing the already in place CVE_CHECK_DB_FILE_LOCK YOCTO #14110 (From OE-Core rev: 677f5741bd265be49d4a5bb933b3e8d8c4eec653) Signed-off-by: Konrad Weihmann <kweihmann@outlook.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.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 70d1988a70..6c04ff9f09 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -111,6 +111,7 @@ python do_cve_check () {
111} 111}
112 112
113addtask cve_check before do_build after do_fetch 113addtask cve_check before do_build after do_fetch
114do_cve_check[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}"
114do_cve_check[depends] = "cve-update-db-native:do_fetch" 115do_cve_check[depends] = "cve-update-db-native:do_fetch"
115do_cve_check[nostamp] = "1" 116do_cve_check[nostamp] = "1"
116 117