From 5b24a5047b3e374bc0138ea3401f35069cb22cd5 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 29 Aug 2016 00:03:52 +0200 Subject: [PATCH] chromium: add unset-madv_free.patch --- srcpkgs/chromium/patches/unset-madv_free.patch | 14 ++++++++++++++ srcpkgs/chromium/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/chromium/patches/unset-madv_free.patch diff --git a/srcpkgs/chromium/patches/unset-madv_free.patch b/srcpkgs/chromium/patches/unset-madv_free.patch new file mode 100644 index 00000000000..f748179fc90 --- /dev/null +++ b/srcpkgs/chromium/patches/unset-madv_free.patch @@ -0,0 +1,14 @@ +--- third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp ++++ third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp +@@ -41,6 +41,11 @@ + #include + #include + ++#if OS(LINUX) && defined(MADV_FREE) ++// Added in Linux 4.5, but it breaks the sandbox. ++#undef MADV_FREE ++#endif ++ + #ifndef MADV_FREE + #define MADV_FREE MADV_DONTNEED + #endif diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index dab2f3ad520..106802297ca 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -2,7 +2,7 @@ pkgname=chromium # See http://www.chromium.org/developers/calendar for the latest version version=52.0.2743.116 -revision=1 +revision=2 short_desc="Google's attempt at creating a safer, faster, and more stable browser" maintainer="Juan RP " homepage="http://www.chromium.org/"