Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression, missing libsoup-2.4.so #273

Closed
sergiusens opened this issue Jan 20, 2025 · 3 comments
Closed

Regression, missing libsoup-2.4.so #273

sergiusens opened this issue Jan 20, 2025 · 3 comments

Comments

@sergiusens
Copy link
Contributor

The latest content snap is now missing

on ☁️
🕙 17:04:56 ❯ find /snap/gnome-46-2404/48|grep -e "/usr/lib/.*/libsoup"
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-2.4.so
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1.11.2
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-3.0.so
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0.7.1
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-gnome-2.4.so
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-gnome-2.4.so.1
/snap/gnome-46-2404/48/usr/lib/x86_64-linux-gnu/libsoup-gnome-2.4.so.1.11.2

~on ☁️
🕙 17:05:06 ❯ find /snap/gnome-46-2404/66/|grep -e "/usr/lib/.*/libsoup"
/snap/gnome-46-2404/66/usr/lib/x86_64-linux-gnu/libsoup-3.0.so
/snap/gnome-46-2404/66/usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0
/snap/gnome-46-2404/66/usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0.7.1

This causes snaps that required it to fail

$ darktable
.....
     1.2588 [view_load_module] failed to open `map': libsoup-2.4.so.1: cannot open shared object file: No such file or directory
@jhenstridge
Copy link

This appears to be due to PR #253. Even if we're removing the old libsoup from the SDK, it remains part of the contract of the platform snap.

What is more difficult is the other libraries that linked to libsoup2 mentioned in the PR:

r48 soname r66 soname
libgeocode-glib libgeocode-glib.so.0 libgeocode-glib-2.so.0
libgweather libgweather-4.so.0 libgweather-4.so.0
librest librest-0.7.so.0 librest-1.0.so.0

It would probably be prudent to include the old versions of libgeocode-glib and librest in the platform snap. Libgweather is a problem, since it has the same soname for each dependency tree. That would be a problem if there are any apps that happen to use libsoup2 directly as well as libgweather. I'm not sure how common that is though.

For darktable in particular, the dependency seems to be through it's bundled libosmgpsmap-1.0.so.1, which depends on libsoup-2.4.so.1:

 0x0000000000000001 (NEEDED)             Shared library: [libsoup-2.4.so.1]

It's possible other snaps might have trouble with the other three libraries though.

@sergio-costas
Copy link
Contributor

@seb128
Copy link
Contributor

seb128 commented Jan 21, 2025

Sorry for trouble the change is causing. In retrospect we should probably have kept the 46 sdk in candidate and not stable.

We got blocked in being able to migrate any desktop snap for core22 to core24 due to the a snapd problem (mounts get confused on refresh leading to non available sdk content). Since the snapd issue was blocking migrations of individual snaps we decided to consider gnome46 not stable yet and pushed some non compatible changes to the content.

It is not ideal but at the same time libsoup2 isn't something we want to maintain anymore and as James pointed out the situation is a bit complicated. We will refrain from doing incompatible changes from now on but for this case I think the way forward is going to be to fix your snap by building with libsoup3.

@seb128 seb128 closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants