git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: Update dev channel to v52.0.2743.10

With this update we need to rebase the nix_plugin_paths patch, which was done by @srp and I took it from his comment at: https://github.com/NixOS/nixpkgs/pull/15762#issuecomment-222230677 Other than that, using libjpeg from nixpkgs fails to link: https://headcounter.org/hydra/build/1114273 Rather than just using versionAtLeast to check for >= version 52, we're matching on the explicit version number. That way we can make sure that we (try to) build with system libjpeg again so we can keep it out of the overall Chromium build time. Built and tested using the VM tests on my Hydra at: https://headcounter.org/hydra/eval/322006 Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit79d18eb6045b33e081fbce4b66374ea75dfeeb5f authoraszlig <aszlig@redmoonstudios.org> dateSat 28 May 2016, 19:08 (11 years ago) parentc7a3645
3 files changed+81−5
pkgs/applications/networking/browsers/chromium/common.nix+8−2 pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_52.patch+70 pkgs/applications/networking/browsers/chromium/upstream-info.nix+3−3
pkgs/applications/networking/browsers/chromium/common.nix+8−2
@@ -56,7 +56,8 @@ let
5656 use_system_flac = true;
5757 use_system_libevent = true;
5858 use_system_libexpat = true;
59− use_system_libjpeg = true;
59+ # XXX: System libjpeg fails to link for version 52.0.2743.10
60+ use_system_libjpeg = upstream-info.version != "52.0.2743.10";
6061 use_system_libpng = false;
6162 use_system_libwebp = true;
6263 use_system_libxml = true;
@@ -127,7 +128,9 @@ let
127128
128129 patches = [
129130 ./patches/widevine.patch
130− ./patches/nix_plugin_paths_50.patch
131+ (if versionOlder version "52.0.0.0"
132+ then ./patches/nix_plugin_paths_50.patch
133+ else ./patches/nix_plugin_paths_52.patch)
131134 ];
132135
133136 postPatch = ''
@@ -145,6 +148,9 @@ let
145148
146149 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
147150 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
148154 '';
149155
150156 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 @@
66 version = "51.0.2704.63";
77 };
88 dev = {
9− sha256 = "0czp4p434yqr5rv3w2vypkyis13x8lc4xph8yh84r9big1ga6fqs";
10− sha256bin64 = "0hahamx9k14czswqdh8iwh69lsml0acca5kxvp2kw471g3s55n78";
11− version = "52.0.2729.3";
9+ sha256 = "1bbwbn0svgr2pfkza8pdq61bjzlj50axdm5bqqxi51hab51fc9ww";
10+ sha256bin64 = "1s02q72b84g9p5i7y1hh1c67qjb92934dqqwd7w6j0jz8ix71nzc";
11+ version = "52.0.2743.10";
1212 };
1313 stable = {
1414 sha256 = "1sgfwh2b0aw6l5v4ggk7frcy306x3ygxk81p3h6zdy5s1rpf8hxj";