I’ve been using the messaging gateway bitlbee (from the apt package bitlbee-dev), with additional libraries such as telegram-purple, which I built from source. In a fresh system:
- install bitlbee-dev (plus a few build dependencies)
- build telegram-purple, make install
works just fine.
So I wanted to reproduce the process and bundle this into a snap.
My snapcraft.yaml is:
As you can see it is pretty simple, it uses stage-packages, and builds telegram-purple from the source.
The problem is, at runtime bitlebee can’t find the telegram plugin, and the library is built but not even shipped in the snap.
Excerpt from the
snapcraft run logs:
install -m 0644 bin/telegram-purple.so /root/parts/telegram-purple/install/root/parts/telegram-purple/install/usr/lib/purple-2/telegram-purple.so
But in the snap:
ubuntu@juju-14d617-default-27:/snap/bitlbee-sajoupa/current$ ls -la /snap/bitlbee-sajoupa/current/usr/lib/purple-2/telegram-purple.so ls: cannot access '/snap/bitlbee-sajoupa/current/usr/lib/purple-2/telegram-purple.so': No such file or directory
I’m out of ideas, help would be most welcome.