Bug 237348 - www/webkit2-gtk3: Needs cairo with OPENGL support enabled
Summary: www/webkit2-gtk3: Needs cairo with OPENGL support enabled
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Walter Schwarzenfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-17 19:23 UTC by Thierry Thomas
Modified: 2019-08-15 08:22 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
Poudrière log (55.35 KB, text/plain)
2019-04-17 19:23 UTC, Thierry Thomas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer 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 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 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 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?