diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index f9fe8987..563541f2 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -280,6 +280,11 @@ Fri Feb 15 13:45:57 UTC 2019 - Guillaume GARDET - Update _constraints to avoid 'no space left' error seen on aarch64 +------------------------------------------------------------------- +Thu Feb 14 08:19:19 UTC 2019 - Martin Liška + +- Enable PGO for x86_64. + ------------------------------------------------------------------- Wed Feb 13 07:17:28 UTC 2019 - Wolfgang Rosenauer diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 4dcee0e7..41fd9759 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -62,6 +62,7 @@ BuildRequires: Mesa-devel BuildRequires: alsa-devel BuildRequires: autoconf213 BuildRequires: dbus-1-glib-devel +BuildRequires: dejavu-fonts BuildRequires: fdupes BuildRequires: memory-constraints %if 0%{?suse_version} <= 1320 @@ -90,6 +91,7 @@ BuildRequires: startup-notification-devel BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: xorg-x11-libXt-devel +BuildRequires: xvfb-run BuildRequires: yasm BuildRequires: zip %if 0%{?suse_version} < 1550 @@ -168,6 +170,7 @@ Patch12: mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch # Firefox/browser Patch101: firefox-kde.patch Patch102: firefox-branded-icons.patch +Patch103: firefox-add-kde.js-in-order-to-survive-PGO-build.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(post): coreutils shared-mime-info desktop-file-utils Requires(postun): shared-mime-info desktop-file-utils @@ -276,6 +279,7 @@ cd $RPM_BUILD_DIR/%{source_prefix} # Firefox %patch101 -p1 %patch102 -p1 +%patch103 -p1 %build # no need to add build time to binaries @@ -388,10 +392,11 @@ ac_add_options --disable-webrtc # LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506) %if 0%{?suse_version} > 1500 ac_add_options --enable-lto +ac_add_options MOZ_PGO=1 %endif %endif EOF -./mach build +xvfb-run --server-args="-screen 0 1920x1080x24" ./mach build %install cd $RPM_BUILD_DIR/obj diff --git a/firefox-add-kde.js-in-order-to-survive-PGO-build.patch b/firefox-add-kde.js-in-order-to-survive-PGO-build.patch new file mode 100644 index 00000000..7e66b01b --- /dev/null +++ b/firefox-add-kde.js-in-order-to-survive-PGO-build.patch @@ -0,0 +1,34 @@ +From 89767f5dd97e69d7e9189e5603647645818d27d6 Mon Sep 17 00:00:00 2001 +From: marxin +Date: Thu, 29 Nov 2018 10:07:29 +0100 +Subject: [PATCH 2/3] Add kde.js in order to survive PGO build. + +--- + browser/app/Makefile.in | 1 + + kde.js | 2 ++ + 2 files changed, 3 insertions(+) + create mode 100644 kde.js + +diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in +index 4129aa43fb91..c9950895d520 100644 +--- a/browser/app/Makefile.in ++++ b/browser/app/Makefile.in +@@ -57,6 +57,7 @@ endif + libs:: $(srcdir)/profile/channel-prefs.js + $(NSINSTALL) -D $(DIST)/bin/defaults/pref + $(call py_action,preprocessor,-Fsubstitution $(PREF_PPFLAGS) $(ACDEFINES) $^ -o $(DIST)/bin/defaults/pref/channel-prefs.js) ++ cp $(topsrcdir)/kde.js $(DIST)/bin/defaults/pref/kde.js + + ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) + +diff --git a/kde.js b/kde.js +new file mode 100644 +index 000000000000..b0d3e5d20437 +--- /dev/null ++++ b/kde.js +@@ -0,0 +1,2 @@ ++pref("browser.preferences.instantApply", false); ++pref("browser.backspace_action", 0); +-- +2.19.1 +