Using webkit 2.10.8 with the following use flags: X egl geoloc gstreamer introspection jit libsecret opengl spell wayland webgl I was trying to figure out why webkit-gtk backed browsers were crashing and trying to use X on wayland. Then I decided to check a build log and saw: ENABLE_WAYLAND_TARGET ................... no This major packaging bug breaks all webkit-gtk backed apps on wayland, and forces you to run them with the x11 backend (if you know to).
Okay, apparently those were my use flags from webkit-gtk 2.4.9, not webkit-2.10.8. With webkit-2.10.8, you can't enable the wayland flag.
rphl from #gentoo confirmed that emerge will not set the wayland USE flag for this package.
That's due to an IMHO outdated package.use.mask: # Gilles Dartiguelongue <eva@gentoo.org> (25 May 2015) # webkit fails to build with USE=wayland, bug #549228 # https://bugs.webkit.org/show_bug.cgi?id=142879 # https://bugs.webkit.org/show_bug.cgi?id=136831 >=net-libs/webkit-gtk-2.8 wayland The upstream commit that fixed this issue is from 2015-06-04, so this most likely should be available in recent webkit-gtk versions. To forcefully remove that mask you can add te following line to /etc/portage/profile/package.use.mask net-libs/webkit-gtk -wayland
Thank you. I just grepped /etc/portage to see if it was an issue I made, didn't think to look for a mask. I agree, that mask should be removed, the stable webkit-gtk packages don't look to be affected.
[master 651987a] profiles/base/package.use.mask: wayland works now on webkitgtk (#578654) 1 file changed, 6 deletions(-)
Thank you Pacho Ramos :)