Prefer in-snap libraries to system libraries.
Metadata
Current evaluation
Merged. Resolves Launchpad bug #1587358 by prioritizing in-snap libraries over system libraries during migration. Checks installdir, stagedir, and primedir to avoid unnecessary system library inclusion. Modified 9 files.
Suggested action: —
No scores available.
Issue body
This PR fixes LP: [#1587358](https://bugs.launchpad.net/snapcraft/+bug/1587358) by checking that a system library isn't already available in the snap before migrating it in. Note that it checks part's installdir, the stagedir, and the primedir.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Resolves Launchpad bug #1587358 by prioritizing in-snap libraries over system libraries during migration. Checks installdir, stagedir, and primedir to avoid unnecessary system library inclusion. Modified 9 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master, resolving LP #1587358 by prioritizing in-snap libraries over system libraries. The update checks the part's installdir, stagedir, and primedir before migrating system libraries. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Resolves LP: #1587358 by verifying system libraries are not already present in the snap's installdir, stagedir, or primedir before migration, ensuring in-snap libraries take precedence. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #580 Don't copy libraries that are already in prime. | snapcraft | merged | Merged to resolve Launchpad bug #1570895 by preventing snapcraft from copying libraries already in the prime directory. The fix adds path verification before copying, approved and merged with 93 additions across 7 files. | |
| #462 Add SNAP_LIBRARY_PATH to LD_LIBRARY_PATH. | snapcraft | merged | Merged changes adding SNAP_LIBRARY_PATH to LD_LIBRARY_PATH, resolving Launchpad bug #1570945. The three-file update received maintainer approval and was merged. |