chromium: fix "Aw, snap!" after glibc 2.24 upgrade
See https://bugzilla.redhat.com/show_bug.cgi?id=1361157#c8
cc @domenkozar @aszlig
commitcd063d774e5f4981fa4949b1ce8510c641b491a9
authorobadz <obadz-git@obadz.com>
dateTue 23 Aug 2016, 11:56 (10 years ago)
parent08933f8
pkgs/applications/networking/browsers/chromium/common.nix+1
@@ -128,6 +128,7 @@ let
128128
129129 patches = [
130130 ./patches/widevine.patch
131+ ./patches/glibc-2.24.patch
131132 (if versionOlder version "52.0.0.0"
132133 then ./patches/nix_plugin_paths_50.patch
133134 else ./patches/nix_plugin_paths_52.patch)
pkgs/applications/networking/browsers/chromium/patches/glibc-2.24.patchnew file+14
@@ -0,0 +1,14 @@
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