snap: strict -> classic confinement for Charmcraft snap
Metadata
Current evaluation
Merged the change to switch Charmcraft snap confinement from strict to classic. Added python3 stage packages and hardcoded a symlink to bypass a Snapcraft bug. Approved by two reviewers and passed CI.
Suggested action: —
No scores available.
Issue body
Classic snaps on core20 require python3. Add this collection
of stage packages as its own part to separate stage filtering
used in the charmcraft part.
There is an apparent bug in Snacpraft where it will set the
bin/python3 to an invalid symlink in this scenario. Hardcode
the correct symlink until we have a fix in place for Snapcraft.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged the change to switch Charmcraft snap confinement from strict to classic. Added python3 stage packages and hardcoded a symlink to bypass a Snapcraft bug. Approved by two reviewers and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged switch to classic confinement for the Charmcraft snap. Added python3 stage packages and hardcoded a symlink workaround to bypass a Snapcraft bug. Approved for release despite initial suggestions to delay for v0.11. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes switching Charmcraft snap confinement from strict to classic. Added python3 stage packages and hardcoded a symlink workaround for a Snapcraft bug. Implementation proceeded despite a suggestion to delay for version 0.11. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2062 packaging: simplify snapcraft.yaml | snapcraft | merged | Merged simplification of snapcraft.yaml that removes custom Python compilation and other dependencies, now that snapcraft 2.40 natively supports classic confined snaps. Approved by one reviewer, passed CI, and modified four files. | |
| #311 snap: remove plugs and add python3-dev build-package | charmcraft | merged | Merged. Removed unsupported snap plugs for classic mode and added python3-dev to build packages from source for non-amd64 architectures. Configured CPPFLAGS/LDFLAGS accordingly. Approved by two reviewers and passed CI checks. | |
| #184 Charmcraft crash when snap is used in /tmp directory | charmcraft | closed | Charmcraft crashed with a permission error when run from /tmp due to strict snap confinement. The issue was resolved by switching to classic confinement mode, which removed the restriction. Closed as fixed. |