Bug 237348

Summary: www/webkit2-gtk3: Needs cairo with OPENGL support enabled
Product: Ports & Packages Reporter: Thierry Thomas <thierry>
Component: Individual Port(s)Assignee: Walter Schwarzenfeld <w.schwarzenfeld>
Status: Closed Feedback Timeout    
Severity: Affects Some People CC: cmt, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (gnome)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Poudrière log none

Description Thierry Thomas freebsd_committer freebsd_triage 2019-04-17 19:23:45 UTC
Created attachment 203752 [details]
Poudrière log

Configure fails with this message:

===>  Configuring for webkit2-gtk3-2.24.0_1
webkit2-gtk3-2.24.0_1: Needs cairo with OPENGL support enabled.
*** Error code 1

Full log (poudrière) attached.
Comment 1 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2019-04-20 16:15:20 UTC
"Works for me" and possibly most others. So...
Does your cairo have OPENGL enabled? (OPENGL is in OPTIONS_DEFAULT for graphics/cairo, so if it's off I guess you disabled it). If it's on and webkit still complains, either your cairo package or pkgconfig (which the webkit Makefile uses to detect the OPENGL option on cairo) is broken. Did cairo install ${PREFIX}/libdata/pkgconfig/cairo-egl.pc and what does "pkg-config --exists cairo-egl ; echo $?" print?
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2019-04-22 12:41:29 UTC
Something might be broken somewhere in my devel box, bur I've not yet found what...

Nothing related to OPENGL in /etc/make.conf, and same error inside poudriere.

cairo-egl.pc exists:
-rw-r--r--  1 root  wheel  242 26 mars  02:21 /usr/local/libdata/pkgconfig/cairo-egl.pc

$ pkg-config --exists cairo-egl ; echo $?
0

No options set in poudriere, but it fails with the same message:

=======================<phase: configure      >============================
===>  Configuring for webkit2-gtk3-2.24.0_1
webkit2-gtk3-2.24.0_1: Needs cairo with OPENGL support enabled.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/webkit2-gtk3
=>> Cleaning up wrkdir
===>  Cleaning for webkit2-gtk3-2.24.0_1
build of www/webkit2-gtk3 | webkit2-gtk3-2.24.0_1 ended at Mon Apr 22 14:28:07 CEST 2019
build time: 00:08:33
!!! build failure encountered !!!
Comment 3 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2019-04-22 13:11:02 UTC
(In reply to Thierry Thomas from comment #2)

That's funny, because when you look at www/webkit2-gtk3/Makefile, the check is in "pre-configure" and all it does is checking for cairo-egl with pkg-config. Is your $PATH mangled, do you build with non-default $PREFIX or something like that? Perhaps the check is not robust enough?