← Back to issue list

pluginhandler: exclude `/snap/` from libraries.

View original Github issue

Metadata

Project
snapcraft
Number
#1231
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged snapcraft#1231 in commit 0e9b5a84e, excluding /snap/ paths from classic-confinement library collection to avoid bundling libraries from installed snaps.

Resolution: closed resolved

Reason: PR snapcraft#1231 was merged as commit 0e9b5a84e. The change prevents library collection from entering /snap/, resolving LP #1670100.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When collecting libraries when working with classic confinement we currently collect snaps of our own doing if installed. This small fix avoids that. Ideally it would have been good to just add the `no-system-libs` `build-attributes` but the side effects there are a bit too big as some libraries are still collected when dealing with snaps that depend on other snaps. LP: #1670100 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged snapcraft#1231 in commit 0e9b5a84e, excluding /snap/ paths from classic-confinement library collection to avoid bundling libraries from installed snaps.
stealth/space-bunny-alpha — closed resolved Merged PR #1231 (commit 0e9b5a84e) filters /snap/ paths out of library collection in pluginhandler, so classic-confinement snaps no longer bundle libraries from installed snaps. Fixes LP #1670100.
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#1231 (commit 0e9b5a84e), excluding /snap/ paths from classic-confinement library collection so installed snaps' libraries are not included. Resolves LP #1670100.
qwen/qwen3.6-35b-a3b — — Merged. Excludes /snap/ paths from library collection during classic confinement builds, preventing unintended inclusion of snap libraries. Approved, passed CI, and resolves LP: #1670100.
qwen3.6-35b-a3b-mtp-q6 — — Merged a fix to exclude the /snap/ directory from library collection during classic confinement builds. This prevents accidentally packaging the snap's own libraries, addressing LP #1670100. Merged by maintainer sergiusens.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1632 libraries: exclude the full set of libc6 snapcraft merged Merged PR #1632 (commit 1b8ea95c7): snapcraft/internal/libraries.py now excludes every library from the libc6 deb, not just libc.so.6, stopping partial host glibc leaking into classic snaps; later reworked by #1744.
71%
#2942 pluginhandler: do not search installdir or stagedir for dependencies snapcraft merged Merged in snapcraft#2942 (commit 80ff1935), restricting plugin dependency checks to primedir so files filtered from the final snap are not used.
71%
#1829 pluginhandler: warn the inclusion of libraries from the host snapcraft merged Merged #1829 in commit 2f2f17b4e, adding a pluginhandler warning when a snap includes libraries from the host.
70%
#1643887 snapcraft shouldn't hardcode the list of libs to strip snapcraft (launchpad) closed Resolved by PR #1234 (commit a7a5a2eae): Snapcraft derives strip exclusions from the selected base snap instead of hardcoding libraries.
70%