extra/firefox to 60.0-1

This commit is contained in:
Kevin Mihelich 2018-05-12 16:36:37 +00:00
parent 94e646a55a
commit f0bd2f98df
4 changed files with 48 additions and 5 deletions

View file

@ -6,13 +6,16 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - mozconfig changes for ARM # - mozconfig changes for ARM
# - use tarball source # - use tarball source
# - patch for skia from chromium
# - revert change for clang that breaks gcc build on ARM
buildarch=12 buildarch=12
highmem=1 highmem=1
noautobuild=1
pkgname=firefox pkgname=firefox
pkgver=59.0.2 pkgver=60.0
pkgrel=2 pkgrel=1
pkgdesc="Standalone web browser from mozilla.org" pkgdesc="Standalone web browser from mozilla.org"
arch=(x86_64) arch=(x86_64)
license=(MPL GPL LGPL) license=(MPL GPL LGPL)
@ -27,12 +30,20 @@ optdepends=('networkmanager: Location detection via available WiFi networks'
'speech-dispatcher: Text-to-Speech') 'speech-dispatcher: Text-to-Speech')
options=(!emptydirs !makeflags !strip) options=(!emptydirs !makeflags !strip)
source=("https://hg.mozilla.org/releases/mozilla-release/archive/FIREFOX_${pkgver//./_}_RELEASE.tar.gz" source=("https://hg.mozilla.org/releases/mozilla-release/archive/FIREFOX_${pkgver//./_}_RELEASE.tar.gz"
complete-csd-window-offset-mozilla-1457691.patch.xz
0001-Bug-1435212-Add-support-for-FFmpeg-4.0.-r-bryce.patch.xz
$pkgname.desktop firefox-symbolic.svg $pkgname.desktop firefox-symbolic.svg
no-crmf.diff) no-crmf.diff
sha256sums=('3b9ef65818056d1b5316bbc4d48b928adc92cc020c176ceb82234009d118e6a7' skia_buildfix.patch
https://hg.mozilla.org/mozilla-central/raw-rev/537f4d1d837a)
sha256sums=('fc2660c018af79d028c4418c6798020933ee106e19849ca7014f8403ad759eaa'
'a3fb3c3b6fb775c99afdbad507848b77c5e4bbaac2e8ceeb1bfb47699c4b6268'
'8422030440032535d918844263fbd92d39bff207acb5fff55ed0afee38bcf582'
'677e1bde4c6b3cff114345c211805c7c43085038ca0505718a11e96432e9811a' '677e1bde4c6b3cff114345c211805c7c43085038ca0505718a11e96432e9811a'
'9a1a572dc88014882d54ba2d3079a1cf5b28fa03c5976ed2cb763c93dabbd797' '9a1a572dc88014882d54ba2d3079a1cf5b28fa03c5976ed2cb763c93dabbd797'
'02000d185e647aa20ca336e595b4004bb29cdae9d8f317f90078bdcc7a36e873') '02000d185e647aa20ca336e595b4004bb29cdae9d8f317f90078bdcc7a36e873'
'3da0ab55bf92307fe80ed7c9cce6443f5bebc96ba50e751d24f7302786a0406e'
'9fa42f3a4ccd255b56f4157119c08ff19df9f972aa25af4cbb685e3683139c24')
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
# Note: These are for Arch Linux use ONLY. For your own distribution, please # Note: These are for Arch Linux use ONLY. For your own distribution, please
@ -53,6 +64,12 @@ prepare() {
cd mozilla-release-FIREFOX_${pkgver//./_}_RELEASE cd mozilla-release-FIREFOX_${pkgver//./_}_RELEASE
# https://bugzilla.mozilla.org/show_bug.cgi?id=1283299#c158
patch -Np1 -i ../complete-csd-window-offset-mozilla-1457691.patch
# https://bugzilla.mozilla.org/show_bug.cgi?id=1435212
patch -Np1 -i ../0001-Bug-1435212-Add-support-for-FFmpeg-4.0.-r-bryce.patch
# https://bugzilla.mozilla.org/show_bug.cgi?id=1371991 # https://bugzilla.mozilla.org/show_bug.cgi?id=1371991
patch -Np1 -i ../no-crmf.diff patch -Np1 -i ../no-crmf.diff
@ -110,7 +127,11 @@ END
echo "ac_add_options --disable-stylo" >> .mozconfig echo "ac_add_options --disable-stylo" >> .mozconfig
elif [[ $CARCH == "aarch64" ]]; then elif [[ $CARCH == "aarch64" ]]; then
echo 'ac_add_options --enable-optimize="-O2"' >> .mozconfig echo 'ac_add_options --enable-optimize="-O2"' >> .mozconfig
echo "ac_add_options --disable-stylo" >> .mozconfig
fi fi
patch -p2 -d gfx/skia -i "${srcdir}/skia_buildfix.patch"
patch -Rp1 -i ../537f4d1d837a
} }
build() { build() {

View file

@ -0,0 +1,22 @@
Index: chromium-browser-65.0.3325.73/third_party/skia/src/jumper/SkJumper_stages.cpp
===================================================================
--- chromium-browser-65.0.3325.73.orig/third_party/skia/src/jumper/SkJumper_stages.cpp
+++ chromium-browser-65.0.3325.73/third_party/skia/src/jumper/SkJumper_stages.cpp
@@ -666,7 +666,7 @@ SI F approx_powf(F x, F y) {
}
SI F from_half(U16 h) {
-#if defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
+#if defined(JUMPER_IS_NEON) && defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
return vcvt_f32_f16(h);
#elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_AVX512)
@@ -686,7 +686,7 @@ SI F from_half(U16 h) {
}
SI U16 to_half(F f) {
-#if defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
+#if defined(JUMPER_IS_NEON) && defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
return vcvt_f16_f32(f);
#elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_AVX512)