pluginhandler: add support for disabling system library migration
Metadata
Current evaluation
Merged PR #989 added the no-system-libraries build attribute, allowing parts to skip system-library migration during prime; fixes LP #1639831 (commit 54aa0ec1b).
Resolution: closed resolved
Reason: PR #989 was approved and merged as commit 54aa0ec1b, implementing build-attributes and the no-system-libraries option to resolve LP #1639831.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Currently snapcraft, during the prime step for a part, checks to see if that part needs any libraries from the system. This is not always desired, as in some cases the libraries will be provided by another snap via the content interface.
This PR fixes LP: [#1639831](http://bugs.launchpad.net/bugs/1639831) by introducing a new property to the base part YAML: `build-attributes`. It's simply a list of build attributes, only one of which exists right now: `no-system-libraries`. For example:
parts:
# ...
example:
plugin: cmake
build-attributes: [no-system-libraries]
# ...
Using the `no-system-libraries` attribute has the effect of not pulling any libraries from the system during the prime step for that part.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #989 added the no-system-libraries build attribute, allowing parts to skip system-library migration during prime; fixes LP #1639831 (commit 54aa0ec1b). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #989 in commit 54aa0ec1b, adding the `no-system-libraries` build attribute to disable automatic system-library migration for a part. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #989 added build-attributes with no-system-libraries to skip system library migration during prime, resolving LP bug #1639831 (commit 54aa0ec1b). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged pull request introducing a build-attributes list with a no-system-libraries option to skip system library migration during the prime step. Renamed from build-options per review and resolves Launchpad bug 1639831. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged implementation of a no-system-libraries build attribute to skip system library migration during the prime step. Fixes Launchpad bug 1639831. Renamed from build-options to build-attributes after review, with docs updated prior to merge. |
Update history
No update history recorded yet.
Related work
-
Related To:
launchpad#1639831
(confidence 100%)
The Launchpad bug is explicitly identified as fixed by PR #989.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1597 pluginhandler: warn about migrated system libraries | snapcraft | closed | Closed unmerged after review objections; its host-library warning was later delivered by merged PR #1829 in commit 2f2f17b4e. |