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

Evangelos Foutras foutrelis at archlinux.org
Wed Apr 18 12:40:50 UTC 2018


    Date: Wednesday, April 18, 2018 @ 12:40:50
  Author: foutrelis
Revision: 322183

upgpkg: chromium 66.0.3359.117-1

New upstream release.

Added:
  chromium/trunk/create-blink-tools-tgz.sh
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch
  chromium/trunk/chromium-clang-r2.patch
  chromium/trunk/chromium-math.h-r0.patch
  chromium/trunk/chromium-stdint.patch
  chromium/trunk/send-GSB-before-switching-to-mainthread-scrolling-in.patch

---------------------------------------------------------------+
 PKGBUILD                                                      |   39 +---
 allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch |   88 ----------
 chromium-clang-r2.patch                                       |   21 --
 chromium-math.h-r0.patch                                      |   29 ---
 chromium-stdint.patch                                         |   21 --
 create-blink-tools-tgz.sh                                     |    9 +
 send-GSB-before-switching-to-mainthread-scrolling-in.patch    |   53 ------
 7 files changed, 21 insertions(+), 239 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-18 11:43:09 UTC (rev 322182)
+++ PKGBUILD	2018-04-18 12:40:50 UTC (rev 322183)
@@ -5,8 +5,8 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=chromium
-pkgver=65.0.3325.181
-pkgrel=7
+pkgver=66.0.3359.117
+pkgrel=1
 _launcher_ver=6
 pkgdesc="A web browser built for speed, simplicity, and security"
 arch=('x86_64')
@@ -24,27 +24,20 @@
 install=chromium.install
 source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
         chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
-        chromium-$pkgver.txt::https://chromium.googlesource.com/chromium/src.git/+/$pkgver?format=TEXT
+        chromium-$pkgver.txt::https://chromium.googlesource.com/chromium/src/+/$pkgver?format=TEXT
+        https://pkgbuild.com/~foutrelis/sources/$pkgname/blink-tools-$pkgver.tar.gz
         fix-crash-in-is_cfi-true-builds-with-unbundled-ICU.patch
-        allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch
         fix-frame-buttons-rendering-too-large-when-using-OSX.patch
-        send-GSB-before-switching-to-mainthread-scrolling-in.patch
         chromium-skia-harmony.patch
-        chromium-clang-r2.patch
-        chromium-math.h-r0.patch
-        chromium-stdint.patch
         chromium-widevine.patch)
