Open Jasper-Ben opened 9 months ago
Currently, we have two mechanisms in place that help dealing with source code differences between osselot curated data and openembedded source code (including patches):
OSSELOT_IGNORE_SOURCE_GLOBS
variable: This variable can be used to ignore any file (globs) which are irrelevant in regards to openembbeded license compliance. This could be test files or pre-run configure steps from release packages (see https://github.com/Open-Source-Compliance/package-analysis/issues/67).OSSELOT_HASH_EQUIVALENCE
variable: This variable can be used to define equivalence (from a curation perspective) between one or more file versions. As openembedded patches usually do not add copyright holders or other license information (do validate this beforehand), this variable can be used to signal curation equivalence in these cases.However, these two mechanisms currently do not cover cases where patches add additional, or change curation relevant data. I am yet to encounter a relevant case, but if this happens we need to deal with this. One option could be to add patches to the osselot-package-analysis-native.bb recipe, however I am not sure how well this would scale.
Currently, meta-osselot does not have a mechanism in place for dealing with patch files in bitbake layers