git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: Update all channels to latest versions

Overview of the updated versions: stable: 48.0.2564.116 -> 49.0.2623.75 beta: 49.0.2623.63 -> 49.0.2623.75 dev: 50.0.2657.0 -> 50.0.2661.11 Stable and beta are now in par because of the release of a major stable update. The release addresses 26 security vulnerabilities, the following with an assigned CVE: * CVE-2016-1630: Same-origin bypass in Blink. Credit to Mariusz Mlynski. * CVE-2016-1631: Same-origin bypass in Pepper Plugin. Credit to Mariusz Mlynski. * CVE-2016-1632: Bad cast in Extensions. Credit to anonymous. * CVE-2016-1633: Use-after-free in Blink. Credit to cloudfuzzer. * CVE-2016-1634: Use-after-free in Blink. Credit to cloudfuzzer. * CVE-2016-1635: Use-after-free in Blink. Credit to Rob Wu. * CVE-2016-1636: SRI Validation Bypass. Credit to Ryan Lester and Bryant Zadegan. * CVE-2015-8126: Out-of-bounds access in libpng. Credit to joerg.bornemann. * CVE-2016-1637: Information Leak in Skia. Credit to Keve Nagy. * CVE-2016-1638: WebAPI Bypass. Credit to Rob Wu. * CVE-2016-1639: Use-after-free in WebRTC. Credit to Khalil Zhani. * CVE-2016-1640: Origin confusion in Extensions UI. Credit to Luan Herrera. * CVE-2016-1641: Use-after-free in Favicon. Credit to Atte Kettunen of OUSPG. The full announcement which also includes the link to the bug tracker can be found here: http://googlechromereleases.blogspot.de/2016/03/stable-channel-update.html Also, the 32bit Chrome package needed for the Flash and Widevine plugins doesn't exist anymore, because Google has dropped support for 32bit distros, see here for the announcement: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/FoE6sL-p6oU On our end, we need to fix the patch for the plugin paths to work for the latest dev channel. The change is very minor, because the nix_plugin_paths_46.patch only doesn't apply because of an iOS-related ifdef. Built and tested on my Hydra at: https://headcounter.org/hydra/eval/311511 Signed-off-by: aszlig <aszlig@redmoonstudios.org> Fixes: #13665

