snapcraft fails when specifying 'any' architecture in build packages
Metadata
Current evaluation
Fixed by snapcore/snapcraft PR #1322, which restored support for architecture-qualified build packages such as python:any.
Resolution: closed resolved
Reason: The maintainer marked the problem critical and linked PR #1322 as the resolution. That PR addressed Snapcraft's handling of the apt-style :any architecture qualifier in build packages.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When specifying a build package like python:any, snapcraft fails with this error message:
Could not find a required package in 'build-packages': "The cache has no package named 'python:any'"
Steps to reproduce:
$ snapcraft init
edit my-part in snap/snapcraft.yaml to add:
build-packages: ['python:any']
$ snapcraft
I think we can just drop the 'any', to match the behaviour of apt.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by snapcore/snapcraft PR #1322, which restored support for architecture-qualified build packages such as python:any. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by PR #1322, merged as commit 110e7e34f, which made the APT cache ignore the 'any' architecture qualifier in build packages. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR snapcore/snapcraft#1322 (commit 110e7e34f), which excludes the 'any' architecture when caching build-packages in the APT cache; fixes build failure for python:any. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft fixed the APT-cache failure for build packages such as python:any by ignoring the any architecture qualifier; merged in snapcore/snapcraft#1322. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1322 (commit 110e7e34f), making the build-package APT cache ignore the :any architecture suffix. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft failed when build packages used the ':any' architecture suffix. The reporter suggested stripping the suffix to match apt behavior, but no fix or pull request was implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Snapcraft failed when build-packages specified the ':any' architecture suffix. The reporter suggested automatically stripping the suffix to match apt behavior. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The suggested workaround is to omit the :any suffix from build package names to match apt behavior. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Snapcraft failed when using the :any architecture suffix in build-packages. No fix or pull request was submitted, and the report was abandoned after nine years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1322
(confidence 98%)
The maintainer directly linked this PR in the issue's final resolution comment.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4214 snapcraft 7.4.3 doesn't adequately complain about non-existent architectures | snapcraft | closed | Fixed in Snapcraft 8: invalid build-on architectures now produce a clear validation error listing all supported architectures. | |
| #1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 | snapcraft (launchpad) | closed | Fixed in snapcore/snapcraft#1089 by deriving the build architecture from the compiler target, preventing 32-bit ARM artifacts from being mislabeled arm64. | |
| #1862256 snapcraft should complain loudly when building base: core20 snap on i386 | snapcraft (launchpad) | closed | Closed as superseded: improved architecture parsing rejects unsupported core20/i386 builds, making a dedicated check unnecessary; snapcraft#4392 improved this handling. | |
| #1560481 snapcraft prints 'architectures' when trying to build a gadget snap | snapcraft (launchpad) | closed | Gadget-snap build support was added in commit 5610f0eaf (PR #886). | |
| #393 Support architecture all packages when snapping | snapcraft | merged | Merged snapcraft#393 as ca2301a9d, making directory snaps default to architecture "all" when snap.yaml omits architectures; merge commit: 0adafaa0f. |