chromium: 59.0.3071.115 -> 60.0.3112.78

get rid of outdated version branches and patches
take a patch from gentoo, to fix gn bootstrapping

authored by Herwig Hochleitner and committed by Robin Gloster 8dc869e3 18112eea

+27 -92
+5 -6
pkgs/applications/networking/browsers/chromium/common.nix
··· 104 104 nspr nss systemd 105 105 utillinux alsaLib 106 106 bison gperf kerberos 107 - glib gtk2 dbus_glib 107 + glib gtk2 gtk3 dbus_glib 108 108 libXScrnSaver libXcursor libXtst mesa 109 109 pciutils protobuf speechd libXdamage 110 110 ] ++ optional gnomeKeyringSupport libgnome_keyring3 111 111 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ] 112 112 ++ optionals cupsSupport [ libgcrypt cups ] 113 - ++ optional pulseSupport libpulseaudio 114 - ++ optional (versionAtLeast version "56.0.0.0") gtk3; 113 + ++ optional pulseSupport libpulseaudio; 115 114 116 115 patches = [ 117 116 ./patches/nix_plugin_paths_52.patch 117 + ./patches/chromium-gn-bootstrap-r8.patch 118 118 # To enable ChromeCast, go to chrome://flags and set "Load Media Router Component Extension" to Enabled 119 119 # Fixes Chromecast: https://bugs.chromium.org/p/chromium/issues/detail?id=734325 120 120 ./patches/fix_network_api_crash.patch 121 - ./patches/chromium-59.0.3071.115-system_ffmpeg-1.patch 122 - ] ++ optional (versionOlder version "57.0") ./patches/glibc-2.24.patch 123 - ++ optional enableWideVine ./patches/widevine.patch; 121 + 122 + ] ++ optional enableWideVine ./patches/widevine.patch; 124 123 125 124 postPatch = '' 126 125 # We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
-63
pkgs/applications/networking/browsers/chromium/patches/chromium-59.0.3071.115-system_ffmpeg-1.patch
··· 1 - Submitted By: DJ Lucas <dj_AT_linuxfromscratch_DOT_org> 2 - Date: 2017-06-25 3 - Initial Package Version: 57.0.2987.110 4 - Upstream Status: Not submitted 5 - Origin: Gentoo: https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/chromium-system-ffmpeg-r4.patch 6 - Description: Allows building with system provided ffmpeg. Rediffed 7 - for chromium-59.0.3071.109. 8 - 9 - diff -Naurp chromium-59.0.3071.109-orig/media/ffmpeg/ffmpeg_common.h chromium-59.0.3071.109/media/ffmpeg/ffmpeg_common.h 10 - --- chromium-59.0.3071.109-orig/media/ffmpeg/ffmpeg_common.h 2017-06-20 17:03:19.000000000 -0500 11 - +++ chromium-59.0.3071.109/media/ffmpeg/ffmpeg_common.h 2017-06-23 00:21:10.551912699 -0500 12 - @@ -23,10 +23,6 @@ 13 - 14 - // Include FFmpeg header files. 15 - extern "C" { 16 - -// Disable deprecated features which result in spammy compile warnings. This 17 - -// list of defines must mirror those in the 'defines' section of FFmpeg's 18 - -// BUILD.gn file or the headers below will generate different structures! 19 - -#define FF_API_CONVERGENCE_DURATION 0 20 - // Upstream libavcodec/utils.c still uses the deprecated 21 - // av_dup_packet(), causing deprecation warnings. 22 - // The normal fix for such things is to disable the feature as below, 23 - @@ -40,7 +36,6 @@ extern "C" { 24 - MSVC_PUSH_DISABLE_WARNING(4244); 25 - #include <libavcodec/avcodec.h> 26 - #include <libavformat/avformat.h> 27 - -#include <libavformat/internal.h> 28 - #include <libavformat/avio.h> 29 - #include <libavutil/avutil.h> 30 - #include <libavutil/imgutils.h> 31 - diff -Naurp chromium-59.0.3071.109-orig/media/filters/ffmpeg_demuxer.cc chromium-59.0.3071.109/media/filters/ffmpeg_demuxer.cc 32 - --- chromium-59.0.3071.109-orig/media/filters/ffmpeg_demuxer.cc 2017-06-20 17:03:19.000000000 -0500 33 - +++ chromium-59.0.3071.109/media/filters/ffmpeg_demuxer.cc 2017-06-23 00:22:56.289311692 -0500 34 - @@ -1223,29 +1223,6 @@ void FFmpegDemuxer::OnFindStreamInfoDone 35 - // If no estimate is found, the stream entry will be kInfiniteDuration. 36 - std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams, 37 - kInfiniteDuration); 38 - - const AVFormatInternal* internal = format_context->internal; 39 - - if (internal && internal->packet_buffer && 40 - - format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) { 41 - - struct AVPacketList* packet_buffer = internal->packet_buffer; 42 - - while (packet_buffer != internal->packet_buffer_end) { 43 - - DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index), 44 - - start_time_estimates.size()); 45 - - const AVStream* stream = 46 - - format_context->streams[packet_buffer->pkt.stream_index]; 47 - - if (packet_buffer->pkt.pts != static_cast<int64_t>(AV_NOPTS_VALUE)) { 48 - - const base::TimeDelta packet_pts = 49 - - ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts); 50 - - // We ignore kNoTimestamp here since -int64_t::min() is possible; see 51 - - // https://crbug.com/700501. Technically this is a valid value, but in 52 - - // practice shouldn't occur, so just ignore it when estimating. 53 - - if (packet_pts != kNoTimestamp && packet_pts != kInfiniteDuration && 54 - - packet_pts < start_time_estimates[stream->index]) { 55 - - start_time_estimates[stream->index] = packet_pts; 56 - - } 57 - - } 58 - - packet_buffer = packet_buffer->next; 59 - - } 60 - - } 61 - 62 - std::unique_ptr<MediaTracks> media_tracks(new MediaTracks()); 63 -
+13
pkgs/applications/networking/browsers/chromium/patches/chromium-gn-bootstrap-r8.patch
··· 1 + Index: tools/gn/bootstrap/bootstrap.py 2 + diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py 3 + index 6f2f5b1264519ea38cc36fb0b7e2cc24c378ca7a..0b03d2626b358fb90ab39d737679ee47bd60303b 100755 4 + --- a/tools/gn/bootstrap/bootstrap.py 5 + +++ b/tools/gn/bootstrap/bootstrap.py 6 + @@ -487,6 +487,7 @@ def write_gn_ninja(path, root_gen_dir, options): 7 + 'base/sys_info.cc', 8 + 'base/task_runner.cc', 9 + 'base/task_scheduler/delayed_task_manager.cc', 10 + + 'base/task_scheduler/environment_config.cc', 11 + 'base/task_scheduler/post_task.cc', 12 + 'base/task_scheduler/priority_queue.cc', 13 + 'base/task_scheduler/scheduler_lock_impl.cc',
-14
pkgs/applications/networking/browsers/chromium/patches/glibc-2.24.patch
··· 1 - --- old/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-03 21:02:37.000000000 +0200 2 - +++ new/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-14 10:59:51.395354850 +0200 3 - @@ -41,6 +41,11 @@ 4 - #include <errno.h> 5 - #include <sys/mman.h> 6 - 7 - +#if OS(LINUX) && defined(MADV_FREE) 8 - +// Added in Linux 4.5, but we don't want to depend on 4.5 at runtime 9 - +#undef MADV_FREE 10 - +#endif 11 - + 12 - #ifndef MADV_FREE 13 - #define MADV_FREE MADV_DONTNEED 14 - #endif
+9 -9
pkgs/applications/networking/browsers/chromium/upstream-info.nix
··· 1 1 # This file is autogenerated from update.sh in the same directory. 2 2 { 3 3 beta = { 4 - sha256 = "086j8s8wjwk26gfb7hdqn1lsmwgr9mmw93yfi6s4wia9ra0ccwj2"; 5 - sha256bin64 = "0z1dshxzyn5zhr4xg5mvrq70jxsfkwv50achq802322y4jz52f7n"; 6 - version = "60.0.3112.66"; 4 + sha256 = "1sh3rq36sh4g7blajvqfvs06fs5sbrbdp50qq0cvcj4k3fmb4bd8"; 5 + sha256bin64 = "1w67y4z57qm5fwniayncly7a4mjmwqir7gfd54ny8lwlf247d43m"; 6 + version = "60.0.3112.78"; 7 7 }; 8 8 dev = { 9 - sha256 = "1hbf7hv4934686dp0dbqy06vbwb2kq4wz5hjfdxrgafrzqac2j7g"; 10 - sha256bin64 = "1gg1a3k80qncr7dpw9gycndv52396cqyq9zfmzf6c4njpn2khjfv"; 11 - version = "61.0.3153.4"; 9 + sha256 = "0b8bzxnnzfl17vw0gwds89zjc4z4zi6fdz8f97w3x8a5ad0c2h5i"; 10 + sha256bin64 = "1n1q6g7avw4yrzdhpzq0pfd12k1fb18hc01jqnq2ak0aisdaga72"; 11 + version = "61.0.3163.13"; 12 12 }; 13 13 stable = { 14 - sha256 = "0w1i4q7w5lcajc18jrchrhhm00x0jzm846l5x7a5rcp3baawkjrp"; 15 - sha256bin64 = "1naq20508qjm9hlwlpj686a0lawca58rnr35ws2gh2gsyxrxnmx1"; 16 - version = "59.0.3071.115"; 14 + sha256 = "1sh3rq36sh4g7blajvqfvs06fs5sbrbdp50qq0cvcj4k3fmb4bd8"; 15 + sha256bin64 = "0wbqbbq9zxizfbjxj241nhk1qgjq91db0lzzbkm5hjvjhx6war4s"; 16 + version = "60.0.3112.78"; 17 17 }; 18 18 }