commit8b97ca270e84c38bb0fb1da829da318ed7dbda8a authoraszlig <aszlig@redmoonstudios.org> dateSat 5 Mar 2016, 03:04 (11 years ago) parent54d342a
3 files changed+91−14
pkgs/applications/networking/browsers/chromium/source/default.nix+7−4 pkgs/applications/networking/browsers/chromium/source/nix_plugin_paths_50.patch+75 pkgs/applications/networking/browsers/chromium/source/sources.nix+9−10
pkgs/applications/networking/browsers/chromium/source/default.nix+7−4
@@ -41,10 +41,13 @@ in stdenv.mkDerivation {
4141 done
4242 '';
4343
44− patches =
45− singleton ./nix_plugin_paths_46.patch ++
46− singleton ./build_fixes_46.patch ++
47− singleton ./widevine.patch;
44+ patches = [
45+ ./build_fixes_46.patch
46+ ./widevine.patch
47+ (if versionOlder version "50.0.0.0"
48+ then ./nix_plugin_paths_46.patch
49+ else ./nix_plugin_paths_50.patch)
50+ ];
4851
4952 patchPhase = let
5053 diffmod = sym: "/^${sym} /{s/^${sym} //;${transform ""};s/^/${sym} /}";
pkgs/applications/networking/browsers/chromium/source/nix_plugin_paths_50.patchnew file+75
@@ -0,0 +1,75 @@
1+diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
2+index 74bf041..5f34198 100644
3+--- a/chrome/common/chrome_paths.cc
4++++ b/chrome/common/chrome_paths.cc
5+@@ -66,21 +66,14 @@ static base::LazyInstance<base::FilePath>
6+ g_invalid_specified_user_data_dir = LAZY_INSTANCE_INITIALIZER;
7+
8+ // Gets the path for internal plugins.
9+-bool GetInternalPluginsDirectory(base::FilePath* result) {
10+-#if defined(OS_MACOSX)
11+- // If called from Chrome, get internal plugins from a subdirectory of the
12+- // framework.
13+- if (base::mac::AmIBundled()) {
14+- *result = chrome::GetFrameworkBundlePath();
15+- DCHECK(!result->empty());
16+- *result = result->Append("Internet Plug-Ins");
17+- return true;
18+- }
19+- // In tests, just look in the module directory (below).
20+-#endif
21+-
22+- // The rest of the world expects plugins in the module directory.
23+- return PathService::Get(base::DIR_MODULE, result);
24++bool GetInternalPluginsDirectory(base::FilePath* result,
25++ const std::string& ident) {
26++ std::string full_env = std::string("NIX_CHROMIUM_PLUGIN_PATH_") + ident;
27++ const char* value = getenv(full_env.c_str());
28++ if (value == NULL)
29++ return PathService::Get(base::DIR_MODULE, result);
30++ else
31++ *result = base::FilePath(value);
32+ }
33+
34+ #if defined(OS_WIN)
35+@@ -253,11 +246,11 @@ bool PathProvider(int key, base::FilePath* result) {
36+ create_dir = true;
37+ break;
38+ case chrome::DIR_INTERNAL_PLUGINS:
39+- if (!GetInternalPluginsDirectory(&cur))
40++ if (!GetInternalPluginsDirectory(&cur, "ALL"))
41+ return false;
42+ break;
43+ case chrome::DIR_PEPPER_FLASH_PLUGIN:
44+- if (!GetInternalPluginsDirectory(&cur))
45++ if (!GetInternalPluginsDirectory(&cur, "PEPPERFLASH"))
46+ return false;
47+ cur = cur.Append(kPepperFlashBaseDirectory);
48+ break;
49+@@ -314,7 +307,7 @@ bool PathProvider(int key, base::FilePath* result) {
50+ // We currently need a path here to look up whether the plugin is disabled
51+ // and what its permissions are.
52+ case chrome::FILE_NACL_PLUGIN:
53+- if (!GetInternalPluginsDirectory(&cur))
54++ if (!GetInternalPluginsDirectory(&cur, "NACL"))
55+ return false;
56+ cur = cur.Append(kInternalNaClPluginFileName);
57+ break;
58+@@ -349,7 +342,7 @@ bool PathProvider(int key, base::FilePath* result) {
59+ cur = cur.DirName();
60+ }
61+ #else
62+- if (!GetInternalPluginsDirectory(&cur))
63++ if (!GetInternalPluginsDirectory(&cur, "PNACL"))
64+ return false;
65+ #endif
66+ cur = cur.Append(FILE_PATH_LITERAL("pnacl"));
67+@@ -366,7 +359,7 @@ bool PathProvider(int key, base::FilePath* result) {
68+ // In the component case, this is the source adapter. Otherwise, it is the
69+ // actual Pepper module that gets loaded.
70+ case chrome::FILE_WIDEVINE_CDM_ADAPTER:
71+- if (!GetInternalPluginsDirectory(&cur))
72++ if (!GetInternalPluginsDirectory(&cur, "WIDEVINE"))
73+ return false;
74+ cur = cur.AppendASCII(kWidevineCdmAdapterFileName);
75+ break;
pkgs/applications/networking/browsers/chromium/source/sources.nix+9−10
@@ -1,19 +1,18 @@
11# This file is autogenerated from update.sh in the parent directory.
22{
33 beta = {
4− sha256 = "07i4vqswkijnl7wi6r1a0n1jq54ackm01yf8h3hwcik8q10i1aq5";
5− sha256bin64 = "16pwimg672qaqb89zdvsr8dr7bz50mz7zf6cl0cf45kz7sn8wwlh";
6− version = "49.0.2623.63";
4+ sha256 = "1xc2npbc829nxria1j37kxyy95jkalkkphxgv24if0ibn62lrzd4";
5+ sha256bin64 = "1arm15g3vmm3zlvcql3qylw1fhrn5ddzl2v8mkpb3a251m425dsi";
6+ version = "49.0.2623.75";
77 };
88 dev = {
9− sha256 = "1xc66zsjd5snydf60di2k2vzwwcqs1p16yn4jbpj2khm9cmxmkmf";
10− sha256bin64 = "06v7r76pbc979f7ahmln0hmxzd8ipirh4128i0ygidj71xmg51mm";
11− version = "50.0.2657.0";
9+ sha256 = "04j0nyz20gi7vf1javbw06wrqpkfw6vg024i3wkgx42hzd6hjgw4";
10+ sha256bin64 = "12ff4q615rwakgpr9v84p55maasqb4vg61s89vgxrlsgqrmkahg4";
11+ version = "50.0.2661.11";
1212 };
1313 stable = {
14− sha256 = "03sdm09cnwq8a056rfljql7mz0s17fngfnm5q3p5xwakr2sbj7ka";
15− sha256bin32 = "157m88nafb8svpkv11rzpcfvak6486wx43rmbssg52x2k0vas0bl";
16− sha256bin64 = "036pcma8qczja803h9r1nlm0ypm4zblmy6q7pkwlgmn3r4r3n7i0";
17− version = "48.0.2564.116";
14+ sha256 = "1xc2npbc829nxria1j37kxyy95jkalkkphxgv24if0ibn62lrzd4";
15+ sha256bin64 = "01qi5jmlmdpy6icc4y51bn5a063mxrnkncg3pbmbl4r02vqca5jh";
16+ version = "49.0.2623.75";
1817 };
1918}