Hello everyone,
on Xubuntu 24.04, I’m trying to create a snap application from a minimal .NET 8.0 project using GtkSharp.
The project was generated from the GtkSharp template, a sort of HelloWorld.
Then I run it, and all seems to work fine.
I’m planning to generate a snap for another of my real application that displays the same warning, I don’t know if the warning can cause program instability.
A web search shows that this is not a new problem.
What can be done to remove it ?
liblttng-ust is in the liblttng-ust1 package which you could add to your part with a stage-packages entry, but I fear there is no such ancient version of it in the archive as your binary looks for, so it might or might not work to quieten the linter message
@ogra: thanks for your answer.
Yes I tried to add liblttng-ust1 as stage-packages, but the available version is liblttng-ust.so.1, while the need is liblttng-ust.so.0.
With:
Heh, yeah, as suspected (and it added even more noise)
You could either build it from upstream source in its own part with the expected old version or simply override the linter warning in your snapcraft.yaml if the lib is not actually used by your binaries …
I’m going to try the 2nd solution because my dotnet projects work fine without being packaged in snap, and even packaged in AppImage format, while liblttng-ust.so.0 is not present, and the
dotnet publish command doesn’t generate any warnings.
So, as explained in the doc, I try to ignore the file with:
I can’t find the right way.
The file libcoreclrtraceptprovider.so is located in /usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.15/ and in /snap/testgtksharp/current/ which should correspond to $SNAP ?
I’ve tried all these paths but it fails.
You need to suppress $SNAP and the first slash (take another look at the doc example I linked), the path needs to be relative to the top level of the snap… If it actually lives in the very top level of your snap you don’t need any path at all and just the filename…