← Back to issue list

ProjectOptions() having wrong values

View original Launchpad issue

Metadata

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

Current evaluation

ProjectOptions() returns host machine values instead of respecting --target-arch, causing inconsistent cross-compilation settings (e.g. is_cross_compiling=False, target_arch=arm64 when --target-arch armhf is used). Unlabelled, no comments, inactive for over 4 years.

Suggested action: needs triage

Reason: The issue is unlabelled with zero comments and no maintainer interaction for over 4 years, so it has not been triaged. However, a commit 'project: use correct host arch when target arch is set (#3831)' exists in the repo history that may address this exact problem, so it should be triaged to determine whether it is already fixed before any closure decision.

Impact: 50 Quick Win: 27.5 Staleness: 85 Complexity: 45 Confidence: 55 Support Request: 10

Issue body

ProjectOptions() reports host machine value, ignoring --target-arch value. This is inconsistent with values passed later the plugins in the build script For example for --target-arch armhf ProjectOptions().is_cross_compiling: False ProjectOptions().target_arch: arm64 ProjectOptions().cross_compiler_prefix: aarch64-linux-gnu- ProjectOptions().arch_triplet: aarch64-linux-gnu ProjectOptions().deb_arch: arm64 ProjectOptions().kernel_arch: arm64 yet in the build.sh values are: export SNAPCRAFT_ARCH_TRIPLET="arm-linux-gnueabihf" export SNAPCRAFT_TARGET_ARCH="armhf"

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 50
Quick Win: 27.5
Staleness: 85
Complexity: 45
Confidence: 55
Support Request: 10
needs triage ProjectOptions() returns host machine values instead of respecting --target-arch, causing inconsistent cross-compilation settings (e.g. is_cross_compiling=False, target_arch=arm64 when --target-arch armhf is used). Unlabelled, no comments, inactive for over 4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 5
needs triage ProjectOptions() returns host architecture values instead of respecting --target-arch, causing inconsistent cross-compilation settings. Unlabelled and inactive for over 4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 50
Confidence: 80
Support Request: 10
needs triage ProjectOptions() ignores --target-arch and returns host machine values instead of cross-compile targets. Unlabeled, no maintainer response, inactive for ~4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 50
Confidence: 85
Support Request: 10
close stale Reports incorrect cross-compilation values in ProjectOptions() when --target-arch is specified, showing host values instead of target. Unlabelled, no maintainer comments, inactive for nearly 4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 45
Confidence: 75
Support Request: 10
needs triage ProjectOptions() incorrectly returns host architecture values instead of --target-arch values, breaking cross-compilation flags. Untriaged with no maintainer response after over four years.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#3831 (confidence 40%)

    Commit 'project: use correct host arch when target arch is set (#3831)' appears to address the same target-arch/host-arch inconsistency reported here, though the exact scope of the fix relative to ProjectOptions fields is unconfirmed.

Related issues

No related issues found above the similarity threshold.