diff options
author | 2022-01-07 10:48:51 +0100 | |
---|---|---|
committer | 2022-01-25 12:07:01 +0000 | |
commit | 822d958e24881211848966dbae8602eadc29ad4b (patch) | |
tree | 8e29c06f42acf2a6d793ccb2bec43722af62d781 | |
parent | cb78512aab78d9cfdd78326df4d622b8daaa1f3b (diff) | |
download | poky-822d958e24881211848966dbae8602eadc29ad4b.tar.gz poky-822d958e24881211848966dbae8602eadc29ad4b.tar.bz2 poky-822d958e24881211848966dbae8602eadc29ad4b.zip |
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: 155c238d340fdc82420ba9f367cb23014c78b705)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 677f5741bd265be49d4a5bb933b3e8d8c4eec653)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/cve-check.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 4fa1a64f85..3add826fca 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -110,6 +110,7 @@ python do_cve_check () { } addtask cve_check before do_build after do_fetch +do_cve_check[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}" do_cve_check[depends] = "cve-update-db-native:do_fetch" do_cve_check[nostamp] = "1" |