Is it possible to directly access a file inside the core snap ? In my case I need to create a symlink of
/snap/core/current/usr/lib/x86_64-linux-gnu/libffi.so.6 inside my snap’s
$SNAP_USER_COMMON and export that directory to
Currently I achieve a similar result by “staging” (as part of stage-packages) libffi-dev.
Perhaps I’m missing something, but why do you need to symlink? Isn’t the core snap usr/lib/(triplet) in the LD_LIBRARY_PATH already? Thus shouldn’t the library be found by whatever application is attempting to load it?
core is your base, then that file will simply be
/usr/lib/x86_64-linux-gnu/libffi.so.6, and you should indeed be able to just use it.
Its complex, pypy3 binaries that the upstream provides are compiled on Raspbian, which has libffi.so.5, so those binaries expect libffi.so.5 in library path but Ubuntu 16.04 has libffi.so.6, so to work that around I create a symlink and add that location to LD_LIBRARY_PATH.
Sorry, you are right, it seems the problem was on my end, I was creating a symlink to
/usr/lib/x86_64-linux-gnu/libffi.so which doesn’t exits on armhf.