← Back to issue list

patchelf missing snap libdir rpath

View original Launchpad issue

Metadata

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

Current evaluation

Classic Flutter builds show patchelf omitting bundled usr/lib RPATH entries required by the classic linter; the concrete mismatch remains untriaged with no linked fix.

Suggested action: needs triage

Reason: The report gives a concrete contradiction: libflutter_linux_gtk.so is patched with $ORIGIN and the core22 libdir, but the linter additionally requires $ORIGIN/../../usr/lib/x86_64-linux-gnu; libxdg_icons_plugin.so shows the same mismatch. With no labels, maintainer response, minimal reproducer, or linked fix—and the current patcher and linter still sharing dependency-derived RPATH calculation—this valid report needs triage rather than closure.

Evaluated by: mr-cal-bot

Impact: 46 Quick Win: 20 Complexity: 42 Confidence: 84 Actionability: 76

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
stealth/space-bunny-alpha
Impact: 46
Quick Win: 20
Complexity: 42
Confidence: 84
Actionability: 76
needs triage Classic Flutter builds show patchelf omitting bundled usr/lib RPATH entries required by the classic linter; the concrete mismatch remains untriaged with no linked fix.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 14
Complexity: 52
Confidence: 72
Actionability: 64
needs triage Classic Flutter build reported patchelf/linter RPATH disagreement; no Snapcraft version or minimal recipe was supplied, and the open report remains untriaged.
stealth/space-bunny-alpha
Impact: 36
Quick Win: 11
Complexity: 57
Confidence: 86
Actionability: 68
needs triage Classic Flutter build: patchelf and the classic linter derive conflicting RPATHs. Concrete core22 output is provided, but no Snapcraft version or minimal recipe accompanies the unreviewed report.
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 36
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.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.