Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500150 - net-libs/webkit-gtk-2.2.4-r200 fails to configure with USE="gles2 opengl"
Summary: net-libs/webkit-gtk-2.2.4-r200 fails to configure with USE="gles2 opengl"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2014-02-03 03:56 UTC by Ryan Hill (RETIRED)
Modified: 2018-07-23 22:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2014-02-03 03:56:22 UTC
[ebuild     U  ] net-libs/webkit-gtk-2.2.4-r200:2 [1.8.3-r201:2] USE="egl%* gles2%* gstreamer introspection* opengl%* spell (-aqua) -coverage -debug -geoloc -jit -libsecret% {-test} -webgl"

AC_CHECK_HEADERS([GLES2/gl2.h], [have_gles2="yes"], [have_gles2="no"])
AC_MSG_CHECKING([whether to use OpenGL ES 2 support])
if test "$enable_glx" = "yes"; then 
    if test "$enable_gles2" = "yes"; then 
        AC_MSG_ERROR([Cannot enable OpenGL ES 2 support with GLX enabled.])
    else 
        enable_gles2=no
    fi   
fi
Comment 1 Pacho Ramos gentoo-dev 2014-02-03 19:57:53 UTC
Then, it has:
        webgl? ( ^^ ( gles2 opengl ) )

in REQUIRED_USE, not sure what you are referring to :/
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2014-02-03 20:01:49 UTC
Notice that he has webgl turned off, and gles2 and opengl turned on - you need either gles2 or opengl on (but not both!) or neither turned on (and webgl also turned off)
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2014-02-03 20:03:52 UTC
By which i mean...

webgl +gles2 -opengl
webgl -gles2 +opengl
-webgl -gles2 -opengl
-webgl +gles2 -opengl
-webgl -gles2 +opengl

Are the possible options.  Specifically, webgl requires you to have gles2 or opengl on, but there is no limitation that you can't turn on gles2 AND opengl if the webgl flag is off.
Comment 4 Pacho Ramos gentoo-dev 2014-02-03 20:09:51 UTC
Ah, true, I guess the required_use should not depend on webgl flag at all (just confirmed the problem in both slots)
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-02-03 23:05:21 UTC
+  03 Feb 2014; Gilles Dartiguelongue <eva@gentoo.org> webkit-gtk-2.2.4.ebuild,
+  webkit-gtk-2.2.4-r200.ebuild, +files/webkit-gtk-2.2.4-unittests-build.patch:
+  Fix build with USE=-gstreamer, bug #500162. Fix configure with USE=gles2
+  opengl, it is a forbidden configuration not only under the scope of the webgl
+  flag unfortunately, bug #500150. Raise dependency on gst-plugins-base, bug
+  #499964. Add dependency on rubygems[ruby21], bug #499896. Update path to
+  disable building of unittests unless requested. Update sed paths due to
+  upstream re-arranging sources.
+

Thanks for reporting.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-02-04 08:38:06 UTC
Properly fixed now, it allows all cases listed here. Thanks again.
Comment 7 Larry the Git Cow gentoo-dev 2018-07-23 22:30:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f268cbd114024d9dad9cdfe241e83a9f1716b82

commit 7f268cbd114024d9dad9cdfe241e83a9f1716b82
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2018-07-22 13:09:10 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2018-07-23 22:23:47 +0000

    net-libs/webkit-gtk: simplify opengl vs gles2 handling, fix gst gles2 deps
    
    webkit-gtk itself does not support both full OpenGL and GLESv2 at once yet.
    ENABLE_OPENGL enables OpenGL in general, and if enabled then ENABLE_GLES2
    determines which API is used - if enabled, then gles2, otherwise full GL.
    Simplify REQUIRED_USE handling to enforce the opengl/gles2 conflict
    separately, and have the webgl case just want either, to be future-proof
    and easier to read independently.
    
    WebGL should just always be enabled when either GL API is enabled, but
    keeping it under USE flag for the time being, until an even deeper
    GL/GStreamer webkitgtk cmake review, due to the webgl? ( gstreamer )
    REQUIRED_USE still present.
    For now just (probably) properly depend on gstreamer gles2 support for
    USE="gles2 gstreamer" builds.
    
    Bug: https://bugs.gentoo.org/500150
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)