www-client/firefox: re-enable USE=pgo for USE=wayland
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 4 Sep 2019 18:49:27 +0000 (20:49 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 4 Sep 2019 18:58:47 +0000 (20:58 +0200)
Backport of commit 125dfa502a876811160290cb21348daa26f81ce3.

Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
www-client/firefox/firefox-69.0.ebuild

index 879b6e94338623a51994f6da2a4b21a521399629..125ff3d5f5d2aa8f4b6f2ce4d34312990c36ec5f 100644 (file)
@@ -167,12 +167,7 @@ DEPEND="${CDEPEND}
                x86? ( >=dev-lang/nasm-2.13 )
        )"
 
-# We use virtx eclass which cannot handle wayland
-REQUIRED_USE="wifi? ( dbus )
-       pgo? (
-               lto
-               !wayland
-       )"
+REQUIRED_USE="pgo? ( lto )"
 
 RESTRICT="!test? ( test )"
 
@@ -594,8 +589,13 @@ src_compile() {
                addpredict /etc/gconf
        fi
 
-       MOZ_MAKE_FLAGS="${MAKEOPTS} -O" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ${_virtx} \
-       ./mach build --verbose || die
+       GDK_BACKEND=x11 \
+               MOZ_MAKE_FLAGS="${MAKEOPTS} -O" \
+               SHELL="${SHELL:-${EPREFIX}/bin/bash}" \
+               MOZ_NOSPAM=1 \
+               ${_virtx} \
+               ./mach build --verbose \
+               || die
 }
 
 src_install() {