Install fwts globally in the snap instead of in /usr (bugfix) #1891
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.
Description
The upgrade of fwts broke the snap in a few situations because by default the autotools recipe installs fwts and its libray in /usr and in the snap /usr/lib/* is not always in LD_LIBRARY_PATH. This makes Checkbox canary fail!
It is unclear to me how it works on core16 right now, but better safe than sorry, I'm moving all installtion to be global, as I see no downside to it.
See: https://certification.canonical.com/hardware/202302-31257/submission/425313/test/58147/result/48590487/
Resolved issues
Fixes: CHECKBOX-1884
Documentation
Documented why this is actually needed, as I'm pretty sure it was there on some platforms but it wasn't documented
Tests
Built and tested the failing test on core24 and it now works as expected.
Building here: https://github.com/canonical/checkbox/actions/runs/14709968840
And here: https://github.com/canonical/checkbox/actions/runs/14709966174
To be sure I didnt bork the builds