← 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 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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged a revert of the deb_arch retrieval logic. The prior approach relied on dpkg-architecture, which is not universally installed and executes on the host before build environments. This resolves SNAPCRAFT-1K1.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2111 repo: rollback to using dpkg-deb for deb extraction snapcraft merged Merged a revert restoring dpkg-deb for deb extraction after debian.arfile caused severe performance regressions. The change addresses LP #1767119 by switching back to the faster dpkg-deb tool, resolving the build slowdown.
72%
#314 Replace dpkg-architecure calls in tests snapcraft merged Merged changes replacing dpkg-architecture calls in tests with snapcraft.common imports to improve dependency detection in snapcraft.yaml. Approved by maintainers after resolving a minor import style discussion.
71%
#898 Revert "Allow for architecture-specific packages (#876)" snapcraft merged Merged a revert of commit 9d6f953 to resolve LP: #1637282, as the original syntax was incompatible with deb multiarch. The change removes architecture-specific package handling and prompted the 2.22.1 release.
71%