Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/webkit-gtk/
Date: Sun, 02 Jan 2022 22:47:32
Message-Id: 1641163454.4cdf2c4a5caec04852158c6391f4978a84caa4df.leio@gentoo
1 commit: 4cdf2c4a5caec04852158c6391f4978a84caa4df
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 2 22:43:52 2022 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 2 22:44:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cdf2c4a
7
8 net-libs/webkit-gtk: Drop support for disabling OpenGL
9
10 Instead of adding a REQUIRED_USE="^^ ( opengl gles2-only )"
11 simplify it to always enable opengl and swap from desktop to
12 ES variant with USE=gles2-only.
13
14 Closes: https://bugs.gentoo.org/820443
15 Package-Manager: Portage-3.0.20, Repoman-3.0.2
16 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
17
18 net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild | 48 +++++++---------------------
19 1 file changed, 12 insertions(+), 36 deletions(-)
20
21 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
22 index 1faf9e7222f8..b4da0e93b88e 100644
23 --- a/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
24 +++ b/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
25 @@ -16,12 +16,12 @@ LICENSE="LGPL-2+ BSD"
26 SLOT="4/37" # soname version of libwebkit2gtk-4.0
27 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
28
29 -IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify +opengl seccomp spell systemd wayland +X"
30 +IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify seccomp spell systemd wayland +X"
31
32 # gstreamer with opengl/gles2 needs egl
33 REQUIRED_USE="
34 - gles2-only? ( egl !opengl )
35 - gstreamer? ( opengl? ( egl ) )
36 + gles2-only? ( egl )
37 + gstreamer? ( egl )
38 wayland? ( egl )
39 || ( aqua wayland X )
40 "
41 @@ -35,10 +35,6 @@ RESTRICT="test"
42 # Various compile-time optionals for gtk+-3.22.0 - ensure it
43 # Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.30
44 # >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
45 -wpe_depend="
46 - >=gui-libs/libwpe-1.5.0:1.0
47 - >=gui-libs/wpebackend-fdo-1.7.0:1.0
48 -"
49 # TODO: gst-plugins-base[X] is only needed when build configuration ends up with GLX set, but that's a bit automagic too to fix
50 RDEPEND="
51 >=x11-libs/cairo-1.16.0:=[X?]
52 @@ -66,8 +62,9 @@ RDEPEND="
53 spell? ( >=app-text/enchant-0.22:2 )
54 gstreamer? (
55 >=media-libs/gstreamer-1.14:1.0
56 - >=media-libs/gst-plugins-base-1.14:1.0[egl?,opengl?,X?]
57 + >=media-libs/gst-plugins-base-1.14:1.0[egl?,X?]
58 gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] )
59 + !gles2-only? ( media-libs/gst-plugins-base:1.0[opengl] )
60 >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0
61 >=media-libs/gst-plugins-bad-1.14:1.0 )
62
63 @@ -86,12 +83,12 @@ RDEPEND="
64
65 egl? ( media-libs/mesa[egl(+)] )
66 gles2-only? ( media-libs/mesa[gles2] )
67 - opengl? ( virtual/opengl )
68 + !gles2-only? ( virtual/opengl )
69 wayland? (
70 dev-libs/wayland
71 >=dev-libs/wayland-protocols-1.12
72 - opengl? ( ${wpe_depend} )
73 - gles2-only? ( ${wpe_depend} )
74 + >=gui-libs/libwpe-1.5.0:1.0
75 + >=gui-libs/wpebackend-fdo-1.7.0:1.0
76 )
77
78 seccomp? (
79 @@ -103,7 +100,6 @@ RDEPEND="
80 systemd? ( sys-apps/systemd:= )
81 gamepad? ( >=dev-libs/libmanette-0.2.4 )
82 "
83 -unset wpe_depend
84 DEPEND="${RDEPEND}"
85 # paxctl needed for bug #407085
86 # Need real bison, not yacc
87 @@ -150,16 +146,6 @@ pkg_pretend() {
88 die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags"
89 fi
90 fi
91 -
92 - if ! use opengl && ! use gles2-only; then
93 - ewarn
94 - ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles2-only) completely."
95 - ewarn "This is an unsupported configuration meant for very specific embedded"
96 - ewarn "use cases, where there truly is no GL possible (and even that use case"
97 - ewarn "is very unlikely to come by). If you have GL (even software-only), you"
98 - ewarn "really really should be enabling OpenGL!"
99 - ewarn
100 - fi
101 }
102
103 pkg_setup() {
104 @@ -215,21 +201,11 @@ src_configure() {
105 # TODO: Check Web Audio support
106 # should somehow let user select between them?
107
108 - # opengl needs to be explicetly handled, bug #576634
109 - local use_wpe_renderer=OFF
110 - local opengl_enabled
111 - if use opengl || use gles2-only; then
112 - opengl_enabled=ON
113 - use wayland && use_wpe_renderer=ON
114 - else
115 - opengl_enabled=OFF
116 - fi
117 -
118 local mycmakeargs=(
119 ${ruby_interpreter}
120 $(cmake_use_find_package gles2-only OpenGLES2)
121 $(cmake_use_find_package egl EGL)
122 - $(cmake_use_find_package opengl OpenGL)
123 + $(cmake_use_find_package !gles2-only OpenGL)
124 -DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
125 -DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
126 -DPORT=GTK
127 @@ -242,7 +218,7 @@ src_configure() {
128 -DENABLE_SPELLCHECK=$(usex spell)
129 -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build)
130 -DENABLE_VIDEO=$(usex gstreamer)
131 - -DENABLE_WEBGL=${opengl_enabled}
132 + -DENABLE_WEBGL=ON
133 # Supported only under ANGLE and default off PRIVATE option still@2.34.1, see
134 # https://bugs.webkit.org/show_bug.cgi?id=225563
135 # https://bugs.webkit.org/show_bug.cgi?id=224888
136 @@ -261,12 +237,12 @@ src_configure() {
137 -DUSE_LIBHYPHEN=ON
138 -DUSE_LIBNOTIFY=$(usex libnotify)
139 -DUSE_LIBSECRET=$(usex gnome-keyring)
140 - -DUSE_OPENGL_OR_ES=${opengl_enabled}
141 + -DUSE_OPENGL_OR_ES=ON
142 -DUSE_OPENJPEG=$(usex jpeg2k)
143 -DUSE_SOUP2=ON
144 -DUSE_SYSTEMD=$(usex systemd) # Whether to enable journald logging
145 -DUSE_WOFF2=ON
146 - -DUSE_WPE_RENDERER=${use_wpe_renderer} # WPE renderer is used to implement accelerated compositing under wayland
147 + -DUSE_WPE_RENDERER=$(usex wayland) # WPE renderer is used to implement accelerated compositing under wayland
148 )
149
150 # https://bugs.gentoo.org/761238