SCA_SPARE_LAYER doesn"t work on Kirkstone #11087
Labels
bug
Something isn't working
community
Support has to be done by community
help wanted
Extra attention is needed
Used layer
Used configuration
SCA_SPARE_LAYER = "core"
Describe the bug
I had the issue #11077 with sqlite3, which is a recipe from the core layer (poky/meta/recipe-support/sqlite3). I tried to use the option
SCA_SPARE_LAYER = "core"
to disable SCA over the complete core layer. Thus, I tried to build sqlite3 withbitbake sqlite3
and I still got the issue reported yesterday in #11077, which shows that SCA is not disabled for the core layer.I checked into the sca.bbclass and I'm not sure about the if statement in line 20
if _allow_list and x not in _allow_list
from the functiondef sca_files_part_of_unspared_layer(d, files):
With this if statement, if x is not in the allow list, the layer is not added to the
_layer
variable, thusif not any(_layer)
statement returns the files andnot any(_matches)
in the if statement line 77 is False, the files are not spared.Currently, it is need to add the option
SCA_ALLOW_LAYER = "core"
in addition toSCA_SPARE_LAYER = "core"
to disable SCA on this layer, which seems to be wrong for me. I think that the if statement in line 20 should beif _allow_list and x in _allow_list
. In this case the file won't be spared if the layer is in the allow list, which gives the priority to theSCA_ALLOW_LAYER
option over theSCA_SPARE_LAYER
option.The text was updated successfully, but these errors were encountered: