automatic dep resolution fails with link loops
Metadata
Current evaluation
The 2018 report describes valid stage-package staging failure on X11/X11 symlink-to-parent; craft-parts later added a self-link guard, but the issue has no confirmation or closing reference.
Suggested action: keep open
Reason: The precise symlink layout and SameFileError make this a credible, reproducible staging bug. Craft-parts commit 98281de6 now guards link_or_copy with source.samefile(destination), but that later fix has not been linked to this report and its version coverage is unknown, so closure requires confirmation.
Evaluated by: mr-cal-bot
Impact:
45
Quick Win:
25
Complexity:
35
Confidence:
88
Actionability:
85
Issue body
I'm building a snap that depends on libsdl2, which depends on several X11 packages. One of these packages installs `/usr/bin/X11/` and `/usr/bin/X11/X11`, which is a link to `.`. When snapcraft encounters this structure and tries to copy it into the snap, it fails:
"'/myapp/package/parts/love/install/usr/bin/X11' and '/myapp/package/stage/usr/bin/X11/X11' are the same file"
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
45
Quick Win:
25
Complexity:
35
Confidence:
88
Actionability:
85
|
keep open | The 2018 report describes valid stage-package staging failure on X11/X11 symlink-to-parent; craft-parts later added a self-link guard, but the issue has no confirmation or closing reference. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
12
Complexity:
50
Confidence:
60
Actionability:
60
|
needs triage | Automatic dependency resolution fails when packages contain symlink loops (e.g., /usr/bin/X11/X11 -> .), causing file conflict errors during snap building. | |
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
18
Staleness:
90
Complexity:
55
Confidence:
55
Support Request:
10
|
needs triage | Snapcraft's automatic dependency resolution fails when a package installs a symlink loop (X11/X11 -> .), erroring that install and stage paths are the same file. Unlabelled, zero comments, no maintainer activity in ~8.7 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
45
Confidence:
90
Support Request:
15
|
close stale | Snapcraft automatic dependency resolution fails when copying files containing symlink loops. The report is unlabelled, has zero comments, and is over 8 years old with no maintainer engagement. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
100
Complexity:
35
Confidence:
85
Support Request:
0
|
close stale | Snapcraft fails to copy directories with symlink loops, throwing a 'same file' error. The issue is extremely old (over 8 years) with no activity or maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
45
Confidence:
85
Support Request:
10
|
close stale | Snapcraft automatic dependency resolution fails on X11 symlink loops. Inactive for over 8 years with no maintainer response or labels. Likely irrelevant due to major snapcraft architecture changes. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
craft-parts#1628
(confidence 88%)
Commit 98281de6 prevents file deletion during self-linking and adds the same-file guard relevant to this failure.
Related issues
No related issues found above the similarity threshold.