]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cve-check.bbclass: Fix symlink handling also for text files
authorNiko Mauno <niko.mauno@vaisala.com>
Mon, 12 May 2025 15:52:28 +0000 (15:52 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 15 May 2025 16:42:55 +0000 (09:42 -0700)
commit81e702c85c62782dbedd5ca2a5e6569e6339dd60
tree2118b99792ceadd130f44699bc41178fe5cbc7ab
parente8b90907f9c12808ac7137779f16edb62763e1c3
cve-check.bbclass: Fix symlink handling also for text files

While backporting commit 7543e4e24a8b ("cve-check.bbclass: Mitigate
symlink related error") I failed to address the fact that in Scarthgap
this bbclass still generates also the text CVE file, in addition to the
JSON file.

In order to avoid the error that occurred with JSON files from
occurring now with CVE files:

  ERROR: core-image-base-1.0-r0 do_image_complete: Recipe core-image-base is trying to install files into a shared area when those files already exist. The files and the manifests listing them are:
    /home/poky/build/tmp/deploy/images/qemux86-64/.cve
      (matched in manifest-qemux86_64-core-image-minimal.image_complete)
  Please adjust the recipes so only one recipe provides a given file.

update the symlink handling for the text file variant too.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass