← Back to issue list

snap: ensure cryptography builds correctly on all architectures

View original Github issue

Metadata

Project
charmcraft
Number
#1091
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged #1091 as 92e93b46, adding a temporary snap build workaround so cryptography compiles on all supported architectures.

Resolution: closed resolved

Reason: PR #1091 was merged as commit 92e93b46. Its packaging changes unblocked Charmcraft snap builds across architectures using a workaround for cryptography's native build requirements.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This is a quick and dirty workaround to make cryptography build properly. I'll follow up with a more robust fix, but this should at least get the snap building on all architectures. Remote build: https://launchpad.net/~lengau/+snap/snapcraft-charmcraft-1bebeb44e32b4aa985026c6f977fd0b8

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #1091 as 92e93b46, adding a temporary snap build workaround so cryptography compiles on all supported architectures.
stealth/space-bunny-alpha — closed resolved Merged PR #1091 as commit 92e93b46, adding a temporary workaround so cryptography builds correctly across all snap architectures.
stealth/space-bunny-alpha — closed resolved Merged PR #1091 as commit 92e93b46, adding a temporary workaround to fix cryptography builds across all snap architectures. A more robust fix was planned.
qwen/qwen3.6-35b-a3b — — Merged a temporary workaround fixing cryptography build failures across all architectures for the snap. Approved by one reviewer, the change modifies two files (+48/-9 lines). A more robust fix is planned.
qwen3.6-35b-a3b-mtp-q6 — — Merged a temporary workaround to resolve cryptography build failures for the snap across all architectures. A more robust fix is planned for follow-up.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#1024 (confidence 85%)

    The earlier cryptography 39.0 upgrade added Rust build dependencies that prompted this packaging fix.

Related issues

Issue Project State Summary Similarity
#3447 snap: pin cryptography to 3.4 snapcraft merged Merged as commit 2ae657b4a: pinned cryptography to ==3.4 in snap/snapcraft.yaml (+2/-2), tightening the earlier cryptography<3.5 lock from PR #3445 because 3.4.1 broke pip installs on s390x.
73%
#1369 Snap not building on platforms without a cryptography wheel charmcraft closed Fixed by canonical/charmcraft#1379, merged as f5558b8f. The snap packaging change enabled builds on armhf, arm64, ppc64el, and s390x.
73%
#3445 Fix snap snapcraft merged Merged as c63095654: pinned cryptography<3.5 in the snap build so Snapcraft snap builds no longer required a Rust toolchain. Tightened to 3.4 in #3447.
71%
#4033 build(deps): bump cryptography from 3.4 to 39.0.1 snapcraft closed Closed unmerged because cryptography 39.0.1 did not work on every architecture; maintainers cited canonical/charmcraft#1024, and Snapcraft later updated it in #4136 (3fd3e4c52).
70%