In an attempt to isolate my problems with snaps, I’ve made a snap just to test a helloworld program with python3 and Gtk3 on wayland.
The program only opens a window. I get this when running the snap:
/snap/hellowayland/x1/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /snap/hellowayland/x1/lib/x86_64-linux-gnu/libsystemd.so.0)
python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python3)
my snap file:
summary: Test python3 with gtk3 in a snap on wayland
This snap tests a helloworld program written in python3 and Gtk3 on Wayland
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
command: desktop-launch $SNAP/bin/hellowayland
plugs: [x11, unity7, wayland, desktop]
# See 'snapcraft plugins'
full source is here: https://github.com/lapisdecor/hellowayland
What dependencies am I missing? I tried putting libc6 on stage-packages but snapcraft gives-me a permission error when building:
PermissionError: [Errno 1] Operation not permitted: '/home/luis/Programar/hellowayland/hellowayland/parts/hellowayland/install/lib64/ld-linux-x86-64.so.2