git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: Update dev channel to v52.0.2743.10
79d18ebaszlig
pkgs/applications/networking/browsers/chromium/common.nix+8−2
@@ -56,7 +56,8 @@ let
56 use_system_flac = true;
56 use_system_flac = true;
57 use_system_libevent = true;
57 use_system_libevent = true;
58 use_system_libexpat = true;
58 use_system_libexpat = true;
59+ # XXX: System libjpeg fails to link for version 52.0.2743.10
59− use_system_libjpeg = true;
60+ use_system_libjpeg = upstream-info.version != "52.0.2743.10";
60 use_system_libpng = false;
61 use_system_libpng = false;
61 use_system_libwebp = true;
62 use_system_libwebp = true;
62 use_system_libxml = true;
63 use_system_libxml = true;
@@ -127,7 +128,9 @@ let
127
128
128 patches = [
129 patches = [
129 ./patches/widevine.patch
130 ./patches/widevine.patch
131+ (if versionOlder version "52.0.0.0"
130− ./patches/nix_plugin_paths_50.patch
132+ then ./patches/nix_plugin_paths_50.patch
133+ else ./patches/nix_plugin_paths_52.patch)
131 ];
134 ];
132
135
133 postPatch = ''
136 postPatch = ''
@@ -145,6 +148,9 @@ let
145
148
146 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
149 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
147 chrome/browser/ui/webui/engagement/site_engagement_ui.cc
150 chrome/browser/ui/webui/engagement/site_engagement_ui.cc
151+ '' + optionalString (versionAtLeast version "52.0.0.0") ''
152+ sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
153+ third_party/pdfium/xfa/fxbarcode/utils.h
148 '';
154 '';
149
155
150 gypFlags = mkGypFlags (gypFlagsUseSystemLibs // {
156 gypFlags = mkGypFlags (gypFlagsUseSystemLibs // {
pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_52.patchnew file+70
@@ -0,0 +1,70 @@
1+diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
2+index f4e119d..d9775bd 100644
3+--- a/chrome/common/chrome_paths.cc
4++++ b/chrome/common/chrome_paths.cc
5+@@ -68,21 +68,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+ // Gets the path for bundled implementations of components. Note that these
35+@@ -272,7 +265,7 @@ 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_COMPONENTS:
44+@@ -280,7 +273,7 @@ bool PathProvider(int key, base::FilePath* result) {
45+ return false;
46+ break;
47+ case chrome::DIR_PEPPER_FLASH_PLUGIN:
48+- if (!GetInternalPluginsDirectory(&cur))
49++ if (!GetInternalPluginsDirectory(&cur, "PEPPERFLASH"))
50+ return false;
51+ cur = cur.Append(kPepperFlashBaseDirectory);
52+ break;
53+@@ -323,7 +316,7 @@ bool PathProvider(int key, base::FilePath* result) {
54+ // We currently need a path here to look up whether the plugin is disabled
55+ // and what its permissions are.
56+ case chrome::FILE_NACL_PLUGIN:
57+- if (!GetInternalPluginsDirectory(&cur))
58++ if (!GetInternalPluginsDirectory(&cur, "NACL"))
59+ return false;
60+ cur = cur.Append(kInternalNaClPluginFileName);
61+ break;
62+@@ -358,7 +351,7 @@ bool PathProvider(int key, base::FilePath* result) {
63+ cur = cur.DirName();
64+ }
65+ #else
66+- if (!GetInternalPluginsDirectory(&cur))
67++ if (!GetInternalPluginsDirectory(&cur, "PNACL"))
68+ return false;
69+ #endif
70+ cur = cur.Append(FILE_PATH_LITERAL("pnacl"));
pkgs/applications/networking/browsers/chromium/upstream-info.nix+3−3
@@ -6,9 +6,9 @@
6 version = "51.0.2704.63";
6 version = "51.0.2704.63";
7 };
7 };
8 dev = {
8 dev = {
9− sha256 = "0czp4p434yqr5rv3w2vypkyis13x8lc4xph8yh84r9big1ga6fqs";
9+ sha256 = "1bbwbn0svgr2pfkza8pdq61bjzlj50axdm5bqqxi51hab51fc9ww";
10− sha256bin64 = "0hahamx9k14czswqdh8iwh69lsml0acca5kxvp2kw471g3s55n78";
10+ sha256bin64 = "1s02q72b84g9p5i7y1hh1c67qjb92934dqqwd7w6j0jz8ix71nzc";
11− version = "52.0.2729.3";
11+ version = "52.0.2743.10";
12 };
12 };
13 stable = {
13 stable = {
14 sha256 = "1sgfwh2b0aw6l5v4ggk7frcy306x3ygxk81p3h6zdy5s1rpf8hxj";
14 sha256 = "1sgfwh2b0aw6l5v4ggk7frcy306x3ygxk81p3h6zdy5s1rpf8hxj";