← 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
closed
Author
simondeziel
Labels
—
Created
Updated
Closed

Current evaluation

Not a Snapcraft bug: the missing stage-packages deps (libunbound8, libevent-2.1t64) came from a faulty chisel manifest in the core26 base, fixed upstream in canonical/core-base#443; issue closed.

Resolution: closed not a bug

Reason: Maintainer mr-cal traced the missing libraries to Snapcraft 9 correctly parsing the core26 chisel manifest, which exposed the base snap defect reported in canonical/core-base#443. That upstream issue was fixed in the core26 base snap (comment2026-07-07), and the reporter confirmed listing libunbound8 and libevent-2.1t64 explicitly in stage-packages worked around it.

Evaluated by: mr-cal-bot

No scores available.

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

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Not a Snapcraft bug: the missing stage-packages deps (libunbound8, libevent-2.1t64) came from a faulty chisel manifest in the core26 base, fixed upstream in canonical/core-base#443; issue closed.
stealth/space-bunny-alpha — closed resolved Fixed upstream in the core26 base via canonical/core-base#443. Explicitly staging libunbound8 and libevent-2.1t64 also restored priming with Snapcraft 9.
stealth/space-bunny-alpha — closed resolved Snapcraft 9’s core26 chisel-manifest parsing exposed missing dependency metadata. The problem was fixed upstream in canonical/core-base#443, restoring dependency staging and priming.
qwen/qwen3.6-35b-a3b — — Snapcraft 9 failed to stage core26 dependencies due to stricter chisel manifest parsing. The issue was fixed upstream in the core26 base snap, restoring correct dependency priming behavior.
qwen/qwen3.6-35b-a3b — — Snapcraft 9's stricter dependency parsing exposed missing libraries in the core26 base snap, causing staging failures. The issue was resolved by updating the core26 base snap upstream to include the required dependencies.
qwen/qwen3.6-35b-a3b — — Snapcraft 9 failed to stage required libraries for the core26 base due to stricter dependency parsing. The issue was closed after the core26 base snap was fixed upstream to properly resolve and stage dependencies.
qwen3.6-35b-a3b-mtp-q6 — — Snapcraft 9 failed to stage core26 library dependencies due to stricter chisel manifest parsing. A workaround involved explicitly adding missing packages. The problem was resolved and closed after being fixed upstream in the core26 base snap.

Update history

No update history recorded yet.

Related work

  • Caused By: core-base#443 (confidence 92%)

    Upstream core26 base issue with the chisel manifest missing dependency packages; fixed there, leading to closure of this Snapcraft issue.

  • Related To: canonical/snapcraft#4441 (confidence 45%)

    PR enabling chisel support in Snapcraft, after which Snapcraft 9 begins parsing base chisel manifests (unlike Snapcraft 8).

Related issues

Issue Project State Summary Similarity
#6148 Unwanted staged dependencies when building with a `core26` base snapcraft closed Fixed by craft-parts #1538 (49a8824c), adding Chisel manifest parsing for core26 package filtering; released on edge and scheduled for Snapcraft 9.0.
80%
#6146 `base: core26` part conflict on `/lib`, `/bin` due to usrmerge snapcraft closed Fixed the core26 /bin and /lib part conflict caused by missing dpkg.list base-package cleanup metadata; the correction shipped to edge and was scheduled for Snapcraft 9.0.
71%