X11 and QD name space conflicts as they apply to webkit2-gtk on snowleopard

David Evans devans at macports.org
Mon Aug 15 16:36:12 PDT 2016

On 8/15/16 3:15 PM, Ken Cunningham wrote:
> I'm attempting to build Epiphany on SnowLeopard with libc++ installed, as Snow Leopard has no up-to-date browser options available any longer.
> Epiphany uses webkit2-gtk, and with some minor fixes, webkit2-gtk does build on snow leopard. But there are name space conflicts between X11 and QD, so as the webkit2-gtk code base stands now, the only way to build it is to disable X11 and build for quartz only.
> Unfortunately, Epiphany pulls in gnome-desktop, which pulls in gtk3 +X11, and gnome-desktop appears to build only with X11 enabled. So catch-22.
> I note upon cruising the web that this is a very old problem, which both Dave Evans and Jeremy appear to have worked on over the years, both in webkit and in xserver.
> <https://cgit.freedesktop.org/xorg/xserver/tree/hw/xquartz/sanitizedCarbon.h>
> <https://bugs.webkit.org/show_bug.cgi?id=25998>
> <https://bugs.webkit.org/show_bug.cgi?id=17001>
> and more....
> At various points, the bug is declared fixed, but it popped up again just now when I tried to build webkit2-gtk.
> Does anyone have any advice on how to best proceed here? It appears that I need to find a way to build webkit2-gtk with +x11 to proceed. There is some code referenced above to santize QD types on xserver -- perhaps I could try to integrate that into webkit2-gtk.
> Thanks,
> Ken
Thanks for your report, Ken.  I suspect that you are one of first to try building webkit2-gtk with libc++ on SnowLeopard
so it's not too unexpected to run into some problems.  Jeremy is really your best bet on advice in this area as he has
more expertise on the webkit2-gtk internals at this point and he also is most familiar with the procedures for
installing libc++ on the older platforms.  At this point, I no longer have access to a SL machine let
alone one configured for libc++.

If you really are serious about trying to come up with a patch for webkit2-gtk on your platform, then you probably would
be best off to use the unstable version webkit2-gtk-devel as the code is constantly changing and a new stable
version will be out around the time the GNOME-3 3.22 is released in mid September.  Looks like it needs updating so I'll
try and push it to the latest unstable release as well.

However, let me take a look at epiphany and see if there is a way to get it to build cleanly without X11.  As you say,
gnome-desktop is X11 dependent but it may not be entirely necessary for a +quartz build.  That would at least get you
running with a browser.

As you proceed, please be sure to upload your latest build logs with issues to the appropriate ticket on trac so we can
see exactly what you are.

Hopefully, Jeremy will see this and respond with something more useful. Copying him for his information.

Thanks for sticking with this.


More information about the macports-users mailing list