git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15762 (Chromium update)

This is the original pull request plus some commits from me to bring all channels to the latest versions, because the fixed security vulnerabilites might not be fixed in the dev version we had before. I've tested the whole changeset on my Hydra at: https://headcounter.org/hydra/eval/322006 Thanks to @srp for the initial commit and thus implicitly also for the security notice. Cc: @abbradar

commitb5f95a5303a4bf20b513c2a4f636b82cb588239a authoraszlig <aszlig@redmoonstudios.org> dateSat 28 May 2016, 21:14 (11 years ago) parent7a023d579d18eb
4 files changed+31−57
pkgs/applications/networking/browsers/chromium/common.nix+11−18 pkgs/applications/networking/browsers/chromium/patches/build_fixes_46.patch−14 pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_46.patch → pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_52.patch+11−16 pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
pkgs/applications/networking/browsers/chromium/common.nix+11−18
@@ -56,8 +56,9 @@ let
5656 use_system_flac = true;
5757 use_system_libevent = true;
5858 use_system_libexpat = true;
59− use_system_libjpeg = true;
60− use_system_libpng = versionOlder upstream-info.version "51.0.0.0";
59+ # XXX: System libjpeg fails to link for version 52.0.2743.10
60+ use_system_libjpeg = upstream-info.version != "52.0.2743.10";
61+ use_system_libpng = false;
6162 use_system_libwebp = true;
6263 use_system_libxml = true;
6364 use_system_opus = true;
@@ -123,15 +124,13 @@ let
123124 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
124125 ++ optional enableSELinux libselinux
125126 ++ optionals cupsSupport [ libgcrypt cups ]
126− ++ optional pulseSupport libpulseaudio
127− ++ optional (versionOlder version "51.0.0.0") libexif;
127+ ++ optional pulseSupport libpulseaudio;
128128
129129 patches = [
130− ./patches/build_fixes_46.patch
131130 ./patches/widevine.patch
132− (if versionOlder version "50.0.0.0"
133− then ./patches/nix_plugin_paths_46.patch
134− else ./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)
135134 ];
136135
137136 postPatch = ''
@@ -141,20 +140,17 @@ let
141140 -e "/python_arch/s/: *'[^']*'/: '""'/" \
142141 build/common.gypi chrome/chrome_tests.gypi
143142
144− ${optionalString (versionOlder version "51.0.0.0") ''
145− sed -i -e '/module_path *=.*libexif.so/ {
146− s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")|
147− }' chrome/utility/media_galleries/image_metadata_extractor.cc
148− ''}
149−
150143 sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${libudev.out}/lib/\1!' \
151144 device/udev_linux/udev?_loader.cc
152145
153146 sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
154147 gpu/config/gpu_info_collector_linux.cc
155− '' + optionalString (!versionOlder version "51.0.0.0") ''
148+
156149 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
157150 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
158154 '';
159155
160156 gypFlags = mkGypFlags (gypFlagsUseSystemLibs // {
@@ -185,9 +181,6 @@ let
185181 google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
186182 google_default_client_id = "404761575300.apps.googleusercontent.com";
187183 google_default_client_secret = "9rIFQjfnkykEmqb6FfjJQD1D";
188−
189− } // optionalAttrs (versionOlder version "51.0.0.0") {
190− use_system_libexif = true;
191184 } // optionalAttrs proprietaryCodecs {
192185 # enable support for the H.264 codec
193186 proprietary_codecs = true;
pkgs/applications/networking/browsers/chromium/patches/build_fixes_46.patchdeleted−14
@@ -1,14 +0,0 @@
1−diff --git a/chrome/test/data/webui_test_resources.grd b/chrome/test/data/webui_test_resources.grd
2−index 6f8530d..f92a76a 100644
3−--- a/chrome/test/data/webui_test_resources.grd
4−+++ b/chrome/test/data/webui_test_resources.grd
5−@@ -6,9 +6,4 @@
6− </output>
7− <output filename="webui_test_resources.pak" type="data_package" />
8− </outputs>
9−- <release seq="1">
10−- <includes>
11−- <include name="IDR_WEBUI_TEST_I18N_PROCESS_CSS_TEST" file="webui/i18n_process_css_test.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
12−- </includes>
13−- </release>
14− </grit>
pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_46.patch → pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_52.patchrenamed+11−16
@@ -1,13 +1,13 @@
11diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
2−index 74bf041..5f34198 100644
2+index f4e119d..d9775bd 100644
33--- a/chrome/common/chrome_paths.cc
44+++ b/chrome/common/chrome_paths.cc
5−@@ -66,21 +66,14 @@ static base::LazyInstance<base::FilePath>
5+@@ -68,21 +68,14 @@ static base::LazyInstance<base::FilePath>
66 g_invalid_specified_user_data_dir = LAZY_INSTANCE_INITIALIZER;
77
88 // Gets the path for internal plugins.
99-bool GetInternalPluginsDirectory(base::FilePath* result) {
10−-#if defined(OS_MACOSX) && !defined(OS_IOS)
10+-#if defined(OS_MACOSX)
1111- // If called from Chrome, get internal plugins from a subdirectory of the
1212- // framework.
1313- if (base::mac::AmIBundled()) {
@@ -31,8 +31,8 @@ index 74bf041..5f34198 100644
3131+ *result = base::FilePath(value);
3232 }
3333
34− #if defined(OS_WIN)
35−@@ -253,11 +246,11 @@ bool PathProvider(int key, base::FilePath* result) {
34+ // Gets the path for bundled implementations of components. Note that these
35+@@ -272,7 +265,7 @@ bool PathProvider(int key, base::FilePath* result) {
3636 create_dir = true;
3737 break;
3838 case chrome::DIR_INTERNAL_PLUGINS:
@@ -40,13 +40,17 @@ index 74bf041..5f34198 100644
4040+ if (!GetInternalPluginsDirectory(&cur, "ALL"))
4141 return false;
4242 break;
43+ case chrome::DIR_COMPONENTS:
44+@@ -280,7 +273,7 @@ bool PathProvider(int key, base::FilePath* result) {
45+ return false;
46+ break;
4347 case chrome::DIR_PEPPER_FLASH_PLUGIN:
4448- if (!GetInternalPluginsDirectory(&cur))
4549+ if (!GetInternalPluginsDirectory(&cur, "PEPPERFLASH"))
4650 return false;
4751 cur = cur.Append(kPepperFlashBaseDirectory);
4852 break;
49−@@ -314,7 +307,7 @@ bool PathProvider(int key, base::FilePath* result) {
53+@@ -323,7 +316,7 @@ bool PathProvider(int key, base::FilePath* result) {
5054 // We currently need a path here to look up whether the plugin is disabled
5155 // and what its permissions are.
5256 case chrome::FILE_NACL_PLUGIN:
@@ -55,7 +59,7 @@ index 74bf041..5f34198 100644
5559 return false;
5660 cur = cur.Append(kInternalNaClPluginFileName);
5761 break;
58−@@ -349,7 +342,7 @@ bool PathProvider(int key, base::FilePath* result) {
62+@@ -358,7 +351,7 @@ bool PathProvider(int key, base::FilePath* result) {
5963 cur = cur.DirName();
6064 }
6165 #else
@@ -64,12 +68,3 @@ index 74bf041..5f34198 100644
6468 return false;
6569 #endif
6670 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/upstream-info.nix+9−9
@@ -1,18 +1,18 @@
11# This file is autogenerated from update.sh in the same directory.
22{
33 beta = {
4− sha256 = "0l1434wqhi6c24qyb5ysg1wnd0s9l9i1k6kh6wr3s4acrsbb7p12";
5− sha256bin64 = "1ssw92l8zwj8x0zs5h6vxl7d7gj0lqb0x71vsazgd4d0p23nglb1";
6− version = "51.0.2704.47";
4+ sha256 = "1sgfwh2b0aw6l5v4ggk7frcy306x3ygxk81p3h6zdy5s1rpf8hxj";
5+ sha256bin64 = "14qj8l5dapha87ndyzcs3spaxp3s9sapcjcplkisbivis09a29cb";
6+ 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 = {
14− sha256 = "1ijpbmn38znjjb3h8579x5gsclgjx122lvm0afv17gf2j3w5w4qj";
15− sha256bin64 = "17vqvxmy6llg7dpc3pxi0qhwpm9qc9rsq8lgknhwwygvkl8g14sb";
16− version = "50.0.2661.102";
14+ sha256 = "1sgfwh2b0aw6l5v4ggk7frcy306x3ygxk81p3h6zdy5s1rpf8hxj";
15+ sha256bin64 = "1kjnxxf2ak8v1akzxz46r7a7r6bhxjb2y9fhr1fqvks3m4jc5zqw";
16+ version = "51.0.2704.63";
1717 };
1818}