diegopvlk / Dosage

Medication tracker for Linux
GNU General Public License v3.0
87 stars 15 forks source link

snap: update for core24 #64

Closed soumyaDghosh closed 5 months ago

soumyaDghosh commented 5 months ago

Now we can add a github action also, to publish this snap, but only for amd64 can't do the same for others

diegopvlk commented 5 months ago

Thanks! Unfortunately your version gives me more errors:

libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/diego/snap/dosage-tracker/common/.cache/gio-modules/libgiolibproxy.so
/snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
g_module_open() failed for /snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libxml2.so.2: cannot open shared object file: No such file or directory
ERROR: /snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
/snap/dosage-tracker/current/gnome-platform/usr/bin/gjs: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
soumyaDghosh commented 5 months ago

Thanks! Unfortunately your version gives me more errors:

libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/diego/snap/dosage-tracker/common/.cache/gio-modules/libgiolibproxy.so
/snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
g_module_open() failed for /snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libxml2.so.2: cannot open shared object file: No such file or directory
ERROR: /snap/dosage-tracker/x6/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
/snap/dosage-tracker/current/gnome-platform/usr/bin/gjs: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Are you on fedora? Also what's the output of

snap info gnome-46-2404
diegopvlk commented 5 months ago

I'm on edge, probably should try stable...

name:      gnome-46-2404
summary:   Shared GNOME 46 Ubuntu stack
publisher: Canonical✓
store-url: https://snapcraft.io/gnome-46-2404
contact:   https://github.com/ubuntu/gnome-sdk/issues
license:   unset
description: |
  This snap provides the GNOME 46 stack to other snaps that use it. It shares the base GNOME
  libraries and desktop integration components through the content interface. This helps reduce the
  size of snaps and helps developers to easily snap desktop applications.

  **For users**

  This snap is automatically installed and removed when needed. **Manually adding or removing this
  snap is not recommended** and might break things.

  * If you are having issues with **snaps** using GNOME, please contact the experts on the Snapcraft
  forum: https://forum.snapcraft.io/
  * If you want to install the GNOME Desktop Environment, then you are in the wrong place. Please
  take a look at https://www.gnome.org/ for more information on how to get it.

  **For developers**

  * The `gnome` extension is the recommended way to use this in your own snap:
  https://snapcraft.io/docs/gnome-extension
  * You can report issues with this content snap on GitHub:
  https://github.com/ubuntu/gnome-sdk/issues
  * The source code of this snap is available on GitHub in the `gnome-46-2404` branch:
  https://github.com/ubuntu/gnome-sdk/tree/gnome-46-2404
snap-id:      ew7OxpbRTxfK7ImpIygRR85lkxvU7Pzt
tracking:     latest/edge
refresh-date: 9 days ago, at 07:58 -03
channels:
  latest/stable:    0+git.b6706a3 2024-05-10 (24) 509MB -
  latest/candidate: 0+git.b6706a3 2024-05-10 (26) 511MB -
  latest/beta:      ↑                                   
  latest/edge:      0+git.aed0db3 2024-05-29 (28) 415MB -
installed:          0+git.aed0db3            (28) 415MB -

I messed up the error message, this is the correct one:

/snap/dosage-tracker/current/gnome-platform/usr/bin/gjs: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
diegopvlk commented 5 months ago

Ok, the issue was the edge channel 🤦‍♂️

It's running now but I'm still getting these two errors:

libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/diego/snap/dosage-tracker/common/.cache/gio-modules/libgiolibproxy.so
diegopvlk commented 5 months ago

Despite the errors everything seems to be working so I think it's fine, thanks @soumyaDghosh!

soumyaDghosh commented 5 months ago

Ok, the issue was the edge channel 🤦‍♂️

It's running now but I'm still getting these two errors:

libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/diego/snap/dosage-tracker/common/.cache/gio-modules/libgiolibproxy.so

I checked that, and I'm not sure why that's happening. Until everything works, let them be as it is.

soumyaDghosh commented 5 months ago

Also want to publish it to store?

diegopvlk commented 5 months ago

Also want to publish it to store?

I would like that, is not possible yet?