Closed seb128 closed 1 year ago
I suspect that the true problem is that libunity-protocol-private.so is placed at /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu/libunity/libunity-protocol-private.so, and that folder isn't in the LD_LIBRARY_PATH. So there are two solutions, in my opinion:
Unless, of course, that library is linked at runtime instead of during loading. In that case, maybe the only solution is to use layouts to map it at /usr/lib/x86_64-linux-gnu/libunity
Confirmed: with this, it creates the snap fine.
- -Dunity_support=true
build-environment:
- LD_LIBRARY_PATH: ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/libunity
Trying to build shotwell -Dunity_support=true the builds fails because the /usr/lib/x86_64-linux-gnu/libunity/libunity-protocol-private.so.0 symbols aren't found
it's probably because
Which isn't the right location for the snap. Perhaps we need to build libunity with the right path from source to workaround the issue?