PATH auto extended with stage paths
Metadata
Current evaluation
Issue about snapcraft auto-extending PATH with stage paths causing cross-build failures. Untriaged, 1261 days old, no comments or labels.
Suggested action: needs triage
Reason: The issue has zero comments, no labels, and no maintainer engagement after 1261 days. The concern about stage paths in PATH breaking cross builds is a legitimate architectural question, and the current craft-parts code (craft_parts/executor/environment.py) still collects bin_paths from stage_dir and adds them to PATH. However, without maintainer input, it's unclear if this is still relevant or has been addressed elsewhere.
Impact:
50
Quick Win:
22.5
Staleness:
85
Complexity:
55
Confidence:
60
Support Request:
20
Issue body
snapcraft automatically adds <stage>/usr/bin and <stage>/usr/sbin, additionally those paths are added to the beginning.
This would usually work for native builds, but causes problems when running cross builds
e.g. including python in the snap, would make the next part fail, if it tries to use python from the stage directory, which is of the wrong architecture.
As a minimum, this should be avoided if cross-build is detected.
It is still questionable if this should be the default behaviour rather than in control of the snapcraft.yaml
e.g. staging JRE in the snap, vs using JDK from the build environment.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
22.5
Staleness:
85
Complexity:
55
Confidence:
60
Support Request:
20
|
needs triage | Issue about snapcraft auto-extending PATH with stage paths causing cross-build failures. Untriaged, 1261 days old, no comments or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
65
Confidence:
80
Support Request:
10
|
needs triage | Snapcraft prepends stage paths to PATH, causing architecture mismatches during cross-builds. The report is unlabelled, has zero maintainer comments, and has been inactive for over three years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
65
Confidence:
85
Support Request:
15
|
needs triage | Snapcraft automatically prepends stage paths to PATH, causing architecture mismatches in cross-builds. Unlabeled, no maintainer response, inactive for over 3 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
65
Confidence:
80
Support Request:
15
|
needs triage | Snapcraft automatically prepends stage paths to PATH, causing cross-build architecture mismatches. Unlabeled, zero maintainer comments, inactive for over three years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
92
Complexity:
60
Confidence:
85
Support Request:
10
|
needs triage | Snapcraft automatically prepends stage paths to PATH, causing architecture mismatches in cross-builds. Untriaged, no maintainer response, inactive for over 3 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1989139 Duplicated /root/stage in path | snapcraft (launchpad) | open | Bug report about duplicated /root/stage in Snapcraft 7.1.3 causing build failures. Issue is 4 years old with no maintainer interaction or labels. |