[arch-commits] Commit in electron/trunk (PKGBUILD chromium-unset-madv_free.patch)
Nicola Squartini
tensor5 at archlinux.org
Thu Aug 18 12:46:08 UTC 2016
Date: Thursday, August 18, 2016 @ 12:46:07
Author: tensor5
Revision: 186943
upgpkg: electron 1.3.3-2
Fixes crash with kernel versions < 4.5.
Added:
electron/trunk/chromium-unset-madv_free.patch
Modified:
electron/trunk/PKGBUILD
--------------------------------+
PKGBUILD | 5 ++++-
chromium-unset-madv_free.patch | 14 ++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-18 09:50:02 UTC (rev 186942)
+++ PKGBUILD 2016-08-18 12:46:07 UTC (rev 186943)
@@ -4,7 +4,7 @@
_chromiumver=52.0.2743.82
pkgname=electron
pkgver=1.3.3
-pkgrel=1
+pkgrel=2
pkgdesc='Build cross platform desktop apps with web technologies'
arch=('i686' 'x86_64')
url='http://electron.atom.io/'
@@ -43,6 +43,7 @@
'libchromiumcontent-static-library-only.patch'
'libchromiumcontent-use-system-ffmpeg.patch'
'libchromiumcontent-use-system-tools.patch'
+ 'chromium-unset-madv_free.patch'
'chromium-use-system-ffmpeg.patch'
'chromium-use-system-libpng.patch'
'chromium-use-system-minizip.patch'
@@ -77,6 +78,7 @@
'7bc4cc154643712556f2cfbcba72bc08d032a52a39bccc61c91a7b230fe9a80e'
'1c4c4ad492cd5bb437d4b0ee1001e3e01e952eee23b56e697e44294c715c97ba'
'2fb2157c854dab173a2ef9b4aa0ab5bb3c0dd077447c4719c7554eee6e0546b6'
+ 'ccba3002243fb1f9a67c8a60af310706caa591d12aef45f1d0f4bda47626f3ab'
'f890e35922a5e049491259354c221c8a51baff84092ef566ea590495e615445f'
'caaa63eabcfdced965638b3353448fabda9bc4e6d898d8ec278ecac31502ded1'
'ae8db257191600e5d1e3d3142c8b430652047c2b3575d82696573f1649154c62'
@@ -171,6 +173,7 @@
echo "${_chromiumver}" > src/.version
fi
cd src
+ patch -Np1 -i "${srcdir}"/chromium-unset-madv_free.patch # fixes crash with kernels < 4.5
patch -Np1 -i "${srcdir}"/chromium-use-system-ffmpeg.patch
patch -Np1 -i "${srcdir}"/chromium-use-system-libpng.patch
patch -Np1 -i "${srcdir}"/chromium-use-system-minizip.patch
Added: chromium-unset-madv_free.patch
===================================================================
--- chromium-unset-madv_free.patch (rev 0)
+++ chromium-unset-madv_free.patch 2016-08-18 12:46:07 UTC (rev 186943)
@@ -0,0 +1,14 @@
+--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
++++ b/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
More information about the arch-commits
mailing list