Skip to content

Commit

Permalink
Merge pull request #40396 from andir/18.03/firefox-60
Browse files Browse the repository at this point in the history
[18.03] firefox-{esr,} 60
  • Loading branch information
andir committed May 12, 2018
2 parents 7dde651 + bb5c693 commit beb2a87
Show file tree
Hide file tree
Showing 9 changed files with 488 additions and 430 deletions.
788 changes: 399 additions & 389 deletions pkgs/applications/networking/browsers/firefox-bin/release_sources.nix

Large diffs are not rendered by default.

@@ -0,0 +1,26 @@
Yep, it's a "return code was ignored" bug.
diff --git a/media/libcubeb/src/cubeb_pulse.c b/media/libcubeb/src/cubeb_pulse.c
index aaaaaaaaaaa..bbbbbbbbbbb 100644
--- a/media/libcubeb/src/cubeb_pulse.c
+++ b/media/libcubeb/src/cubeb_pulse.c
@@ -473,6 +473,8 @@
static int
pulse_context_init(cubeb * ctx)
{
+ int r;
+
if (ctx->context) {
assert(ctx->error == 1);
pulse_context_destroy(ctx);
@@ -486,9 +488,9 @@
WRAP(pa_context_set_state_callback)(ctx->context, context_state_callback, ctx);

WRAP(pa_threaded_mainloop_lock)(ctx->mainloop);
- WRAP(pa_context_connect)(ctx->context, NULL, 0, NULL);
+ r = WRAP(pa_context_connect)(ctx->context, NULL, 0, NULL);

- if (wait_until_context_ready(ctx) != 0) {
+ if (r < 0 || wait_until_context_ready(ctx) != 0) {
WRAP(pa_threaded_mainloop_unlock)(ctx->mainloop);
pulse_context_destroy(ctx);
ctx->context = NULL;
@@ -1,7 +1,7 @@
diff -ru -x '*~' firefox-55.0.3-orig/docshell/base/nsAboutRedirector.cpp firefox-55.0.3/docshell/base/nsAboutRedirector.cpp
--- firefox-55.0.3-orig/docshell/base/nsAboutRedirector.cpp 2017-07-31 18:20:51.000000000 +0200
+++ firefox-55.0.3/docshell/base/nsAboutRedirector.cpp 2017-09-26 22:02:00.814151731 +0200
@@ -40,10 +40,6 @@
@@ -36,10 +36,6 @@
nsIAboutModule::ALLOW_SCRIPT
},
{
Expand All @@ -20,6 +20,6 @@ diff -ru -x '*~' firefox-55.0.3-orig/toolkit/content/jar.mn firefox-55.0.3/toolk
content/global/browser-child.js
content/global/browser-content.js
-* content/global/buildconfig.html
content/global/buildconfig.css
content/global/contentAreaUtils.js
#ifndef MOZ_FENNEC
content/global/customizeToolbar.css
content/global/datepicker.xhtml
60 changes: 44 additions & 16 deletions pkgs/applications/networking/browsers/firefox/packages.nix
@@ -1,20 +1,31 @@
{ lib, callPackage, stdenv, overrideCC, gcc5, fetchurl, fetchFromGitHub, fetchpatch }:

let common = opts: callPackage (import ./common.nix opts); in
let

common = opts: callPackage (import ./common.nix opts);

nixpkgsPatches = [
./env_var_for_system_dir.patch

# this one is actually an omnipresent bug
# https://bugzilla.mozilla.org/show_bug.cgi?id=1444519
./fix-pa-context-connect-retval.patch
];

in

rec {

firefox = common rec {
pname = "firefox";
version = "59.0.2";
version = "60.0";
src = fetchurl {
url = "https://hg.mozilla.org/releases/mozilla-release/archive/239e434d6d2b8e1e2b697c3416d1e96d48fe98e5.tar.bz2";
sha512 = "3kfh224sfc9ig4733frnskcs49xzjkrs00lxllsvx1imm6f4sf117mqlvc7bhgrn8ldiqn6vaa5g6gd9b7awkk1g975bbzk9namb3yv";
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "3ya0rq50cwryza7d56mm3g2h7kayh17vry565qvaq7wsi9gcd4cbjk4z7a1s4bdka0xsxg2l7v0zkaj666nbllky2462svbi8imdhb3";
};

patches = [
patches = nixpkgsPatches ++ [
./no-buildconfig.patch
./env_var_for_system_dir.patch
];

meta = {
Expand All @@ -28,17 +39,15 @@ rec {
};
} {};

firefox-esr = common rec {
firefox-esr-52 = common rec {
pname = "firefox-esr";
version = "52.7.3esr";
version = "52.8.0esr";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "31y3qrslg61724vmly6gr1lqcrqgpkh3zsl8riax45gizfcp3qbgkvmd5wwfn9fiwjqi6ww3i08j51wxrfxcxznv7c6qzsvzzc30mgw";
sha512 = "4136fa582e4ffd754d46a79bdb562bd12da4d013d87dfe40fa92addf377e95f5f642993c8b783edd5290089619beeb5a907a0810b68b8808884f087986977df1";
};

patches = [
./env_var_for_system_dir.patch
]
patches = nixpkgsPatches
# The following patch is only required on ARM platforms and should be
# included for the next ESR release >= 52.7.3esr
++ lib.optional stdenv.isAarch32
Expand All @@ -58,6 +67,27 @@ rec {
};
} {};

firefox-esr-60 = common rec {
pname = "firefox-esr";
version = "60.0esr";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "20whvk4spdi4yb3alb492c1jca60p4p70mgj2bypa7r8fgjqn57pyh9rcvnci61asar0zvmlihq46ywzrijm1804iw8c4wmlv7qy8dv";
};

patches = nixpkgsPatches ++ [
./no-buildconfig.patch
];

meta = firefox.meta // {
description = "A web browser built from Firefox Extended Support Release source tree";
};
updateScript = callPackage ./update.nix {
attrPath = "firefox-esr-unwrapped";
versionSuffix = "esr";
};
} {};

} // (let

commonAttrs = {
Expand Down Expand Up @@ -121,8 +151,7 @@ in rec {
sha256 = "169mjkr0bp80yv9nzza7kay7y2k03lpnx71h4ybcv9ygxgzdgax5";
};

patches =
[ ./env_var_for_system_dir.patch ];
patches = nixpkgsPatches;
} // commonAttrs) {};

tor-browser-7-5 = common (rec {
Expand All @@ -139,8 +168,7 @@ in rec {
sha256 = "0llbk7skh1n7yj137gv7rnxfasxsnvfjp4ss7h1fbdnw19yba115";
};

patches =
[ ./env_var_for_system_dir.patch ];
patches = nixpkgsPatches;
} // commonAttrs) {};

tor-browser = tor-browser-7-5;
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/networking/browsers/firefox/update.nix
Expand Up @@ -28,7 +28,5 @@ writeScript "update-${attrPath}" ''
sort --version-sort | \
tail -n 1`
shasum=`curl --silent $url$version/SHA512SUMS | grep 'source\.tar\.xz' | cut -d ' ' -f 1`
update-source-version ${attrPath} "$version" "$shasum"
update-source-version ${attrPath} "$version"
''
4 changes: 2 additions & 2 deletions pkgs/development/libraries/nspr/default.nix
@@ -1,14 +1,14 @@
{ stdenv, fetchurl
, CoreServices ? null }:

let version = "4.18"; in
let version = "4.19"; in

stdenv.mkDerivation {
name = "nspr-${version}";

src = fetchurl {
url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "0d7vr3wrgp73qbywrvdkikk8vq1s1n9vhf62db80g1zqkg05g5mq";
sha256 = "0agpv3f17h8kmzi0ifibaaxc1k3xc0q61wqw3l6r2xr2z8bmkn9f";
};

outputs = [ "out" "dev" ];
Expand Down
15 changes: 3 additions & 12 deletions pkgs/development/libraries/nss/default.nix
@@ -1,25 +1,18 @@
{ stdenv, fetchurl, nspr, perl, zlib, sqlite, fixDarwinDylibNames }:

let

# Fix aarch64 build, shouldn't be needed after 3.35
aarch64Patch = fetchurl {
url = https://hg.mozilla.org/projects/nss/raw-rev/74e679158d1b;
sha256 = "1lhs4h32mb2al3z461yylk227nid769di1pdjr7p0kqm2z1qm3jq";
};

nssPEM = fetchurl {
url = http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz;
sha256 = "10ibz6y0hknac15zr6dw4gv9nb5r5z9ym6gq18j3xqx7v7n3vpdw";
};

in stdenv.mkDerivation rec {
name = "nss-${version}";
version = "3.35";
version = "3.36.1";

src = fetchurl {
url = "mirror://mozilla/security/nss/releases/NSS_3_35_RTM/src/${name}.tar.gz";
sha256 = "1ypn68z9ncbbshi3184ywrhx5i846lyd72gps1grzqzdkgh7s4pl";
url = "mirror://mozilla/security/nss/releases/NSS_3_36_1_RTM/src/${name}.tar.gz";
sha256 = "1zrb49mp7cy3snnday1zv8d76h1mgppbcwxnlkqsgxlga8fl89b0";
};

buildInputs = [ perl zlib sqlite ]
Expand All @@ -29,8 +22,6 @@ in stdenv.mkDerivation rec {

prePatch = ''
xz -d < ${nssPEM} | patch -p1
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
(cd nss && patch -p1 < ${aarch64Patch})
'';

patches =
Expand Down
8 changes: 5 additions & 3 deletions pkgs/development/libraries/sqlite/default.nix
Expand Up @@ -3,11 +3,11 @@
assert interactive -> readline != null && ncurses != null;

stdenv.mkDerivation {
name = "sqlite-3.21.0";
name = "sqlite-3.22.0";

src = fetchurl {
url = "http://sqlite.org/2017/sqlite-autoconf-3210000.tar.gz";
sha256 = "1qxvzdjwzw6k0kqjfabj86rnq87xdbwbca7laxxdhnh0fmkm3pfp";
url = "http://sqlite.org/2018/sqlite-autoconf-3220000.tar.gz";
sha256 = "04n6hnw2g818d7r92cp2608kd5mhzyysy83k29kbq1mp709an918";
};

outputs = [ "bin" "dev" "out" ];
Expand All @@ -31,6 +31,8 @@ stdenv.mkDerivation {
"-DSQLITE_ENABLE_UNLOCK_NOTIFY"
"-DSQLITE_SOUNDEX"
"-DSQLITE_SECURE_DELETE"
"-DSQLITE_MAX_VARIABLE_NUMBER=250000"
"-DSQLITE_MAX_EXPR_DEPTH=10000"
];

# Test for features which may not be available at compile time
Expand Down
7 changes: 5 additions & 2 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -15678,11 +15678,14 @@ with pkgs;
});

firefox-unwrapped = firefoxPackages.firefox;
firefox-esr-unwrapped = firefoxPackages.firefox-esr;
firefox-esr-52-unwrapped = firefoxPackages.firefox-esr-52;
firefox-esr-60-unwrapped = firefoxPackages.firefox-esr-60;
tor-browser-unwrapped = firefoxPackages.tor-browser;

firefox = wrapFirefox firefox-unwrapped { };
firefox-esr = wrapFirefox firefox-esr-unwrapped { };
firefox-esr-52 = wrapFirefox firefox-esr-52-unwrapped { };
firefox-esr-60 = wrapFirefox firefox-esr-60-unwrapped { };
firefox-esr = firefox-esr-52;

firefox-bin-unwrapped = callPackage ../applications/networking/browsers/firefox-bin {
channel = "release";
Expand Down

0 comments on commit beb2a87

Please sign in to comment.