-sha256sums=('93666448c6b96ec83e6a35a64cff40db4eb92a154fe1db4e7dab4761d0e38687'
+noextract=(blink-tools-$pkgver.tar.gz)
+sha256sums=('77c5a334644fdc303697b3864c9a6b709cee23ee384f4134308e820af4568ed6'
             '04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
-            '2771c049b66c9aba3b945fe065f2610f164d55506eb5d71751a26aaf8b40d4ee'
+            'bf9600489198c5a873ef7b12e8ba42e04c667a59b898592ad1b416f66df13d7e'
+            '922db9d6a69a22003caa72c507e1ccbf0c4ee2c254f00e243c97ca572bf1ec56'
             'e3fb73b43bb8c69ff517e66b2cac73d6e759fd240003eb35598df9af442422fe'
-            '4327289866d0b3006de62799ec06b07198a738e50e0a5c2e41ff62dbe00b4a2c'
             'bd5e0e61df3f89172590801aea7c8ac75162c10c7fe83e262e96a14388d1633a'
-            'b20bb43c89dd1fb5fc787e52b7ef6f4f20714f7d74e33372c0979fe398b5b436'
             'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3'
-            '4495e8b29dae242c79ffe4beefc5171eb3c7aacb7e9aebfd2d4d69b9d8c958d3'
-            'fe0ab86aa5b0072db730eccda3e1582ebed4af25815bfd49fe0da24cf63ca902'
-            'c00d2506f1078b38a8ebec474a7318e76a61db1298afb40088a34210f137210f'
             'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808')
 
 # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
@@ -59,7 +52,7 @@
   [libdrm]=
   [libjpeg]=libjpeg
   #[libpng]=libpng            # https://crbug.com/752403#c10
-  [libvpx]=libvpx
+  #[libvpx]=libvpx
   [libwebp]=libwebp
   #[libxml]=libxml2           # https://crbug.com/736026
   [libxslt]=libxslt
@@ -85,6 +78,9 @@
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
+  # https://crbug.com/832283
+  tar xfC ../blink-tools-$pkgver.tar.gz third_party/blink/tools/
+
   # https://crbug.com/710701
   local _chrome_build_hash=$(base64 -d ../chromium-$pkgver.txt |
     grep -Po '^parent \K[0-9a-f]{40}$')
@@ -111,23 +107,12 @@
   # https://crbug.com/822820
   patch -Np1 -i ../fix-crash-in-is_cfi-true-builds-with-unbundled-ICU.patch
 
-  # https://crbug.com/817400
-  patch -Np1 -i ../allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch
-
   # https://crbug.com/821881
   patch -Np1 -i ../fix-frame-buttons-rendering-too-large-when-using-OSX.patch
 
-  # https://crbug.com/797708
-  patch -Np1 -i ../send-GSB-before-switching-to-mainthread-scrolling-in.patch
-
   # https://crbug.com/skia/6663#c10
   patch -Np4 -i ../chromium-skia-harmony.patch
 
-  # Fixes from Gentoo
-  patch -Np1 -i ../chromium-clang-r2.patch
-  patch -Np1 -i ../chromium-math.h-r0.patch
-  patch -Np1 -i ../chromium-stdint.patch
-
   # Force script incompatible with Python 3 to use /usr/bin/python2
   sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
 

Deleted: allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch
===================================================================
--- allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch	2018-04-18 11:43:09 UTC (rev 322182)
+++ allow-stat-in-Linux-for-GPU-process-for-a-list-of-files.patch	2018-04-18 12:40:50 UTC (rev 322183)
@@ -1,88 +0,0 @@
-From 6b1b6d3a8555075e23cca89335e855d55f35fba9 Mon Sep 17 00:00:00 2001
-From: Zhenyao Mo <zmo at chromium.org>
-Date: Thu, 29 Mar 2018 23:48:19 +0000
-Subject: [PATCH] Allow `stat` in Linux for GPU process for a list of files.
-
-This is to unblock certain NVidia driver's glReadPixels calls in the sandboxed
-GPU process.
-
-Note that the needed file /dev/nvidiactl is already in the list for read/write.
-
-BUG=817400
-TEST=manual
-R=tsepez at chromium.org
-
-Change-Id: I9074a8335a9c4df1487f5a288d5e284bbedf67c3
-Reviewed-on: https://chromium-review.googlesource.com/965462
-Reviewed-by: Zhenyao Mo <zmo at chromium.org>
-Reviewed-by: Tom Sepez <tsepez at chromium.org>
-Reviewed-by: Robert Sesek <rsesek at chromium.org>
-Reviewed-by: Kenneth Russell <kbr at chromium.org>
-Commit-Queue: Zhenyao Mo <zmo at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#547027}
----
- content/gpu/gpu_sandbox_hook_linux.cc                     |  5 ++++-
- .../service_manager/sandbox/linux/bpf_gpu_policy_linux.cc | 15 ++++++++++++++-
- 2 files changed, 18 insertions(+), 2 deletions(-)
-
-diff --git a/content/gpu/gpu_sandbox_hook_linux.cc b/content/gpu/gpu_sandbox_hook_linux.cc
-index ddd7b99485fe..cd914e2f9926 100644
---- a/content/gpu/gpu_sandbox_hook_linux.cc
-+++ b/content/gpu/gpu_sandbox_hook_linux.cc
-@@ -153,6 +153,7 @@ void AddStandardGpuWhiteList(std::vector<BrokerFilePermission>* permissions) {
-   static const char kDriCardBasePath[] = "/dev/dri/card";
-   static const char kNvidiaCtlPath[] = "/dev/nvidiactl";
-   static const char kNvidiaDeviceBasePath[] = "/dev/nvidia";
-+  static const char kNvidiaDeviceModeSetPath[] = "/dev/nvidia-modeset";
-   static const char kNvidiaParamsPath[] = "/proc/driver/nvidia/params";
-   static const char kDevShm[] = "/dev/shm/";
- 
-@@ -172,6 +173,8 @@ void AddStandardGpuWhiteList(std::vector<BrokerFilePermission>* permissions) {
-     permissions->push_back(BrokerFilePermission::ReadWrite(
-         base::StringPrintf("%s%d", kNvidiaDeviceBasePath, i)));
-   }
-+  permissions->push_back(
-+      BrokerFilePermission::ReadWrite(kNvidiaDeviceModeSetPath));
-   permissions->push_back(BrokerFilePermission::ReadOnly(kNvidiaParamsPath));
- }
- 
-@@ -262,9 +265,9 @@ sandbox::syscall_broker::BrokerCommandSet CommandSetForGPU(
-   sandbox::syscall_broker::BrokerCommandSet command_set;
-   command_set.set(sandbox::syscall_broker::COMMAND_ACCESS);
-   command_set.set(sandbox::syscall_broker::COMMAND_OPEN);
-+  command_set.set(sandbox::syscall_broker::COMMAND_STAT);
-   if (IsChromeOS() && options.use_amd_specific_policies) {
-     command_set.set(sandbox::syscall_broker::COMMAND_READLINK);
--    command_set.set(sandbox::syscall_broker::COMMAND_STAT);
-   }
-   return command_set;
- }
-diff --git a/services/service_manager/sandbox/linux/bpf_gpu_policy_linux.cc b/services/service_manager/sandbox/linux/bpf_gpu_policy_linux.cc
-index bc16952c0898..d683aacc76f4 100644
---- a/services/service_manager/sandbox/linux/bpf_gpu_policy_linux.cc
-+++ b/services/service_manager/sandbox/linux/bpf_gpu_policy_linux.cc
-@@ -61,7 +61,20 @@ ResultExpr GpuProcessPolicy::EvaluateSyscall(int sysno) const {
-     case __NR_open:
- #endif  // !defined(__aarch64__)
-     case __NR_faccessat:
--    case __NR_openat: {
-+    case __NR_openat:
-+#if defined(__NR_stat)
-+    case __NR_stat:
-+#endif
-+#if defined(__NR_stat64)
-+    case __NR_stat64:
-+#endif
-+#if defined(__NR_fstatat)
-+    case __NR_fstatat:
-+#endif
-+#if defined(__NR_newfstatat)
-+    case __NR_newfstatat:
-+#endif
-+    {
-       auto* broker_process = SandboxLinux::GetInstance()->broker_process();
-       DCHECK(broker_process);
-       return Trap(BrokerProcess::SIGSYS_Handler, broker_process);
--- 
-2.16.2
-

Deleted: chromium-clang-r2.patch
===================================================================
--- chromium-clang-r2.patch	2018-04-18 11:43:09 UTC (rev 322182)
+++ chromium-clang-r2.patch	2018-04-18 12:40:50 UTC (rev 322183)
@@ -1,21 +0,0 @@
---- a/build/config/compiler/BUILD.gn
-+++ b/build/config/compiler/BUILD.gn
-@@ -422,18 +422,6 @@
-     cflags += [ "-fcolor-diagnostics" ]
-   }
- 
--  # TODO(hans): Remove this once Clang generates better optimized debug info by
--  # default. https://crbug.com/765793
--  if (is_clang && !is_nacl && current_toolchain == host_toolchain &&
--      target_os != "chromeos") {
--    cflags += [
--      "-Xclang",
--      "-mllvm",
--      "-Xclang",
--      "-instcombine-lower-dbg-declare=0",
--    ]
--  }
--
-   # Print absolute paths in diagnostics. There is no precedent for doing this
-   # on Linux/Mac (GCC doesn't support it), but MSVC does this with /FC and
-   # Windows developers rely on it (crbug.com/636109) so only do this on Windows.

Deleted: chromium-math.h-r0.patch
===================================================================
--- chromium-math.h-r0.patch	2018-04-18 11:43:09 UTC (rev 322182)
+++ chromium-math.h-r0.patch	2018-04-18 12:40:50 UTC (rev 322183)
@@ -1,29 +0,0 @@
-From 9f63f94a11abc34d40ede8b8712fa15b5844a8c0 Mon Sep 17 00:00:00 2001
-From: Tom Anderson <thomasanderson at chromium.org>
-Date: Sat, 27 Jan 2018 20:03:37 +0000
-Subject: [PATCH] Fix build with glibc 2.27
-
-BUG=806340
-TBR=hamelphi at chromium.org
-
-Change-Id: Ib4e5091212d874d9ad88f3e9a1fdfee3ed7e0d5e
-Reviewed-on: https://chromium-review.googlesource.com/890059
-Reviewed-by: Thomas Anderson <thomasanderson at chromium.org>
-Reviewed-by: Philippe Hamel <hamelphi at chromium.org>
-Commit-Queue: Thomas Anderson <thomasanderson at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#532249}
----
-
-diff --git a/components/assist_ranker/ranker_example_util.cc b/components/assist_ranker/ranker_example_util.cc
-index 54d4dbd..ceedd8f 100644
---- a/components/assist_ranker/ranker_example_util.cc
-+++ b/components/assist_ranker/ranker_example_util.cc
-@@ -2,6 +2,8 @@
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- 
-+#include <math.h>
-+
- #include "components/assist_ranker/ranker_example_util.h"
- #include "base/bit_cast.h"
- #include "base/format_macros.h"

Deleted: chromium-stdint.patch
===================================================================
--- chromium-stdint.patch	2018-04-18 11:43:09 UTC (rev 322182)
+++ chromium-stdint.patch	2018-04-18 12:40:50 UTC (rev 322183)
@@ -1,21 +0,0 @@
-From 0235c2b657d936f3cdb09053776e5929fc84704b Mon Sep 17 00:00:00 2001
-From: Tomas Popela <tomas.popela at gmail.com>
-Date: Wed, 31 Jan 2018 18:57:07 +0000
-Subject: [PATCH] Add missing stdint include
-
-diff --git a/chrome/browser/vr/sample_queue.cc b/chrome/browser/vr/sample_queue.cc
-index c2ca777ce90c..53cb3aab1576 100644
---- a/chrome/browser/vr/sample_queue.cc
-+++ b/chrome/browser/vr/sample_queue.cc
-@@ -2,6 +2,8 @@
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- 
-+#include <stdint.h>
-+
- #include "chrome/browser/vr/sample_queue.h"
- 
- namespace vr {
--- 
-2.16.2
-

Added: create-blink-tools-tgz.sh
===================================================================
--- create-blink-tools-tgz.sh	                        (rev 0)
+++ create-blink-tools-tgz.sh	2018-04-18 12:40:50 UTC (rev 322183)
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+pkgver=$(. PKGBUILD; echo $pkgver)
+[[ -n $pkgver ]] || exit 1
+
+wget -qO blink-tools-$pkgver.tar.gz \
+  https://chromium.googlesource.com/chromium/src/+archive/$pkgver/third_party/blink/tools.tar.gz
+
+rsync --ignore-existing blink-tools-$pkgver.tar.gz pkgbuild.com:public_html/sources/chromium/

Deleted: send-GSB-before-switching-to-mainthread-scrolling-in.patch
===================================================================
--- send-GSB-before-switching-to-mainthread-scrolling-in.patch	2018-04-18 11:43:09 UTC (rev 322182)
+++ send-GSB-before-switching-to-mainthread-scrolling-in.patch	2018-04-18 12:40:50 UTC (rev 322183)
@@ -1,53 +0,0 @@
-From 5d5a062fac6f567cd8f8b2ef7e894e7623f8013e Mon Sep 17 00:00:00 2001
-From: Sahel Sharify <sahel at chromium.org>
-Date: Thu, 15 Mar 2018 17:30:49 +0000
-Subject: [PATCH] Send GSB before switching to mainthread scrolling in smooth
- scroll path.
-
-This cl is the equivalent of https://codereview.chromium.org/2854683002 fix for smooth scrolling
-path,if the compositor handles the GSB and during the scrolling we have to switch to main thread
-since the compositor cannot handle a GSU a GSB must be sent to the main thread since the original
-GSB was handled on the compositor rather than being sent to the main thread.
-
-touchpad-scroll-impl-to-main.html is the test that forces switch from compositor thread to main
-thread in the middle of scrolling. It used to get executed with --disable-smooth-scrolling
-in this cl I've moved the test to a new virtual test suite that has default scroll animation
-value.
-
-I have removed the test expectations since I have changed the test and this might fix the flake.
-
-subpixel-accumulation.html needs scroll animation to be disabled and that's why I had to move it to
-a new test suite.
-
-Bug: 820979, 708499, 757165, 800840
-Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
-Change-Id: I21b1f4285897d74559f6827e6a232f007dc897b0
-Reviewed-on: https://chromium-review.googlesource.com/961264
-Commit-Queue: Sahel Sharifymoghaddam <sahel at chromium.org>
-Reviewed-by: Timothy Dresser <tdresser at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#543425}
----
- ui/events/blink/input_handler_proxy.cc | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
-index e9dd50253458..6d77910839f4 100644
---- a/ui/events/blink/input_handler_proxy.cc
-+++ b/ui/events/blink/input_handler_proxy.cc
-@@ -765,7 +765,12 @@ InputHandlerProxy::HandleGestureScrollUpdate(
-         return DID_HANDLE;
-       case cc::InputHandler::SCROLL_IGNORED:
-         return DROP_EVENT;
--      default:
-+      case cc::InputHandler::SCROLL_ON_MAIN_THREAD:
-+      case cc::InputHandler::SCROLL_UNKNOWN:
-+        if (input_handler_->ScrollingShouldSwitchtoMainThread()) {
-+          gesture_scroll_on_impl_thread_ = false;
-+          client_->GenerateScrollBeginAndSendToMainThread(gesture_event);
-+        }
-         return DID_NOT_HANDLE;
-     }
-   }
--- 
-2.16.2
-



More information about the arch-commits mailing list