Architecture-specific sources for parts
Metadata
Current evaluation
Closed 2026-08-25 by ~mr-cal as already fixed: Snapcraft part steps can pick architecture-specific sources via build-for env vars (SNAPCRAFT_ARCH_BUILD_FOR/SNAPCRAFT_TARGET_ARCH); no new patch was made.
Resolution: closed not a bug
Reason: No code change was required: maintainer ~mr-cal closed the card noting Snapcraft already exposes build-for architecture environment variables usable in part steps to select arch-specific sources, pointing to the step execution environment docs. Those variables were added in snapcraft PR #4313 and hardened in #4332.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed 2026-08-25 by ~mr-cal as already fixed: Snapcraft part steps can pick architecture-specific sources via build-for env vars (SNAPCRAFT_ARCH_BUILD_FOR/SNAPCRAFT_TARGET_ARCH); no new patch was made. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed as implemented without a new PR: Snapcraft part steps can select architecture-specific sources through build-time environment variables, as documented for step execution. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed. Snapcraft now supports architecture-specific sources via environment variables, enabling per-architecture package staging in parts. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
40
Confidence:
90
Support Request:
10
|
close stale | Feature request for architecture-specific sources in snapcraft parts. Open for over nine years with no maintainer interaction. The project has significantly evolved since then, making the suggestion obsolete. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
60
Confidence:
85
Support Request:
15
|
close stale | Request to add architecture-specific sources for snap parts. Unassessed and inactive for over 9 years with no maintainer engagement or discussion. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
40
Confidence:
90
Support Request:
10
|
close stale | Feature request to add architecture-specific sources for snapcraft parts. Unaddressed for nearly a decade with zero maintainer interaction or comments. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#4313
(confidence 78%)
Added SNAPCRAFT_ARCH_BUILD_FOR/SNAPCRAFT_ARCH_BUILD_ON envvars for core20, the mechanism cited as the resolution.
-
Related To:
snapcraft#4332
(confidence 55%)
Follow-up fixing errors when the build-for arch variable could not be evaluated in part step environments.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1813634 not reliable way to detect target architecture | snapcraft (launchpad) | open | Snapcraft 8.0.0 added explicit build-for architecture variables, superseding the ambiguous 3.0.1-era target_arch and SNAPCRAFT_ARCH_TRIPLET behavior. | |
| #151 Update sources added by craft-archives | craft-archives | open | Craft-generated deb822 sources now include explicit Architectures fields, including configured target architectures, so the requested cross-compilation behavior for craft-*.sources is already present. | |
| #3414 project loader: export SNAPCRAFT_TARGET_ARCH in build environment | snapcraft | merged | Merged PR #3414 (commit ff2cd96bb) added SNAPCRAFT_TARGET_ARCH to the global build environment in set_global_environment() for core22, alongside SNAPCRAFT_ARCH_TRIPLET. | |
| #5222 Support foreign architectures | snapcraft | closed | Foreign-architecture APT support landed in craft-archives#153 (64f1092), released in 2.1.0; Snapcraft added core24 cross-compilation coverage in b26b653c1. |