Skip to content

wxGTK depends on deprecated libsoup 2 #369710

Closed

Description

@jtojnar

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.


cc slicer maintainers: @zhaofengli, @dsluijk, @ovlach, @pinpox

Activity

  1. added
    0.kind: bug
    on Dec 31, 2024
  2. GrimmTheShrimp commented on Apr 11, 2025

    @GrimmTheShrimp
    Contributor

    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.

  3. GrimmTheShrimp commented on Apr 11, 2025

    @GrimmTheShrimp
    Contributor

    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_0 in 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.

  4. GrimmTheShrimp commented on Apr 11, 2025

    @GrimmTheShrimp
    Contributor

    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.

  5. GrimmTheShrimp commented on Apr 13, 2025

    @GrimmTheShrimp
    Contributor

    Fix in #398405

  6. pinpox commented on May 9, 2025

    @pinpox
    Member

    Fixed by #398405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions