Do PGO builds with Wayland backend.

This commit is contained in:
Martin Stransky 2019-09-18 10:04:57 +02:00
parent 6bc6c7c026
commit 5b43bf243c

View File

@ -94,7 +94,7 @@ ExcludeArch: ppc64le
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 69.0 Version: 69.0
Release: 10%{?pre_tag}%{?dist} Release: 11%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/ URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
@ -264,6 +264,7 @@ BuildRequires: pkgconfig(libffi)
%if 0%{?use_xvfb} %if 0%{?use_xvfb}
BuildRequires: xorg-x11-server-Xvfb BuildRequires: xorg-x11-server-Xvfb
BuildRequires: mutter
%endif %endif
BuildRequires: rust BuildRequires: rust
BuildRequires: cargo BuildRequires: cargo
@ -614,7 +615,13 @@ export MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
export MOZ_SERVICES_SYNC="1" export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true export STRIP=/bin/true
%if 0%{?build_with_pgo} %if 0%{?build_with_pgo}
GDK_BACKEND=x11 xvfb-run ./mach build 2>&1 | cat - xvfb-run mutter --wayland --nested &
if [ -z "$WAYLAND_DISPLAY" ]; then
export WAYLAND_DISPLAY=wayland-0
else
export WAYLAND_DISPLAY=wayland-1
fi
GDK_BACKEND=wayland MOZ_ENABLE_WAYLAND=1 ./mach build 2>&1 | cat -
%else %else
./mach build -v 2>&1 | cat - ./mach build -v 2>&1 | cat -
%endif %endif
@ -968,6 +975,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0-11
- Do PGO builds with Wayland backend.
* Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0-10 * Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0-10
- Disabled DoH by default (rhbz#1751410), - Disabled DoH by default (rhbz#1751410),
patch by Eduardo Mínguez Pérez (eminguez). patch by Eduardo Mínguez Pérez (eminguez).