firefox: fix build on aarch64 with version >= 60

The firefox build fails with an error referring to ssse2 which doesn't
exist on aarch64.
This commit is contained in:
Andreas Rammhold 2018-05-13 19:19:55 +02:00
parent 16b6f53910
commit 780d122d72
No known key found for this signature in database
GPG key ID: E432E410B5E48C86
2 changed files with 11 additions and 3 deletions

View file

@ -28,7 +28,9 @@
# WARNING: NEVER set any of the options below to `true` by default.
# Set to `privacySupport` or `false`.
, webrtcSupport ? !privacySupport
# webrtcSupport breaks the aarch64 build on version >= 60.
# https://bugzilla.mozilla.org/show_bug.cgi?id=1434589
, webrtcSupport ? (if lib.versionAtLeast version "60" && stdenv.isAarch64 then false else !privacySupport)
, geolocationSupport ? !privacySupport
, googleAPISupport ? geolocationSupport
, crashreporterSupport ? false

View file

@ -12,6 +12,12 @@ let
./fix-pa-context-connect-retval.patch
];
firefox60_aarch64_skia_patch = fetchpatch {
name = "aarch64-skia.patch";
url = https://src.fedoraproject.org/rpms/firefox/raw/8cff86d95da3190272d1beddd45b41de3148f8ef/f/build-aarch64-skia.patch;
sha256 = "11acb0ms4jrswp7268nm2p8g8l4lv8zc666a5bqjbb09x9k6b78k";
};
in
rec {
@ -26,7 +32,7 @@ rec {
patches = nixpkgsPatches ++ [
./no-buildconfig.patch
];
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
meta = {
description = "A web browser built from Firefox source tree";
@ -68,7 +74,7 @@ rec {
patches = nixpkgsPatches ++ [
./no-buildconfig.patch
];
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
meta = firefox.meta // {
description = "A web browser built from Firefox Extended Support Release source tree";