Rpath with $ORIGIN fools snapcraft library bundling mechanism
Bug #1570895 reported by
Zygmunt Krynicki
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Kyle Fazzari | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I have a pre-built binary game using rpath with "$ORIGIN/lib64". Snapcraft expands that to $(pwd)/lib64 (eg /home/zyga/
[Impact]
* Wrong paths end up in the snap, which makes it to fail.
[Test Case]
* Make a snap wit $ORIGIN in rpath.
* Run snapcraft
* Install it and execute it.
[Regression Potential]
* This affects the files that end up in the snap. Many scenarios are covered by tests, but some exploratory would be good.
Changed in snapcraft: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in snapcraft: | |
assignee: | nobody → Kyle Fazzari (kyrofa) |
Changed in snapcraft: | |
status: | Confirmed → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.12 |
description: | updated |
affects: | Ubuntu Xenial → snapcraft (Ubuntu Xenial) |
Changed in snapcraft (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in snapcraft (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
no longer affects: | Ubuntu Xenial |
Changed in snapcraft (Ubuntu Yakkety): | |
status: | Confirmed → Fix Released |
Changed in snapcraft (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
I've witnessed the same problem, but I think I was able to avoid the issue by adding the path to LD_LIBRARY_PATH.