← Back to issue list

package-repositories assumes architecture

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft 7.1.3 injects Architectures: arm64 into an APT source when package-repositories omits architectures; the report is old, untriaged, and may be superseded by later craft-archives handling.

Suggested action: needs triage

Reason: The body provides a minimal YAML example and the exact generated-source discrepancy, but the issue has no labels, assignee, or maintainer response. Current code delegates package repositories to craft-archives, whose inspected source writer conditionally emits Architectures; verify the historical 7.1.3 path and whether migration ce23bc7d1 (#4037) resolved the behavior before closing.

Evaluated by: mr-cal-bot

Impact: 52 Quick Win: 26 Complexity: 38 Confidence: 76 Actionability: 82

Issue body

snapcraft: 7.1.3 base: core20 snapcraft.yaml: package-repositories: - type: apt ppa: snappy-dev/image This results in: snapcraft-ppa-snappy-dev_image.sources with the following content: Types: deb URIs: http://ppa.launchpad.net/snappy-dev/image/ubuntu Suites: focal Components: main Architectures: arm64 If "architectures" was not specified in "package-repositories", snapcraft should not assume it, and omit "Architectures" in the generated source file.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 52
Quick Win: 26
Complexity: 38
Confidence: 76
Actionability: 82
needs triage Snapcraft 7.1.3 injects Architectures: arm64 into an APT source when package-repositories omits architectures; the report is old, untriaged, and may be superseded by later craft-archives handling.
stealth/space-bunny-alpha
Impact: 55
Quick Win: 36
Complexity: 25
Confidence: 90
Actionability: 88
needs triage Snapcraft 7.1.3 adds arm64 to generated apt PPA source files when package-repositories omits architectures, preventing architecture-independent repository configuration.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 35
Staleness: 90
Complexity: 30
Confidence: 50
Support Request: 20
needs triage snapcraft 7.1.3 incorrectly assumes architecture in package-repositories, hardcoding it in generated .sources files instead of omitting the field when not specified.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale snapcraft 7.1.3 explicitly sets Architecture in generated apt sources files for PPAs even when unspecified, preventing multi-arch builds. Unlabelled, no maintainer response, inactive for ~4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 15
close stale Reports snapcraft 7.1.3 automatically assumes an architecture when generating apt source files from package-repositories, even when unspecified. No maintainer response in nearly 4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale snapcraft 7.1.3 automatically adds an Architectures field to generated apt source files when package-repositories lacks an explicit architecture, contrary to expected behavior. Untriaged, inactive for nearly four years.

Update history

Date Change
created

Related work

  • Related To: craft-archives#151 (confidence 78%)

    The open upstream issue concerns Architectures fields in craft-archives-generated deb822 sources and may clarify the intended behavior, but it is not a confirmed fix.

  • Likely Fixed By: snapcraft#4037 (confidence 55%)

    Commit ce23bc7d1 migrated package-repository handling to craft-archives, which may have removed Snapcraft's architecture injection, although the history includes a revert and needs verification.

Related issues

Issue Project State Summary Similarity
#1973213 package-repositories with i386 doesn't enable the arch snapcraft (launchpad) closed Fixed by merged PR canonical/snapcraft#3740: package-repository architectures now run dpkg --add-architecture. Merge commit: 7b848f76d.
75%
#3322 package repositories: drop $SNAPCRAFT_APT_HOST_ARCH variable snapcraft merged Merged PR #3322 removed support for $SNAPCRAFT_APT_HOST_ARCH before package-repositories stabilization in commit 17da34692.
71%
#4289 dpkg --add-architecture fails when using package-repositories snapcraft closed Fixed in craft-archives 1.1.3 via canonical/craft-archives#96 (06b1ca2), reordering dpkg options so --root precedes --add-architecture; rolled out via Snapcraft candidate.
70%