Repository navigation
Description
wxGTK32 depends on libsoup_2_4 through webkitgtk_4_0:
| ++ lib.optional (withWebKit && stdenv.hostPlatform.isLinux) webkitgtk_4_0 |
libsoup 2 is deprecated and we want to remove it.
There is a not yet released upstream patch allowing to link against webkitgtk_4_1 (the same API as webkitgtk_4_0, just linked against libsoup_3 instead of libsoup_2). Unfortunately, the way C symbols generally work does not allow having multiple versions of the same library linked so we cannot just switch webkitgtk_4_0 for webkitgtk_4_1. We also need to ensure that libsoup_2_4 is switched to libsoup_3 in all (transitive) dependencies.
According to comm -12 <(rg -l 'wxGTK32|wxGTK\b' | sort) <(rg -l 'libsoup' | sort), the radiotray-ng is the only derivation that mentions libsoup, but it only uses it through GStreamer, which supports libsoup 3. So it might not be that painful – I assume libsoup being pulled in by some transitive dependency is quite unlikely since libsoup is mostly used by apps relying on GNOME platform and those do not tend to use GTK directly, not wxWidgets.
cc wxGTK maintainers: @tfmoraes
We also patch bambu-studio and orca-slicer to use link against webkitgtk_4_0 but that should probably be easily replaceable with webkitgtk_4_1.
Line 26 in 5a864f8
| + target_link_libraries(libslic3r_gui "-lwebkit2gtk-4.0") |
Line 26 in 5a864f8
| + target_link_libraries(libslic3r_gui "-lwebkit2gtk-4.0") |
cc slicer maintainers: @zhaofengli, @dsluijk, @ovlach, @pinpox
Activity
GrimmTheShrimp commentedon Apr 11, 2025
wxWidgets/wxWidgets#23633
https://github.com/wxWidgets/wxWidgets/blob/v3.2.6/configure.in#L7535-L7556
The patch is at the very least included in wxwidgets 3.2.6 release which we currently have included in nixpkgs. Bumping the wegkitgtk dependency at this point is trivial.
GrimmTheShrimp commentedon Apr 11, 2025
Checking libnice+gupnp+wxpython+wxwidgets in master...LordGrimmauld:nixpkgs:gupnp-igd_1_6
This brings down the number of programs with a shared dependency on both libsoups to 218. 45 of those are the remaining gupnp-1.4 (33 of those are farstream).
288 things total would depend on
libsoup_2_4.88 of those would be
webkitgtk_4_0in leaf packages only (very limited breakage and could be fixed individually. There'd be literally nothing left in the stack).45 are gupnp. The only other chnunks are libmateweather (41) and ostree (28), everything else is leaves too.
GrimmTheShrimp commentedon Apr 11, 2025
I assume deprecating the old webkitgtk is just one treewide replace, see what breaks, revert whatever broke. gupnp has the newer abi thing in PRs already, that too would only need bumping in deps. And i can't image libmateweather to be all that rough of a break... So this is definitely an effort that is possible to do.
GrimmTheShrimp commentedon Apr 13, 2025
Fix in #398405
pinpox commentedon May 9, 2025
Fixed by #398405