Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This patch provided by Baxter International (Eric Laurin and Zachary Salim).
Acceptance criteria
If this PR is successful, what impact does it have on the user experience?
Example: When users do X, Y should now happen.
Testing plan
Someone with access to a bitbake repo and
kirkstone
Yocto should test this.Risks
Could break the meta-fossa integration.
References
The Kirkstone patch applies modifications to make
meta-fossa
compatible with thekirkstone
Yocto Project branch. Here’s a breakdown of the key changes described:fossa.bbclass
Modificationsimage_list_installed_packages
: The patch introduces this function from OpenEmbedded core (oe-core
). This function lists all packages installed in the final image, which is crucial for collecting accurate dependency data.pkgs = image_list_installed_packages(d)
: Replaces the previous method of gathering packages. Instead of looping through all package metadata, it now loops through the installed package list, improving the accuracy of the dependencies collected for FOSSA analysis.except Exception as err
block is simplified to justexcept Exception
to handle all exceptions without specifying an error object.fossa_upload.bbclass
Modificationsfossa-cli-native
: Thedo_fossa_analyze
anddo_fossa_test
tasks now depend onfossa-cli-native
(a version offossa-cli
built for the host system) instead offossa-cli
(target-specific). This makes sure that the analysis and testing run on the host build environment rather than the target, improving compatibility.fossa
CLI: The hardcoded path tofossa
has been removed, as thesysroot-native directory
is already included in thePATH
. This change improves portability by allowing thefossa
binary to be accessed from any location in the environment.fossa-cli.bb
ModificationsBBCLASSEXTEND = "native"
: This line extends thefossa-cli
recipe to allow it to be built as anative
package for the build host. This ensures thatfossa-cli
can be executed in the host environment, aligning with the modifications infossa_upload.bbclass
.Checklist