← Back to issue list

Update sources added by craft-archives

View original Github issue

Metadata

Project
craft-archives
Number
#151
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed
—

Current evaluation

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.

Suggested action: close resolved

Reason: At pinned revision 7179169c00a32a371bf39d572539703c5a165a06, apt_sources_manager.py emits Architectures in _construct_deb822_source for every generated deb822 source and forwards PackageRepositoryApt.architectures; unit tests assert the field in craft-*.sources. This directly covers the reported example, while #150 and PR #153 (64f1092) provide related prior work for Ubuntu.sources.

Evaluated by: mr-cal-bot

Impact: 58 Quick Win: 31 Complexity: 32 Confidence: 90 Actionability: 78

Issue body

### What needs to get done #150 sets architectures for sources in `/etc/apt/sources.list.d/ubuntu.sources`. It doesn't set architectures for other repositories added by craft-archives in `/etc/apt/sources.list.d/craft-*.sources`. For example, consider the following project file snippet: ```yaml platforms: riscv64: build-on: [amd64] build-for: [riscv64] package-repositories: - type: apt # architectures: [amd64] - won't this solve the problem? formats: [deb] components: [main] suites: [noble] key-id: F23C5A6CF475977595C89F51BA6932366A755776 url: https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu - type: apt architectures: [riscv64] formats: [deb, deb-src] components: [main] suites: [noble, noble-updates, noble-backports] key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C url: http://ports.ubuntu.com/ubuntu-ports ``` ### Why it needs to get done To support cross-compiling in *craft applications.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 58
Quick Win: 31
Complexity: 32
Confidence: 90
Actionability: 78
close resolved 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.
stealth/space-bunny-alpha
Impact: 58
Quick Win: 44
Complexity: 20
Confidence: 97
Actionability: 94
close resolved Craft-generated deb822 repositories now include Architectures, using explicit package-repository values or the host architecture; the #151 enhancement is implemented.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 34
Complexity: 40
Confidence: 80
Actionability: 80
keep open Enhancement to set architectures for craft-*.sources files to support cross-compiling. Issue #150 was closed without implementation but the gap remains.
qwen/qwen3.8-27b
Impact: 55
Quick Win: 28
Staleness: 55
Complexity: 50
Confidence: 70
Support Request: 10
keep open Enhancement to set architectures on craft-*.sources files (not just ubuntu.sources) for cross-compilation support. Triaged by maintainer, assigned to tigarmo, internal ticket CRAFT-4112 created.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 10
close stale Enhancement to ensure craft-archives sets architectures for custom apt sources, matching ubuntu.sources behavior. Triaged and internally assigned, but inactive for over 11 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 25
Confidence: 85
Support Request: 0
keep open Enhancement to set architecture flags in craft-archives generated apt sources for cross-compilation. Currently triaged but inactive for nearly a year.

Update history

No update history recorded yet.

Related work

  • Related To: craft-archives#150 (confidence 99%)

    The issue explicitly follows #150; #150 was addressed by PR #153 (64f1092) for Ubuntu.sources, while the current implementation also covers craft-generated sources.

Related issues

Issue Project State Summary Similarity
#1648665 Architecture-specific sources for parts snapcraft (launchpad) closed 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.
71%
#153 feat: support foreign architectures craft-archives merged Merged PR #153 as commit 64f1092, adding APT foreign-architecture support for deb822-based Ubuntu sources, including core24; released in craft-archives 2.1.0.
71%
#150 Support foreign architectures craft-archives closed Foreign-architecture support shipped in craft-archives 2.1.0 via merged PR #153 (64f1092), replacing prototype #149 and enabling cross-compilation dependencies.
71%