53.0b4 (complete)
authorWolfgang Rosenauer <wr@rosenauer.org>
Thu, 23 Mar 2017 14:47:57 +0100
changeset 953 6b282f295753
parent 952 8094e6bba260
child 954 0100ca6f6eed
53.0b4 (complete)
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.spec
firefox-kde.patch
--- a/MozillaFirefox/MozillaFirefox.changes	Sat Mar 18 11:29:43 2017 +0100
+++ b/MozillaFirefox/MozillaFirefox.changes	Thu Mar 23 14:47:57 2017 +0100
@@ -1,5 +1,5 @@
 -------------------------------------------------------------------
-Sat Mar 18 10:12:59 UTC 2017 - wr@rosenauer.org
+Mon Mar 20 15:48:56 UTC 2017 - wr@rosenauer.org
 
 - update to Firefox 53.0b4
   * requires NSS 3.29.3
@@ -16,6 +16,14 @@
   * Permission notifications have a cleaner design and cannot be
     easily missed
 - removed browser(npapi) provides as these plugins are deprecated
+- switch used compiler to gcc5 (FF requires gcc >= 4.9 now) for
+  Leap 42
+- Gtk2 is not longer an option; switched to Gtk3
+
+-------------------------------------------------------------------
+Mon Mar 20 15:35:57 UTC 2017 - wr@rosenauer.org
+
+- disable rust usage for everything but x86(-64)
 
 -------------------------------------------------------------------
 Fri Mar 17 15:43:29 UTC 2017 - wr@rosenauer.org
--- a/MozillaFirefox/MozillaFirefox.spec	Sat Mar 18 11:29:43 2017 +0100
+++ b/MozillaFirefox/MozillaFirefox.spec	Thu Mar 23 14:47:57 2017 +0100
@@ -27,9 +27,10 @@
 %define build_hardened 1
 
 %if 0%{?suse_version} > 1320
-%define firefox_use_gtk3 1
+%ifarch %ix86 x86_64
 %define firefox_use_rust 1
 %endif
+%endif
 
 # general build definitions
 %if "%{update_channel}" != "aurora"
@@ -70,7 +71,11 @@
 BuildRequires:  autoconf213
 BuildRequires:  dbus-1-glib-devel
 BuildRequires:  fdupes
+%if 0%{?suse_version} <= 1320
+BuildRequires:  gcc5-c++
+%else
 BuildRequires:  gcc-c++
+%endif
 BuildRequires:  libXcomposite-devel
 BuildRequires:  libcurl-devel
 BuildRequires:  libgnomeui-devel
@@ -90,12 +95,10 @@
 BuildRequires:  yasm
 BuildRequires:  zip
 BuildRequires:  pkgconfig(libpulse)
-%if 0%{?firefox_use_gtk3}
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-2.0)
 BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
 BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
-%endif
 %if 0%{?firefox_use_rust}
 BuildRequires:  cargo
 BuildRequires:  rust >= 1.10
@@ -262,7 +265,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-%patch9 -p1
+#%patch9 -p1
 %patch10 -p1
 # Firefox
 %patch101 -p1
@@ -291,6 +294,9 @@
 export BUILD_OFFICIAL=1
 export MOZ_TELEMETRY_REPORTING=1
 export MOZ_GOOGLE_API_KEY=%{_google_api_key}
+%if 0%{?suse_version} <= 1320
+export CC=gcc-5
+%endif
 export CFLAGS="%{optflags} -fno-strict-aliasing"
 # boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions for gcc6
 %if 0%{?suse_version} > 1320
@@ -324,13 +330,10 @@
 ac_add_options --includedir=%{_includedir}
 ac_add_options --enable-release
 %if 0%{?firefox_use_rust}
-ac_add_options --enable-rust
+%else
+ac_add_options --disable-rust
 %endif
-%if 0%{?firefox_use_gtk3}
 ac_add_options --enable-default-toolkit=cairo-gtk3
-%else
-ac_add_options --enable-default-toolkit=cairo-gtk2
-%endif
 %if 0%{?build_hardened}
 ac_add_options --enable-pie
 %endif
@@ -575,10 +578,8 @@
 %{progdir}/distribution/extensions/
 %{progdir}/defaults/
 %{progdir}/dictionaries/
-%if 0%{?firefox_use_gtk3}
 %dir %{progdir}/gtk2
 %{progdir}/gtk2/libmozgtk.so
-%endif
 %{progdir}/gmp-clearkey/
 %attr(755,root,root) %{progdir}/%{progname}.sh
 %{progdir}/firefox
--- a/firefox-kde.patch	Sat Mar 18 11:29:43 2017 +0100
+++ b/firefox-kde.patch	Thu Mar 23 14:47:57 2017 +0100
@@ -1,5 +1,5 @@
 # HG changeset patch
-# Parent  1ec12b7509b6dcb0d2c1b77a8f93f81c4381008b
+# Parent  9821fbf1130a9e53e258127655f6d011c7312cce
 
 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
 new file mode 100644
@@ -1561,7 +1561,7 @@
 +NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGNOMEShellService, Init)
 +NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsKDEShellService, Init)
 +
-+NS_METHOD
++NS_IMETHODIMP
 +nsUnixShellServiceConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult)
 +{
 +    if( nsKDEUtils::kdeSupport())
@@ -1584,7 +1584,7 @@
 +
 +#include "nsIGNOMEShellService.h"
 +
-+NS_METHOD
++NS_IMETHODIMP
 +nsUnixShellServiceConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 +
 +#endif // nsunixshellservice_h____