[Bug 295743] graphics/librsvg2: update to version 2.40.23

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 31 May 2026 07:47:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295743

            Bug ID: 295743
           Summary: graphics/librsvg2: update to version 2.40.23
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: danfe@FreeBSD.org
          Assignee: desktop@FreeBSD.org
             Flags: maintainer-feedback?(desktop@FreeBSD.org)

Created attachment 271365
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271365&action=edit
PoC preliminary patch

Recent versions of GTK-4 started to use rsvg_handle_set_stylesheet() function
which is not available in librsvg2-2.40.21 (the latest unoxidized version in
the ports).

librsvg was added as a dependency of GTK in
gitlab.gnome.org/GNOME/gtk/-/merge_requests/8541.

The initial commit
gitlab.gnome.org/GNOME/gtk/-/commit/939bf2544914262ab1371e73a4d9a3518dfb6efd
depends on 2.60, which requires rust. A follow up (from the same MR?) added a
fallback for a backported version of 2.40
gitlab.gnome.org/GNOME/gtk/-/commit/afa0d2341a442d356f91ee0a9f7b168cf14d628a.

The backported version, based on the librsvg-for-gtk branch is tagged as
librsvg-gtk-2.40.3 in the librsvg git repo.

I've hacked a quick'n'dirty (not commitable!) patch, JFYI.

Inspired by:    https://github.com/microsoft/vcpkg/pull/48344

-- 
You are receiving this mail because:
You are the assignee for the bug.