← Back to issue list

repo: revert logic to get deb_arch

View original Github issue

Metadata

Project
snapcraft
Number
#3083
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged #3083 as 5d20937cb, reverting host-side deb_arch lookup to avoid requiring dpkg-architecture before entering the build environment (SNAPCRAFT-1K1).

Resolution: closed resolved

Reason: PR #3083 merged into snapcraft via commit 5d20937cb. It removed the problematic host dpkg-architecture dependency, resolving SNAPCRAFT-1K1.

Evaluated by: mr-cal-bot

No scores available.

Issue body

dpkg-architecture is not installed on all systems and the code path is run from the host before entering build environments. Fixes SNAPCRAFT-1K1 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #3083 as 5d20937cb, reverting host-side deb_arch lookup to avoid requiring dpkg-architecture before entering the build environment (SNAPCRAFT-1K1).
stealth/space-bunny-alpha — closed resolved Merged PR #3083 (5d20937cb), reverting host-side deb_arch lookup that required dpkg-architecture, fixing SNAPCRAFT-1K1.
qwen/qwen3.6-35b-a3b — — Merged a revert of the deb_arch retrieval logic to fix SNAPCRAFT-1K1. It removes reliance on dpkg-architecture, unavailable on some systems and executed on the host before build environments. The change modifies one file, reducing 14 lines.
qwen3.6-35b-a3b-mtp-q6 — — Merged change reverting deb_arch retrieval logic. dpkg-architecture is unavailable on some systems and runs on the host before build environments. Resolves SNAPCRAFT-1K1.

Update history

No update history recorded yet.

Related work

  • Caused By: snapcraft#3080 (confidence 85%)

    The preceding multi-arch stage-package change appears to have introduced the host-side deb_arch lookup reverted here.

Related issues

Issue Project State Summary Similarity
#2111 repo: rollback to using dpkg-deb for deb extraction snapcraft merged Merged as commit c008b93be: reverts fa287bec3 (#1878), restoring dpkg-deb for deb extraction after debian.arfile caused severe build slowdowns (18s vs 5m10s pull). Fixes LP #1767119.
73%
#1878 repo: use debian.arfile instead of dpkg-deb snapcraft merged Merged as commit fa287bec3: snapcraft/internal/sources/_deb.py stopped shelling out to dpkg-deb and used debian.arfile to extract debs, avoiding tar/sshfs utime failures. Later reverted by #2111 (c008b93be).
72%
#4298 pkg: error: --add-architecture takes exactly one argument snapcraft closed Duplicate of #4289; the underlying dpkg architecture regression was fixed in craft-archives 1.1.3 via PR #96 (commit 06b1ca2).
71%
#898 Revert "Allow for architecture-specific packages (#876)" snapcraft merged Merged commit 5ac55528f reverting #876 (9d6f953a1) because its architecture-specific package syntax could not support deb multiarch.
71%