← Back to issue list

Fix for bug #1572664 had broken my snap package build

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1575188
Type
issue
State
open
Author
~townsend
Labels
—
Created
Updated
Closed
—

Current evaluation

The 2016 chroot build failure involved dangling symlinks; later commit 221a43803 stopped hard-linking symlinks, so the reported build path appears resolved.

Suggested action: close resolved

Reason: Commit 221a43803 (snapcraft#3174), “do not try to create hardlinks to symlinks,” directly changes the copy path that caused ENOENT for dangling links. The analogous remote-build case was also fixed in craft-application 7.1.1 through canonical/craft-application#1104, making a separate allow-broken-symlinks option unnecessary for this regression.

Evaluated by: mr-cal-bot

Impact: 43 Quick Win: 23 Complexity: 35 Confidence: 88 Actionability: 82

Issue body

I'm trying to build a snap package that contains a chroot. In the chroot are many symlinks. Those symlinks point to dead links from the host's perspective, but when inside the chroot, the symlinks are fine. I could build the snap before the fix for bug #1572664, but now it fails due to dead symlinks. Here is the output: $ snapcraft snap Skipping pull puritine (already ran) Skipping pull libertine (already ran) Preparing to build puritine Building puritine [Errno 2] No such file or directory: '/home/townsend/puritine/puritine/parts/puritine/build/libertine-data/libertine-container/puritine/rootfs/etc/alternatives/policytool.1.gz' Is it possible to have some sort of build option to allow dead symlinks when building a snap package?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 43
Quick Win: 23
Complexity: 35
Confidence: 88
Actionability: 82
close resolved The 2016 chroot build failure involved dangling symlinks; later commit 221a43803 stopped hard-linking symlinks, so the reported build path appears resolved.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 6
Complexity: 74
Confidence: 82
Actionability: 55
keep open Snap packaging of relocated chroots fails on dangling symlinks after the #1572664 hardening; maintainers discussed a warning or devmode escape hatch, but no resolution is recorded.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 9
Complexity: 40
Confidence: 60
Actionability: 50
needs triage Dead symlinks in chroot break snap builds after a fix for bug #1572664; no maintainer response, no labels, no assignee.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 19
Staleness: 95
Complexity: 45
Confidence: 55
Support Request: 30
needs triage Reporter's snap build with a chroot containing dead-from-host symlinks broke after a fix for Launchpad bug #1572664; requests a build option to tolerate dead symlinks. No labels, no comments, no maintainer response; ~10 years old.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Open issue from ~10 years ago reporting snapcraft build failures due to dead symlinks in chroots after a previous fix. No maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 95
Support Request: 25
close stale User reports snapcraft build failure due to dead symlinks in a chroot after a previous fix. Issue has no comments, labels, or activity for over 10 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 70
close stale Unassessed request for a snapcraft build option to handle dead symlinks in chroots. Reported over 10 years ago following a fix for bug #1572664, with no maintainer interaction or labels.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3174 (confidence 90%)

    Commit 221a43803 avoids hard-linking symlinks, preventing target-resolution failures for dangling links.

  • Related To: snapcraft#5384 (confidence 86%)

    A modern report of dangling symlinks being followed during remote builds; its copy failure was fixed through craft-application#1104.

  • Likely Fixed By: canonical/craft-application#1104 (confidence 82%)

    Included in craft-application 7.1.1 and addresses copying dangling symlinks in the modern build path.

Related issues

No related issues found above the similarity threshold.