From 206b6f2820a5322f3c2f6a7686ca7e8464d05959645fdc60f3998c5e2dba88a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Mon, 25 Jun 2018 20:56:47 +0000 Subject: [PATCH] - update to Firefox 61.0 * Performance enhancements * Various improvements for dark theme support will provide a more consistent experience across the entire Firefox UI * OpenSearch plugins offered by web pages can now be added from the page action menu for easier installation * Improved support for allowing WebExtensions to manage and hide tabs - requires NSS 3.37.3 - requires python >= 3.5 to build - removed obsolete patches mozilla-i586-DecoderDoctorLogger.patch mozilla-i586-domPrefs.patch mozilla-fix-skia-aarch64.patch mozilla-bmo1375074.patch mozilla-enable-csd.patch - patch for new no-return warnings (mozilla-no-return.patch) - do not disable system installed locales (mozilla-bmo1464766.patch) - Add conditional for pkgconfig(gconf-2.0) BuildRequires, and pass conditional --disable-gconf to configure: no longer pull in obsolete gconf2 for Tumbleweed. OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=673 --- MozillaFirefox.changes | 28 +++++ MozillaFirefox.spec | 42 ++++---- compare-locales.tar.xz | 2 +- create-tar.sh | 85 ++++++++------- firefox-60.0.2.source.tar.xz | 3 - firefox-60.0.2.source.tar.xz.asc | 17 --- firefox-61.0.source.tar.xz | 3 + firefox-61.0.source.tar.xz.asc | 17 +++ firefox-branded-icons.patch | 12 +-- firefox-kde.patch | 137 ++++++++++++++----------- l10n-60.0.2.tar.xz | 3 - l10n-61.0.tar.xz | 3 + mozilla-bmo1375074.patch | 95 ----------------- mozilla-bmo1464766.patch | 119 +++++++++++++++++++++ mozilla-fix-skia-aarch64.patch | 20 ---- mozilla-i586-DecoderDoctorLogger.patch | 26 ----- mozilla-i586-domPrefs.patch | 27 ----- mozilla-kde.patch | 84 +++++---------- mozilla-no-return.patch | 40 ++++++++ source-stamp.txt | 2 +- 20 files changed, 383 insertions(+), 382 deletions(-) delete mode 100644 firefox-60.0.2.source.tar.xz delete mode 100644 firefox-60.0.2.source.tar.xz.asc create mode 100644 firefox-61.0.source.tar.xz create mode 100644 firefox-61.0.source.tar.xz.asc delete mode 100644 l10n-60.0.2.tar.xz create mode 100644 l10n-61.0.tar.xz delete mode 100644 mozilla-bmo1375074.patch create mode 100644 mozilla-bmo1464766.patch delete mode 100644 mozilla-fix-skia-aarch64.patch delete mode 100644 mozilla-i586-DecoderDoctorLogger.patch delete mode 100644 mozilla-i586-domPrefs.patch create mode 100644 mozilla-no-return.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index c4fe7ae..f672708 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sat Jun 23 07:25:51 UTC 2018 - wr@rosenauer.org + +- update to Firefox 61.0 + * Performance enhancements + * Various improvements for dark theme support will provide a more + consistent experience across the entire Firefox UI + * OpenSearch plugins offered by web pages can now be added from the + page action menu for easier installation + * Improved support for allowing WebExtensions to manage and hide tabs +- requires NSS 3.37.3 +- requires python >= 3.5 to build +- removed obsolete patches + mozilla-i586-DecoderDoctorLogger.patch + mozilla-i586-domPrefs.patch + mozilla-fix-skia-aarch64.patch + mozilla-bmo1375074.patch + mozilla-enable-csd.patch +- patch for new no-return warnings (mozilla-no-return.patch) +- do not disable system installed locales (mozilla-bmo1464766.patch) + +------------------------------------------------------------------- +Fri Jun 8 10:52:13 UTC 2018 - bjorn.lie@gmail.com + +- Add conditional for pkgconfig(gconf-2.0) BuildRequires, and pass + conditional --disable-gconf to configure: no longer pull in + obsolete gconf2 for Tumbleweed. + ------------------------------------------------------------------- Thu Jun 7 12:11:06 UTC 2018 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index d3782c3..2723e92 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -18,12 +18,14 @@ # changed with every update -%define major 60 -%define mainver %major.0.2 +%define major 61 +%define mainver %major.0 +%define orig_version 61.0 +%define orig_suffix %{nil} %define update_channel release -%define branding 1 -%define releasedate 20180605171542 -%define source_prefix firefox-%{mainver} +%define branding 1 +%define releasedate 20180621125625 +%define source_prefix firefox-%{orig_version} # PIE, full relro (x86_64 for now) %define build_hardened 1 @@ -73,9 +75,10 @@ BuildRequires: libnotify-devel BuildRequires: libproxy-devel BuildRequires: makeinfo BuildRequires: mozilla-nspr-devel >= 4.19 -BuildRequires: mozilla-nss-devel >= 3.36.4 +BuildRequires: mozilla-nss-devel >= 3.37.3 BuildRequires: python-devel BuildRequires: python2-xml +BuildRequires: python3 >= 3.5 BuildRequires: rust >= 1.24 BuildRequires: rust-std BuildRequires: startup-notification-devel @@ -84,7 +87,9 @@ BuildRequires: update-desktop-files BuildRequires: xorg-x11-libXt-devel BuildRequires: yasm BuildRequires: zip +%if 0%{?suse_version} < 1550 BuildRequires: pkgconfig(gconf-2.0) +%endif BuildRequires: pkgconfig(gdk-x11-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.22 BuildRequires: pkgconfig(gobject-2.0) @@ -122,13 +127,13 @@ Summary: Mozilla %{appname} Web Browser License: MPL-2.0 Group: Productivity/Networking/Web/Browsers Url: http://www.mozilla.org/ -Source: http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz +Source: http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{orig_version}%{orig_suffix}.source.tar.xz Source1: MozillaFirefox.desktop Source2: MozillaFirefox-rpmlintrc Source3: mozilla.sh.in Source5: source-stamp.txt Source6: kde.js -Source7: l10n-%{version}.tar.xz +Source7: l10n-%{orig_version}%{orig_suffix}.tar.xz Source8: firefox-mimeinfo.xml Source9: firefox.js Source10: compare-locales.tar.xz @@ -143,7 +148,7 @@ Source16: MozillaFirefox.changes # please get your own set of keys. Source18: mozilla-api-key Source19: google-api-key -Source20: http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz.asc +Source20: http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{orig_version}%{orig_suffix}.source.tar.xz.asc Source21: mozilla.keyring # Gecko/Toolkit Patch1: mozilla-nongnome-proxies.patch @@ -154,11 +159,8 @@ Patch5: mozilla-no-stdcxx-check.patch Patch6: mozilla-reduce-files-per-UnifiedBindings.patch Patch7: mozilla-aarch64-startup-crash.patch Patch8: mozilla-bmo256180.patch -Patch9: mozilla-i586-DecoderDoctorLogger.patch -Patch10: mozilla-i586-domPrefs.patch -Patch11: mozilla-enable-csd.patch -Patch12: mozilla-fix-skia-aarch64.patch -Patch13: mozilla-bmo1375074.patch +Patch9: mozilla-no-return.patch +Patch10: mozilla-bmo1464766.patch # Firefox/browser Patch101: firefox-kde.patch Patch102: firefox-branded-icons.patch @@ -268,13 +270,8 @@ cd $RPM_BUILD_DIR/%{source_prefix} %endif %patch7 -p1 %patch8 -p1 -%ifarch %ix86 %patch9 -p1 %patch10 -p1 -%endif -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 # Firefox %patch101 -p1 %patch102 -p1 @@ -340,6 +337,9 @@ ac_add_options --libdir=%{_libdir} ac_add_options --includedir=%{_includedir} ac_add_options --enable-release ac_add_options --enable-default-toolkit=cairo-gtk3 +%if 0%{?suse_version} >= 1550 +ac_add_options --disable-gconf +%endif %if 0%{?build_hardened} ac_add_options --enable-pie %endif @@ -418,6 +418,7 @@ install -m 644 %{SOURCE6} %{buildroot}%{progdir}/browser/defaults/preferences/kd install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js # install additional locales %if %localize +mkdir -p %{buildroot}%{progdir}/browser/extensions truncate -s 0 %{_tmppath}/translations.{common,other} sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/browser/locales/shipped-locales \ | xargs -P 8 -n 1 -I {} /bin/sh -c ' @@ -576,11 +577,9 @@ exit 0 %dir %{progdir} %dir %{progdir}/browser/ %dir %{progdir}/browser/chrome/ -%dir %{progdir}/browser/extensions/ %{progdir}/browser/defaults %{progdir}/browser/features/ %{progdir}/browser/chrome/icons -%{progdir}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi %{progdir}/browser/blocklist.xml %{progdir}/browser/chrome.manifest %{progdir}/browser/omni.ja @@ -597,7 +596,6 @@ exit 0 %{progdir}/application.ini %{progdir}/chrome.manifest %{progdir}/dependentlibs.list -#%{progdir}/icudt*.dat %{progdir}/*.so %{progdir}/omni.ja %{progdir}/fonts/ diff --git a/compare-locales.tar.xz b/compare-locales.tar.xz index b799ae2..ec0ddeb 100644 --- a/compare-locales.tar.xz +++ b/compare-locales.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:971053a42b39417bb7d549e3de0d4b267732bb961e5178bbc3a2340b58f84b31 +oid sha256:afe9b5aaf788e86ff4d2249b500e8cd457f7102a04d1d23db0ca6aa629e228d6 size 28368 diff --git a/create-tar.sh b/create-tar.sh index 18339aa..39d19bc 100644 --- a/create-tar.sh +++ b/create-tar.sh @@ -7,45 +7,15 @@ CHANNEL="release" BRANCH="releases/mozilla-$CHANNEL" -RELEASE_TAG="FIREFOX_60_0_2_RELEASE" -VERSION="60.0.2" +RELEASE_TAG="785d242a5b01d5f1094882aa2144d8e5e2791e06" +VERSION="61.0" +VERSION_SUFFIX="" +LOCALE_FILE="firefox-$VERSION/browser/locales/l10n-changesets.json" # check required tools test -x /usr/bin/hg || ( echo "hg missing: execute zypper in mercurial"; exit 5 ) test -x /usr/bin/jq || ( echo "jq missing: execute zypper in jq"; exit 5 ) - -# mozilla -if [ -d mozilla ]; then - pushd mozilla - _repourl=$(hg paths) - case "$_repourl" in - *$BRANCH*) - echo "updating previous tree" - hg pull - popd - ;; - * ) - echo "removing obsolete tree" - popd - rm -rf mozilla - ;; - esac -fi -if [ ! -d mozilla ]; then - echo "cloning new $BRANCH..." - hg clone http://hg.mozilla.org/$BRANCH mozilla -fi -pushd mozilla -hg update --check -[ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG -# get repo and source stamp -echo -n "REV=" > ../source-stamp.txt -hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt -echo -n "REPO=" >> ../source-stamp.txt -hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt -popd - # use parallel compression, if available compression='-J' pixz -h > /dev/null 2>&1 @@ -53,13 +23,52 @@ if (($? != 127)); then compression='-Ipixz' fi -echo "creating archive..." -tar $compression -cf firefox-$VERSION.source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla +# we might have an upstream archive already and can skip the checkout +if [ -e firefox-$VERSION$VERSION_SUFFIX.source.tar.xz ]; then + echo "skip firefox checkout and use available archive" + # still need to extract the locale information from the archive + echo "extract locale changesets" + tar -xf firefox-$VERSION$VERSION_SUFFIX.source.tar.xz $LOCALE_FILE +else + # mozilla + if [ -d firefox-$VERSION ]; then + pushd firefox-$VERSION + _repourl=$(hg paths) + case "$_repourl" in + *$BRANCH*) + echo "updating previous tree" + hg pull + popd + ;; + * ) + echo "removing obsolete tree" + popd + rm -rf firefox-$VERSION + ;; + esac + fi + if [ ! -d firefox-$VERSION ]; then + echo "cloning new $BRANCH..." + hg clone http://hg.mozilla.org/$BRANCH firefox-$VERSION + fi + pushd firefox-$VERSION + hg update --check + [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG + # get repo and source stamp + echo -n "REV=" > ../source-stamp.txt + hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt + echo -n "REPO=" >> ../source-stamp.txt + hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt + popd + + echo "creating archive..." + tar $compression -cf firefox-$VERSION$VERSION_SUFFIX.source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS firefox-$VERSION +fi # l10n echo "fetching locales..." test ! -d l10n && mkdir l10n -jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' mozilla/browser/locales/l10n-changesets.json | \ +jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' $LOCALE_FILE | \ while read locale changeset ; do case $locale in ja-JP-mac|en-US) @@ -73,7 +82,7 @@ jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' mozilla/browser/locales/l10n esac done echo "creating l10n archive..." -tar $compression -cf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n +tar $compression -cf l10n-$VERSION$VERSION_SUFFIX.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n # compare-locales echo "creating compare-locales" diff --git a/firefox-60.0.2.source.tar.xz b/firefox-60.0.2.source.tar.xz deleted file mode 100644 index 513378e..0000000 --- a/firefox-60.0.2.source.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:764566a06b71164e7fd20b2b0e6b08a71b4ccd4d6fd61867eb08011a551f6725 -size 271930220 diff --git a/firefox-60.0.2.source.tar.xz.asc b/firefox-60.0.2.source.tar.xz.asc deleted file mode 100644 index bf6c9f8..0000000 --- a/firefox-60.0.2.source.tar.xz.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iQIcBAABCAAGBQJbFuptAAoJELu+vbskxvNV2LMP/iZWM65JBnCbUL2GFecRvf41 -l8izB7XhECYWJE9XOJt0/wOCyugBpcM+Fmf5a3vrwt57cpANLIxoeefEUOU6VNPD -a//aWs9m1GbCupO6Pxuhrwo+oUGUgMXDiEnfVhujriXWB5ZP/QlqvyqERJLYA5sk -gvMvm5ua2ZfN0ko3qxpJfs0d+k70TDBFkNKcqmhROMCn+VY7sItqUSRcAe9Bu33A -bVyahF9k4ko6HLV6JztqO8UHRh4bOnR3aYG++CqRrmTpzme/RbeLG37JW4oHPGPb -jJwBzU1gHl7VQyhqKkdLLEvtz4O711xU45yksgaWTAtO+2hN6gdQTVsD7OaRuuE+ -hDeWYhqiXZGqqAHz2Mh+9bwa2NaJXPLpGAbNaMzk7eC4eQ+fcnNULA58XYuI3gkN -8SVoE+7tCjvoTTOxW3jWmDwGnG/ObP8z5qtnOh81HZyKFxy9kzyL3DPOJKVhiSNo -HBPXZd1z/Io6MlK6d0NntIavJkO+0RJ8m1EZYpvqZql0NKk9XpnOveWCGW1nwuXv -oHddFavyuNw7u67WQrQdaSD3yCoCoB8Qc9IwcLiDy/Aznp9iLpbvZ569R3ehe9QK -+V7DEIy+wM/yBu/qHGM/sPQwmgTMnItgECBxZaF4ikrb/XjVYmbvjrA7D4834zyt -HfV/bjMvQdbV7v7QVKU8 -=FXyF ------END PGP SIGNATURE----- diff --git a/firefox-61.0.source.tar.xz b/firefox-61.0.source.tar.xz new file mode 100644 index 0000000..ca4ddc4 --- /dev/null +++ b/firefox-61.0.source.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3453e8ac7c602390bda0d34a4a636e0d65fd89d9ae69f7aa1740926715c42268 +size 266932956 diff --git a/firefox-61.0.source.tar.xz.asc b/firefox-61.0.source.tar.xz.asc new file mode 100644 index 0000000..14c2126 --- /dev/null +++ b/firefox-61.0.source.tar.xz.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iQIcBAABCAAGBQJbLAYAAAoJELu+vbskxvNV74MQAImAjaPBzW2ytG6f3pK8A4VB +fwhex7/7gaJv+Y5YdcIolRRMEzUJ7dVqPkoiQK+fE5yc3HX+/Vs5/YnGa6nt8Tml ++cootnuiXnONb3wClUByLbgFw2vfE7uy6vgoL2HaoWYKGVMo1n3zvs24upi6w3XV +rbj0vvHY1Y7GfCUIuU8S85VYRxvtQB+UcGEUXy6Rtpb/hyPqzPqgctMRUmfLGUUr +rTxgHhmOlPoMsCYp1QeFzhmAwHXa88I57KjIchMsVZhOWQ9rUQzU1WXSmIvUEU6C +ukpouiFd7mMRkNpSVa86r+IWR40y6C8YpXq/yE3aSYiVZugenC3R2BkkAhBd5u++ +4AZN+yE7saA8EESmSGJ3BPKFe+4237Ux6cmpRjRjRMM805RdD2CBxuInYe07WSaY +jQpV0zQY/AOI5m9wdqsH32F1u7B9GUt4u7L2wsOnvDT244OWL3OFWr1H1pGdWosJ +y9WugGrR6qTfw76AUpc/GSkIsLDvs0552PwwAumkZ254hwA/pEnQlE1W5V81rMpr +deB9ONVY7ZWLRNSM4G3M3Zh6a+FkLdDfBwvcyTazdEtjujxmgzUs2XNS4BPSxiu4 +fiRnyjkjY3ZLjDpAB1K4EvLg3kYhYop4XyUCnFTX0mopETFs84mRAKmzkIbT8osZ +0aXJpCAJEq4ml8kSTvoS +=TGCY +-----END PGP SIGNATURE----- diff --git a/firefox-branded-icons.patch b/firefox-branded-icons.patch index 8c1ffa1..b72f177 100644 --- a/firefox-branded-icons.patch +++ b/firefox-branded-icons.patch @@ -1,11 +1,11 @@ # HG changeset patch # Parent e0751ad74e835e80041a61ea00c2a63bf6fbe2de -# Parent 38e46d7f98d3e392de95d83660ecd147b30dc9aa +# Parent 8a401a01454e9f5e8a357262d774e0ff348d9bc1 diff --git a/browser/branding/branding-common.mozbuild b/browser/branding/branding-common.mozbuild --- a/browser/branding/branding-common.mozbuild +++ b/browser/branding/branding-common.mozbuild -@@ -17,12 +17,15 @@ def FirefoxBranding(): +@@ -22,12 +22,15 @@ def FirefoxBranding(): FINAL_TARGET_FILES.VisualElements += [ 'VisualElements_150.png', 'VisualElements_70.png', @@ -24,9 +24,9 @@ diff --git a/browser/branding/branding-common.mozbuild b/browser/branding/brandi diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in -@@ -601,20 +601,23 @@ - @RESPATH@/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest - @RESPATH@/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf +@@ -404,20 +404,23 @@ + @RESPATH@/browser/chrome/pdfjs.manifest + @RESPATH@/browser/chrome/pdfjs/* @RESPATH@/chrome/toolkit@JAREXT@ @RESPATH@/chrome/toolkit.manifest @RESPATH@/chrome/recording.manifest @@ -46,5 +46,5 @@ diff --git a/browser/installer/package-manifest.in b/browser/installer/package-m ; [Webide Files] @RESPATH@/browser/chrome/webide@JAREXT@ @RESPATH@/browser/chrome/webide.manifest - @RESPATH@/browser/@PREF_DIR@/webide-prefs.js + @RESPATH@/browser/@PREF_DIR@/webide.js diff --git a/firefox-kde.patch b/firefox-kde.patch index 6c57040..7b11b84 100644 --- a/firefox-kde.patch +++ b/firefox-kde.patch @@ -1,11 +1,11 @@ # HG changeset patch -# Parent 1b44c077e473c5a7d02fab26e2a220ebf219e0ab +# Parent 242712e5a1879111d1a93a5d55dfae3fd5d47abc diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul new file mode 100644 --- /dev/null +++ b/browser/base/content/browser-kde.xul -@@ -0,0 +1,1280 @@ +@@ -0,0 +1,1293 @@ +#filter substitution + +# -*- Mode: HTML -*- @@ -21,14 +21,17 @@ new file mode 100644 + + + ++ ++ + + -+ -+ ++ + +# All DTD information is stored in a separate file so that it can be shared by +# hiddenWindow.xul. ++ + + + -+# All JS files which are not content (only) dependent that browser.xul -+# wishes to include *must* go into the global-scripts.inc file -+# so that they can be shared by macBrowserOverlay.xul. ++# All JS files which are needed by browser.xul and other top level windows to ++# support MacOS specific features *must* go into the global-scripts.inc file so ++# that they can be shared with macWindow.inc.xul. +#include global-scripts.inc + + + -+# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the -+# browser-sets.inc file for sharing with hiddenWindow.xul. ++# All sets except for popupsets (commands, keys, stringbundles and broadcasters) ++# *must* go into the browser-sets.inc file so that they can be shared with other ++# top level windows in macWindow.inc.xul. +#define FULL_BROWSER_WINDOW +#include browser-sets.inc +#undef FULL_BROWSER_WINDOW @@ -219,7 +235,7 @@ new file mode 100644 + + + -+