← Back to issue list

automatic dep resolution fails with link loops

View original Launchpad issue

Metadata

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

Current evaluation

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.

Suggested action: needs triage

Reason: The report is a genuine bug (clear error message and reproducible scenario: X11 package installs /usr/bin/X11/X11 as a symlink to '.'), but it has no labels, no assignee, and zero comments in ~8.7 years, so it has never been triaged. Code inspection tools failed (no pinned SHA), so I could not confirm whether the modern craft-parts-based copy logic still hits this; a maintainer should verify reproducibility on a current base before closing, since the 2015-era copy code has since been rewritten.

Impact: 40 Quick Win: 18.0 Staleness: 90 Complexity: 55 Confidence: 55 Support Request: 10

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
qwen/qwen3.8-27b
Impact: 40
Quick Win: 18.0
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.
qwen3.6-35b-moe-q4
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snapcraft automatic dependency resolution crashes on symlink loops, causing duplicate file errors. Unaddressed for over 8 years with no maintainer response or labels.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.