[MacPorts] #65492: webkit2-gtk update?

MacPorts noreply at macports.org
Mon May 11 02:27:45 UTC 2026


#65492: webkit2-gtk update?
--------------------------+----------------------
  Reporter:  RJVB         |      Owner:  mascguy
      Type:  request      |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  webkit2-gtk  |
--------------------------+----------------------
Changes (by drkp):

 * cc: drkp (added)


Comment:

 I've been taking a look at what it would take to update this port to the
 latest version, and have a build of 2.52.3 that seems to be working so
 far!

 This uses a combination of the approaches from @RJVB and @davidjo along
 with some new things.

 Lots of things have changed between these versions, obviously. The largest
 one, as mentioned above, is that GLX was replaced by EGL, and we don't
 have EGL on MacOS, so webgl and accelerated compositing support are out.
 But we can add enough EGL header file stubs to get it to build, and then
 fall back to software rendering at runtime when it discovers no EGL
 displays are available.

 The other major change, also mentioned above, is using libsoup 3 instead
 of 2 and hence requiring an update/rebuild of dependents. For the most
 part, unless the port is actually using libsoup2 itself, this should just
 be a matter of revbumping and possibly also changing the pkg-config dep to
 webkit-gtk-4.1 instead of -4.0. The more complicated ones are probably
 mostly fixable by updating the port; some of them are pretty outdated.
 (Actually, I'm not sure how many of the dependents even build at all now!)

 A couple things are even simpler (for example, it's now using libgcrypt
 instead of CommonCryptoSPI).

 I've tested this with the minibrowser, gnucash reports, and yelp, and it's
 looking promising. Have tried both +quartz and +x11, but so far only
 tested on arm64/Tahoe.

 https://github.com/drkp/macports-ports/tree/webkit2-gtk-2.52 if anyone
 wants to take a look. Will send a PR once I've tested it a bit more
 (though it may take a couple weeks before I can find time...).

-- 
Ticket URL: <https://trac.macports.org/ticket/65492#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list