iris-GmbH / meta-osselot

bitbake layer repository for intergrating osselot into the build process
MIT License
6 stars 4 forks source link

Wrong source list & race condition in do_osselot_create_s_checksums when S == WORKDIR #32

Closed Jasper-Ben closed 7 months ago

Jasper-Ben commented 7 months ago

Some layer "internal" recipes (e.g. https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts_1.0.bb?h=kirkstone) only add source code from within the layer repository. In these cases they set S = ${WORKDIR}. This causes do_osselot_create_s_checksums to create checksums for all of the WORKDIR, including the checksums output itself. This can also cause race conditions, when folders are deleted during the do_osselot_create_s_checksums process.

To fix this, do_osselot_create_s_checksums should only consider top level files as source files if S is set to ${WORKDIR}