patchelf missing snap libdir rpath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Building a Flutter app into a classic snap, I found the patchelf machinery isn't consistent:
```
Executing action
Patch ELF file: 'bin/lib/
Current rpath=['$ORIGIN']
Proposed rpath=['$ORIGIN', '/snap/
Patch ELF file: 'bin/lib/
Current rpath=[
Proposed rpath=['$ORIGIN', '/snap/
…
Lint warnings:
- classic: bin/lib/
- classic: bin/lib/
```
You can see that the "Proposed rpath" is inconsistent with what the linter wants (missing the snap libdir).