← Back to issue list

need a way to add foreign architecture to sources.list for build-packages/stage-packages

View original Launchpad issue

Metadata

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

Current evaluation

Foreign-architecture build- and stage-packages still fail in Launchpad chroots; a 2023 core22 arm64 reproducer confirms the requested repository setup remains unresolved.

Suggested action: keep open

Reason: A concrete core22 reproducer still reports that an available arm64 stage package cannot be installed, and the later comment says the problem remains despite tooling support. Keep it open as a valid bug, while further triage should define the intended automatic configuration and whether the newer target-repository approach fully replaces it.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 10 Complexity: 60 Confidence: 88 Actionability: 58

Issue body

If I specify: parts:   foo:     build-packages:     - on arm64: ["bar:armhf"] then the build will fail in LP with something like: Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory. Could not find a required package in 'build-packages': foo:armhf Build failed This is because the LP chroot for arm64 by design doesn't have foreign architecture support and there are no armhf lines configured in sources.list. I would expect that specifying "foo:i386" would update the build environment as necessary on amd64 so the package is installable, and the same for "foo:armhf" with arm64. This would be useful for stage-packages as well. I ran into this because I was trying to build some binaries with -m32 on arm64 and needed gcc-multilib. gcc-multilib is only available in the Ubuntu archive with "gcc-multilib:armhf", but this fails to install in LP using its arm64 chroot.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 10
Complexity: 60
Confidence: 88
Actionability: 58
keep open Foreign-architecture build- and stage-packages still fail in Launchpad chroots; a 2023 core22 arm64 reproducer confirms the requested repository setup remains unresolved.
stealth/space-bunny-alpha
Impact: 65
Quick Win: 19
Complexity: 62
Confidence: 88
Actionability: 78
keep open Foreign-architecture build- and stage-packages still fail in arm64 Launchpad chroots; the 2023 core22 reproducer remains unresolved, while core24 requires explicit target repositories.
stealth/space-bunny-alpha
Impact: 62
Quick Win: 24
Complexity: 48
Confidence: 86
Actionability: 74
needs triage Requests enabling foreign Ubuntu architectures in Launchpad build chroots so qualified build- or stage-packages such as gcc-multilib:armhf can install on arm64; open with no maintainer activity or labels.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 20
Staleness: 85
Complexity: 50
Confidence: 70
Support Request: 15
close stale Feature request (2018) to auto-add foreign-arch lines to sources.list so build-packages/stage-packages like foo:armhf install in LP chroots. Now addressable via the package-repositories feature (per-arch apt repos); issue unlabelled, 0 comments, inactive ~3 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 85
Support Request: 10
needs triage Feature request to automatically configure foreign architecture support in Launchpad chroots for build-packages and stage-packages. Currently unlabelled, unassigned, and inactive for over seven years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 70
Confidence: 90
Support Request: 10
needs triage Feature request to auto-configure foreign architecture support in build chroots for multiarch packages. Currently untriaged, zero maintainer comments, and inactive for nearly three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 85
Support Request: 10
needs triage Feature request to auto-configure foreign architecture support in LP chroots for multiarch build/stage packages. Currently untriaged and inactive for ~3 years.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#2012503 (confidence 91%)

    Open report of stage packages being fetched for the build architecture instead of the arm64 target.

  • Related To: snapcraft (launchpad)#1795430 (confidence 84%)

    Open report that host-qualified build-packages for cross-builds do not work as expected.

Related issues

Issue Project State Summary Similarity
#1476 foreign arch and sources setup for `build-packages` snapcraft closed Planned multi-arch host setup for build-packages was abandoned after redesign and prolonged inactivity; Launchpad bug #1827067 later reported it remained unresolved.
73%