patchelf missing snap libdir rpath
Metadata
Current evaluation
patchelf inconsistent rpath for classic snaps: proposed rpath missing snap libdir that linter expects. Unlabelled, 1002 days old, no maintainer engagement.
Suggested action: needs triage
Reason: The issue is a well-structured bug report showing clear inconsistency between patchelf's proposed rpath and linter expectations for classic snaps, but it has no labels, no comments, and no maintainer engagement after 1002 days. Per guidelines, even well-structured bug reports need triage if no maintainer has acknowledged them. The issue may still be relevant or may have been fixed in the intervening ~3 years.
Impact:
60
Quick Win:
36.0
Staleness:
85
Complexity:
40
Confidence:
50
Support Request:
10
Issue body
Building a Flutter app into a classic snap, I found the patchelf machinery isn't consistent:
```
Executing action
Patch ELF file: 'bin/lib/libflutter_linux_gtk.so'
Current rpath=['$ORIGIN']
Proposed rpath=['$ORIGIN', '/snap/core22/current/lib/x86_64-linux-gnu']
Patch ELF file: 'bin/lib/libxdg_icons_plugin.so'
Current rpath=['/root/parts/launcher/build/linux/flutter/ephemeral']
Proposed rpath=['$ORIGIN', '/snap/core22/current/lib/x86_64-linux-gnu']
…
Lint warnings:
- classic: bin/lib/libflutter_linux_gtk.so: ELF rpath should be set to '$ORIGIN:$ORIGIN/../../usr/lib/x86_64-linux-gnu:/snap/core22/current/lib/x86_64-linux-gnu'. (https://snapcraft.io/docs/linters-classic)
- classic: bin/lib/libxdg_icons_plugin.so: ELF rpath should be set to '$ORIGIN/../../usr/lib/x86_64-linux-gnu:$ORIGIN:/snap/core22/current/lib/x86_64-linux-gnu'. (https://snapcraft.io/docs/linters-classic)
```
You can see that the "Proposed rpath" is inconsistent with what the linter wants (missing the snap libdir).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
36.0
Staleness:
85
Complexity:
40
Confidence:
50
Support Request:
10
|
needs triage | patchelf inconsistent rpath for classic snaps: proposed rpath missing snap libdir that linter expects. Unlabelled, 1002 days old, no maintainer engagement. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
20
|
close stale | patchelf generates inconsistent rpaths for snap builds, missing the expected snap libdir path compared to linter requirements. Unlabeled, unacknowledged, and inactive for ~2.6 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
92
Complexity:
65
Confidence:
78
Support Request:
10
|
needs triage | Unlabelled issue reporting that patchelf integration fails to include the snap libdir in ELF rpath, causing linter warnings. No maintainer response or comments in over 2.5 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
92
Complexity:
45
Confidence:
75
Support Request:
10
|
needs triage | Reports inconsistent rpath handling in patchelf when building Flutter classic snaps. Proposed rpath lacks expected snap libdir, triggering linter warnings. Open for nearly three years with no maintainer response, labels, or assignee. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
60
Confidence:
80
Support Request:
10
|
close stale | patchelf sets inconsistent rpaths for Flutter snap binaries, missing the snap libdir expected by linters. Untriaged, no maintainer response after ~2.5 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1759740 Library discovery for rpath patching needs to be deterministic | snapcraft (launchpad) | open | Snapcraft's rpath patcher may pick the wrong of several same-named libraries in a snap because its directory walk is nondeterministic and doesn't follow ld.so search order. Filed by a maintainer ~8.4 years ago; no labels, comments, or activity since. | |
| #1798881 patchelf fails on i386 vscode | snapcraft (launchpad) | open | i386 vscode snap build fails because patchelf 0.9 cannot patch the 32-bit ELF (virtual address space underrun); no maintainer response, unlabelled, ~7.5 years old. | |
| #1742707 patchelf is missing from snapcraft Depends: | snapcraft (launchpad) | closed | Closed. Package dependencies were updated to include patchelf, resolving the missing binary error during snap builds. | |
| #1736861 classic snap fails to build with "cannot find section" | snapcraft (launchpad) | closed | Closed without comments or resolution. The snapcraft 2.37 regression causing patchelf failures in classic snaps was abandoned or resolved in a subsequent release. |