[arch-commits] Commit in chromium/trunk (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Aug 17 06:14:09 UTC 2016


    Date: Wednesday, August 17, 2016 @ 06:14:09
  Author: bpiotrowski
Revision: 273858

upgpkg: chromium 52.0.2743.116-1

new upstream release

Added:
  chromium/trunk/chromium-52.0.2743.116-unset-madv_free.patch
Modified:
  chromium/trunk/PKGBUILD

----------------------------------------------+
 PKGBUILD                                     |   16 +++++++++++-----
 chromium-52.0.2743.116-unset-madv_free.patch |   15 +++++++++++++++
 2 files changed, 26 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-17 06:09:21 UTC (rev 273857)
+++ PKGBUILD	2016-08-17 06:14:09 UTC (rev 273858)
@@ -5,8 +5,8 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=chromium
-pkgver=52.0.2743.85
-pkgrel=2
+pkgver=52.0.2743.116
+pkgrel=1
 _launcher_ver=3
 pkgdesc="The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser"
 arch=('i686' 'x86_64')
@@ -28,12 +28,14 @@
         chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
         chromium.desktop
         chromium-widevine.patch
-        PNGImageDecoder.patch)
-sha256sums=('b70e3e77d8d80fbe2303c889d557864f576709ebb543f402b77bad6d6c74edc3'
+        PNGImageDecoder.patch
+        chromium-52.0.2743.116-unset-madv_free.patch)
+sha256sums=('a194ae1edb041024b3d4b6ba438f32fefdb6f1ecb24a96c50248a486b237a101'
             '8b01fb4efe58146279858a754d90b49e5a38c9a0b36a1f84cbb7d12f92b84c28'
             '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9'
             'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808'
-            'd9fd982ba6d50edb7743db6122b975ad1d3da5a9ad907c8ab7cf574395b186cd')
+            'd9fd982ba6d50edb7743db6122b975ad1d3da5a9ad907c8ab7cf574395b186cd'
+            '3b3aa9e28f29e6f539ed1c7832e79463b13128863a02e9c6fecd16c30d61c227')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
 # Note: These are for Arch Linux use ONLY. For your own distribution, please
@@ -75,6 +77,10 @@
   ## https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q
   #find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete
 
+  # Disable MADV_FREE (if set by glibc)
+  # https://bugzilla.redhat.com/show_bug.cgi?id=1361157
+  patch -p1 -i "$srcdir"/chromium-52.0.2743.116-unset-madv_free.patch
+
   # Use Python 2
   find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} +
   # There are still a lot of relative calls which need a workaround

Added: chromium-52.0.2743.116-unset-madv_free.patch
===================================================================
--- chromium-52.0.2743.116-unset-madv_free.patch	                        (rev 0)
+++ chromium-52.0.2743.116-unset-madv_free.patch	2016-08-17 06:14:09 UTC (rev 273858)
@@ -0,0 +1,15 @@
+diff -up chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+--- chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free	2016-08-15 13:07:29.279655676 -0400
++++ chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp	2016-08-15 13:08:38.447317416 -0400
+@@ -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