All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-check failing on world with meta-openembedded: diff.gz file
@ 2022-04-22  9:07 Marta Rybczynska
  2022-04-26 12:20 ` Marta Rybczynska
  0 siblings, 1 reply; 7+ messages in thread
From: Marta Rybczynska @ 2022-04-22  9:07 UTC (permalink / raw)
  To: OE-core, OpenEmbedded Devel List

[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

Dear all,
We're running cve-check on a world build containing oe-core, meta-oe and
more. We have an issue with the lockdev recipe
(meta-openembedded/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb), which
causes a fail like below:

$ bitbake world --runonly=do_cve_check
ERROR: lockdev-1_1.0.3-r0 do_cve_check: File Not found:
<path>lockdev/1_1.0.3-r0/lockdev_1.0.3-1.6.diff
ERROR: lockdev-1_1.0.3-r0 do_cve_check: Failure in searching patches
ERROR: Logfile of failure stored in:
<path>/lockdev/1_1.0.3-r0/temp/log.do_cve_check.8709
ERROR: Task
(<path>/meta-openembedded/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb:do_cve_check)
failed with exit code '1'

The issue is caused by the fact that lockdev_1.0.3-1.6.diff is missing.
When we look into the recipe, it is downloading lockdev_1.0.3-1.6.diff.gz
file Please note the additional extension.

Stripping the extension comes from oe-core/meta/oe/patch.py, from the
patch_path function, which is figuring out if a file is a patch, and
returning the local path if it is so. However, at the moment when we
do_cve_check, the .gz file is not uncompressed.

I'm wondering how to solve it.
1. Add a dependency to make sure eventual patch files are decompressed
first?
2. Do not consider this as a patch file in the scope of cve-check ? (this
is more a part of the source then an actual patch that might be fixing a
CVE)

This is the only case like that we have in the build. Please note that
removing ".diff" from the extension list in patch_path() is solving the
issue.

Any comments or suggestions?

Kind regards,
Marta

[-- Attachment #2: Type: text/html, Size: 1957 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-27 14:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22  9:07 CVE-check failing on world with meta-openembedded: diff.gz file Marta Rybczynska
2022-04-26 12:20 ` Marta Rybczynska
2022-04-26 16:09   ` Khem Raj
2022-04-27  7:14     ` Marta Rybczynska
2022-04-27 10:32       ` [oe] " Ross Burton
2022-04-27 10:33         ` Richard Purdie
2022-04-27 14:55           ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.