Issue: Dotnet global tools installed thought snaps don’t work
What is global tools?
It’s similar to npm install -g sometool
How do I understand the issue:
dotnet-sdk snap, snap patching RPATH (using patchelf) of
And patch by itself sets relative RPATH directories.
The issue is:
apphost binary is actually copied to user’s home directory while global tool is installed, when
dotnet tool install -g dotnetsay executed (or you can specify a path where to install it).
In my case it is:
and RPATH in elf is set to
it just can’t find required libraries and loads them from /usr/lib and and has a segfault.
We discussed it with Microsoft guys, and actually don’t know how to deal with it.
Github issue: https://github.com/dotnet/core-setup/issues/5186
I thought the workaround would be somehow tell the snap to patch elf with absolute path to libraries. What do you guys think?