← Back to issue list

options: use actual userspace architecture for building in 32bit

View original Github issue

Metadata

Project
snapcraft
Number
#1060
Type
pull request
State
merged
Author
3v1n0
Labels
—
Created
Updated
Closed

Current evaluation

PR #1060 merged as commit 31c45dd51, replacing platform.machine() with Python's userspace architecture detection so builds in 32-bit containers on 64-bit hosts detect the right arch. Fixes LP #1641123.

Resolution: closed resolved

Reason: The PR was approved and merged into master as commit 31c45dd51 ("options: use actual userspace architecture for building in 32bit (#1060)"), which switched architecture detection to platform.architecture() after review by @adconrad preferred the Python-based approach over parsing 'gcc -v'. This fixed the32-bit container misdetection tracked by Launchpad bug #1641123.

Evaluated by: mr-cal-bot

No scores available.

Issue body

It might happen in 32bit containers running on 64bit hosts, that they are detected as 64bit systems since platform's machine() returns the kernel's architecture, not the userspace one. Using `gcc -v` `Target:`'s value instead LP: [#1641123](https://bugs.launchpad.net/snapcraft/+bug/1641123)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #1060 merged as commit 31c45dd51, replacing platform.machine() with Python's userspace architecture detection so builds in 32-bit containers on 64-bit hosts detect the right arch. Fixes LP #1641123.
stealth/space-bunny-alpha — closed resolved Merged #1060 (commit 31c45dd51) to use Python-based userspace architecture detection, fixing builds in 32-bit containers on 64-bit hosts and addressing LP #1641123.
qwen/qwen3.6-35b-a3b — — Merged fix for 32-bit userspace architecture detection in containers on 64-bit hosts. Updated per review to use Python platform detection instead of parsing gcc output, ensuring reliable build configuration. Resolves LP #1641123.
qwen3.6-35b-a3b-mtp-q6 — — Merged after switching from parsing gcc -v output to Python's platform architecture detection. This resolves 32-bit architecture misidentification in containers on 64-bit hosts, addressing LP #1641123.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#1857 (confidence 60%)

    Later commit b451f48fc 'grammar: make on statement use host architecture' builds on the same host/userspace arch distinction.

Related issues

No related issues found above the similarity threshold.