dependencies: missing library resolution (CRAFT-422)
Metadata
Current evaluation
Merged PR #3634 into main, fixing missing-library resolution for symlinked and usrmerge libraries so Snapcraft suggests a staging package instead of a dpkg error.
Resolution: closed resolved
Reason: PR #3634 was approved and merged into main via merge commit 03c62b467, with feature commit e22895fa0. The change follows symlinked library paths and correctly identifies the package needed for staging.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `./runtests.sh static`?
- [X] Have you successfully run `./runtests.sh tests/unit`?
-----
Improvements to resolution of missing libraries.
<div class="OutlineElement Ltr BCX2 SCXO33065325" style="margin-left: 0px; direction: ltr;"><div class="TableContainer SCXO33065325 BCX2"><div id="{b857542e-4fa0-4221-8d46-26722fa234f7}{136}" class="WACAltTextDescribedBy SCXO33065325 BCX2" aria-hidden="true"></div>
scenario | description | examples | previous behavior | new behavior
-- | -- | -- | -- | --
1 | snapcraft resolves library path | normal usage | suggests package to stage | suggests package to stage
2 | snapcraft resolves library path with symlinks | <ul><li>`usrmerge` package installed</li><li>custom library, i.e. library package has postinst action to make symlinks</li></ul> | **dpkg error** | suggests package to stage
</div></div>
</br>
For testing, this repo exercises the new functionality: https://github.com/mr-cal/missing-dependencies-snap
</br>
Source:
- https://forum.snapcraft.io/t/several-libraries-from-stage-packages-missing-despite-proper-ld-library-path/16017
- [LP: #1934403](https://bugs.launchpad.net/snapcraft/+bug/1934403)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3634 into main, fixing missing-library resolution for symlinked and usrmerge libraries so Snapcraft suggests a staging package instead of a dpkg error. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#3634 via commit e22895fa0, adding symlink-aware missing-library resolution so stage-package suggestions avoid dpkg errors under usrmerge. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3634 (CRAFT-422) into main, improving missing-library resolution for symlinked libraries such as usrmerge and avoiding dpkg errors. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged updates to missing library resolution that resolve dpkg errors when processing symlinks like usrmerge packages. The implementation was refactored to use pathlib and approved before merging to main. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged improvements to missing library resolution that now handles symlinks like usrmerge and custom postinst links, preventing previous dpkg errors. Implementation uses pathlib and achieved 100% test coverage. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft (launchpad)#1934403
(confidence 90%)
Launchpad bug cited as the originating missing-library scenario.
Related issues
No related issues found above the similarity threshold.