← Back to issue list

core26 doesn't stage all dependencies of `stage-packages`

View original Github issue

Metadata

Project
snapcraft
Number
#6248
Type
issue
State
open
Author
simondeziel
Labels
Created
2026-05-11 17:04:34+00:00
Updated
2026-05-12 08:10:04+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description When packing the provided `snapcraft.yaml` with the 9.0 version, the libs that should be primed are not primed. With the old `snapcraft` version, they were primed. ``` $ snap list --all snapcraft Name Version Rev Tracking Publisher Notes snapcraft 8.14.5 17634 latest/candidate canonical✓ classic snapcraft 9.0.0 18124 latest/candidate canonical✓ disabled,classic ``` ### Steps to reproduce 1. `snapcraft pack` 2. Inspect the resulting `.snap`: ``` $ unsquash poc_*.snap $ find squashfs-root/ squashfs-root/ squashfs-root/share squashfs-root/share/openvswitch squashfs-root/share/openvswitch/vswitch.ovsschema squashfs-root/meta squashfs-root/meta/gui squashfs-root/meta/snap.yaml squashfs-root/bin squashfs-root/bin/ovn-sbctl squashfs-root/bin/ovn-nbctl squashfs-root/bin/ovs-vsctl squashfs-root/snap squashfs-root/snap/snapcraft.yaml squashfs-root/snap/manifest.yaml ``` 3. Notice it's missing the `libunbound8.so` and the `libevent-2.1.so` files and symlinks. ### Environment ``` $ snap list --all snapcraft Name Version Rev Tracking Publisher Notes snapcraft 8.14.5 17634 latest/candidate canonical✓ classic snapcraft 9.0.0 18124 latest/candidate canonical✓ disabled,classic ``` ### snapcraft.yaml ```yaml name: poc base: core26 build-base: devel assumes: - snapd2.75 version: git grade: devel summary: PoC for snapcraft priming issue license: AGPL-3.0-only title: PoC description: |- PoC confinement: strict parts: openvswitch: plugin: nil stage-packages: - openvswitch-common - openvswitch-switch organize: usr/bin/: bin/ usr/lib/: lib/ usr/share/: share/ prime: - bin/ovs-vsctl - lib/*/libunbound*so* - share/openvswitch/vswitch.ovsschema ovn: after: - openvswitch plugin: nil stage-packages: - ovn-common organize: usr/bin/: bin/ usr/lib/: lib/ prime: - bin/ovn-nbctl - bin/ovn-sbctl - lib/*/libevent-2.1*so* - lib/*/libunbound*so* ``` ### Log output ```shell $ snapcraft pack Version has been set to '0+git.75b1224' Version has been set to '0+git.75b1224' Lint warnings: - library: bin/ovn-nbctl: missing dependency 'libunbound.so.8'. (https://documentation.ubuntu.com/snapcraft/stable/how-to/debugging/use-the-library-linter) - library: bin/ovn-sbctl: missing dependency 'libunbound.so.8'. (https://documentation.ubuntu.com/snapcraft/stable/how-to/debugging/use-the-library-linter) - library: bin/ovs-vsctl: missing dependency 'libunbound.so.8'. (https://documentation.ubuntu.com/snapcraft/stable/how-to/debugging/use-the-library-linter) Version has been set to '0+git.75b1224' Packed poc_0+git.75b1224_amd64.snap ```

Evaluation history

No evaluation history available.