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

Overview of the updated versions: stable: 49.0.2623.87 -> 49.0.2623.110 beta: 50.0.2661.26 -> 50.0.2661.49 dev: 50.0.2661.18 -> 51.0.2693.2 Most notably, this includes a series of urgent security fixes: * CVE-2016-1646: Out-of-bounds read in V8. Credit to Wen Xu from Tencent KeenLab. * CVE-2016-1647: Use-after-free in Navigation. Credit to anonymous. * CVE-2016-1648: Use-after-free in Extensions. Credit to anonymous. * CVE-2016-1649: Buffer overflow in libANGLE. Credit to lokihardt working with HP's Zero Day Initiative / Pwn2Own. * CVE-2016-1650: Denial of service in PageCaptureSaveAsMHTMLFunction The official release announcement with details about these fixes can be found here: http://googlechromereleases.blogspot.de/2016/03/stable-channel-update_24.html Beta and stable could be also affected, although I didn't do a detailed check whether that's the case. As this introduces Chromium 51 as the dev version, I had to make the following changes to make it build: * libexif got removed, so let's do that on our end as well. See https://codereview.chromium.org/1803883002 for details. * Chromium doesn't seem to compile with our version of libpng, so let's resort to the bundled libpng for now. * site_engagement_ui.cc uses isnan outside of std namespace, so we're fixing that in postPatch using sed. I have successfully built all versions on i686-linux and x86_64-linux and tested it using the VM tests. Test reports can be found at the following evaluation of my Hydra: https://headcounter.org/hydra/eval/314584 Thanks to @grahamc for reporting this. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Reported-by: Graham Christensen <graham@grahamc.com> Fixes: #14299

commitef753d210e877ef122bbd26001409a94abd959db authoraszlig <aszlig@redmoonstudios.org> dateWed 30 Mar 2016, 01:05 (11 years ago) parent63032da
2 files changed+25−17
pkgs/applications/networking/browsers/chromium/common.nix+16−8 pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
pkgs/applications/networking/browsers/chromium/common.nix+16−8
@@ -5,7 +5,7 @@
55, libevent, expat, libjpeg, snappy
66, libpng, libxml2, libxslt, libcap
77, xdg_utils, yasm, minizip, libwebp
8−, libusb1, libexif, pciutils, nss
8+, libusb1, pciutils, nss
99
1010, python, pythonPackages, perl, pkgconfig
1111, nspr, udev, kerberos
@@ -17,6 +17,7 @@
1717
1818# optional dependencies
1919, libgcrypt ? null # gnomeSupport || cupsSupport
20+, libexif ? null # only needed for Chromium before version 51
2021
2122# package customization
2223, enableSELinux ? false, libselinux ? null
@@ -55,9 +56,8 @@ let
5556 use_system_flac = true;
5657 use_system_libevent = true;
5758 use_system_libexpat = true;
58− use_system_libexif = true;
5959 use_system_libjpeg = true;
60− use_system_libpng = true;
60+ use_system_libpng = versionOlder upstream-info.version "51.0.0.0";
6161 use_system_libwebp = true;
6262 use_system_libxml = true;
6363 use_system_opus = true;
@@ -86,7 +86,7 @@ let
8686 libevent expat libjpeg snappy
8787 libpng libxml2 libxslt libcap
8888 xdg_utils yasm minizip libwebp
89− libusb1 libexif
89+ libusb1
9090 ];
9191
9292 # build paths and release info
@@ -123,7 +123,8 @@ let
123123 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
124124 ++ optional enableSELinux libselinux
125125 ++ optionals cupsSupport [ libgcrypt cups ]
126− ++ optional pulseSupport libpulseaudio;
126+ ++ optional pulseSupport libpulseaudio
127+ ++ optional (versionOlder version "51.0.0.0") libexif;
127128
128129 patches = [
129130 ./patches/build_fixes_46.patch
@@ -140,15 +141,20 @@ let
140141 -e "/python_arch/s/: *'[^']*'/: '""'/" \
141142 build/common.gypi chrome/chrome_tests.gypi
142143
143− sed -i -e '/module_path *=.*libexif.so/ {
144− s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")|
145− }' chrome/utility/media_galleries/image_metadata_extractor.cc
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+ ''}
146149
147150 sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${udev}/lib/\1!' \
148151 device/udev_linux/udev?_loader.cc
149152
150153 sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
151154 gpu/config/gpu_info_collector_linux.cc
155+ '' + optionalString (!versionOlder version "51.0.0.0") ''
156+ sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
157+ chrome/browser/ui/webui/engagement/site_engagement_ui.cc
152158 '';
153159
154160 gypFlags = mkGypFlags (gypFlagsUseSystemLibs // {
@@ -180,6 +186,8 @@ let
180186 google_default_client_id = "404761575300.apps.googleusercontent.com";
181187 google_default_client_secret = "9rIFQjfnkykEmqb6FfjJQD1D";
182188
189+ } // optionalAttrs (versionOlder version "51.0.0.0") {
190+ use_system_libexif = true;
183191 } // optionalAttrs proprietaryCodecs {
184192 # enable support for the H.264 codec
185193 proprietary_codecs = true;
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 = "1lgpjnjhy3idha5b6wp31kdk6knic96dmajyrgn1701q3mq81g1i";
5− sha256bin64 = "1yb3rk38zfgjzka0aim1xc4r0qaz2qkwaq06mjifpkszmfffhyd0";
6− version = "50.0.2661.26";
4+ sha256 = "1jwk0x5hjpah0bl4dpirxwyfxv0d0wnkvfgyja91kkbh8471gzmk";
5+ sha256bin64 = "10sl3ddd77i1gl3l4yvhkpavfq2bygv7gwql0jnhchmrvyax1cjh";
6+ version = "50.0.2661.49";
77 };
88 dev = {
9− sha256 = "0z9m1mv6pv43y3ccd0nzqg5f9q8qxc8mlmy9y3dc9kqpvmqggnvp";
10− sha256bin64 = "0khsxci970vclfg24b7m8w1jqfkv5rzswgwa62b4r7jzrglx1azj";
11− version = "50.0.2661.18";
9+ sha256 = "042h6klyijnhkb4m9lsnfi3qss6pbs4p4981rm4cbc86rsyppkhl";
10+ sha256bin64 = "1p6lhd3n9q93fkydxksgfv68vz26yj8i2zx1kqby2z9yc0pdcniq";
11+ version = "51.0.2693.2";
1212 };
1313 stable = {
14− sha256 = "0kbph3l964bh7cb9yf8nydjaxa20yf8ls5a2vzsj8phz7n20z3f9";
15− sha256bin64 = "1k6nhccdqzzzicwi07nldqfsdlic65i2xfyb7dbasbbg9zl3s9yw";
16− version = "49.0.2623.87";
14+ sha256 = "1lmv6nmbqhxmr4340s5i4ypgz2b7vkh0wy5x9v75b5bnscjhk121";
15+ sha256bin64 = "1djd2i9phym1d8afv4vfajb7l1bz0ny2wmihwi6jaz712vil4a13";
16+ version = "49.0.2623.110";
1717 };
1818}