← Back to issue list

using advanced grammar to build towards a certain arch does not work with stage-snaps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2006599
Type
issue
State
open
Author
~ogra
Labels
—
Created
Updated
Closed
—

Current evaluation

Cross-build grammar selects a foreign-architecture stage snap, but its download lacks the target store architecture and reports the snap missing. A workaround exists; the report remains untriaged.

Suggested action: needs triage

Reason: The report provides a concrete `to: arm64` and `stage-snaps: [pi]` case and identifies the missing `UBUNTU_STORE_ARCH` for `snap download`; current craft-parts code also invokes that command without a target architecture. However, the issue has no labels, maintainer comments, assignee, or diagnostic logs, so its scope and proposed fix still require maintainer assessment.

Evaluated by: mr-cal-bot

Impact: 43 Quick Win: 15 Complexity: 50 Confidence: 88 Actionability: 68

Issue body

trying to build a snap using a foreign arch stage-snap like i.e. the pi gadget (so one does not need to cross compile the already existing binaries) seems to be missing the UBUNTU_STORE_ARCH variable set for the "snap download" call in snapcraft, so the snap is reported as not found... while it is solvable through an override hack, it would be nice to be able to just do something like: ``` to: arm64 stage-snaps: - pi ``` but instead something like below is required: https://github.com/ogra1/custom-pi-gadget/blob/main/snap/snapcraft.yaml#L27

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 43
Quick Win: 15
Complexity: 50
Confidence: 88
Actionability: 68
needs triage Cross-build grammar selects a foreign-architecture stage snap, but its download lacks the target store architecture and reports the snap missing. A workaround exists; the report remains untriaged.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 17
Complexity: 48
Confidence: 91
Actionability: 79
needs triage Cross-architecture stage-snaps still use the host store architecture, so advanced grammar targeting arm64 can report the snap as unavailable; the report needs maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Impact: 70
Quick Win: 42
Staleness: 85
Complexity: 40
Confidence: 35
Support Request: 10
needs triage Cross-architecture stage-snaps fail due to missing UBUNTU_STORE_ARCH variable in snap download calls
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 85
Support Request: 15
needs triage stage-snaps fail to download for foreign architectures due to missing UBUNTU_STORE_ARCH in snapcraft. Unresolved for over 3 years with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 90
Support Request: 10
close stale Snapcraft fails to set UBUNTU_STORE_ARCH when using stage-snaps for foreign architectures, causing download failures. Unlabelled, no maintainer response, inactive for over 3 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 80
Support Request: 10
close stale Snapcraft fails to set UBUNTU_STORE_ARCH when staging foreign architecture snaps, causing download failures. Untriaged, inactive for over three years.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#1835638 inconsistent to arch behaviour snapcraft (launchpad) open Snapcraft 3.6 advanced grammar can omit stage-packages on native builds and mix host/target packages in nested on/to cases; the old report remains open and untriaged.
74%
#1921418 wrong architecture of stage-snaps when cross building snapcraft (launchpad) open Cross-building downloads host-architecture stage-snaps instead of build-for artifacts; the acknowledged craft-415 bug appears unresolved in current craft-parts.
72%
#1637282 Allow for architecture-specific stage packages snapcraft (launchpad) closed Architecture-specific stage packages were implemented through grammar in snapcore/snapcraft#1059, later superseded by broader advanced-grammar support.
72%