← Back to issue list

pluginhandler: add support for disabling system library migration

View original Github issue

Metadata

Project
snapcraft
Number
#989
Type
pull request
State
merged
Author
kyrofa
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged. Adds the no-system-libraries build attribute to stop snapcraft from migrating system libraries during the prime step. Resolves Launchpad bug 1639831. Renamed from build-options to build-attributes during review, with docs updated before merge.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1597 pluginhandler: warn about migrated system libraries snapcraft closed Closed without merging due to unresolved review feedback and design concerns regarding build-attributes exposure. The pull request was abandoned after requested changes were never addressed.
73%