chromium: add unset-madv_free.patch
This commit is contained in:
parent
02615b7911
commit
5b24a5047b
2 changed files with 15 additions and 1 deletions
14
srcpkgs/chromium/patches/unset-madv_free.patch
Normal file
14
srcpkgs/chromium/patches/unset-madv_free.patch
Normal file
|
@ -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 <errno.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
+#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
|
|
@ -2,7 +2,7 @@
|
||||||
pkgname=chromium
|
pkgname=chromium
|
||||||
# See http://www.chromium.org/developers/calendar for the latest version
|
# See http://www.chromium.org/developers/calendar for the latest version
|
||||||
version=52.0.2743.116
|
version=52.0.2743.116
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Google's attempt at creating a safer, faster, and more stable browser"
|
short_desc="Google's attempt at creating a safer, faster, and more stable browser"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.chromium.org/"
|
homepage="http://www.chromium.org/"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue