[arch-commits] Commit in electron/trunk (9 files)

Nicola Squartini tensor5 at gemini.archlinux.org
Wed Nov 24 18:18:00 UTC 2021


    Date: Wednesday, November 24, 2021 @ 18:18:00
  Author: tensor5
Revision: 1054721

upgpkg: electron 16.0.1-1

Added:
  electron/trunk/std-vector-non-const.patch
Modified:
  electron/trunk/PKGBUILD
  electron/trunk/use-system-libraries-in-node.patch
Deleted:
  electron/trunk/add-a-TODO-about-a-missing-pnacl-flag.patch
  electron/trunk/gn-visibility-gmock.patch
  electron/trunk/gn-visibility-mojo.patch
  electron/trunk/gn-visibility-webrtc.patch
  electron/trunk/replace-blacklist-with-ignorelist.patch
  electron/trunk/use-ffile-compilation-dir.patch

---------------------------------------------+
 PKGBUILD                                    |   45 ++---
 add-a-TODO-about-a-missing-pnacl-flag.patch |   28 ---
 gn-visibility-gmock.patch                   |   43 -----
 gn-visibility-mojo.patch                    |   36 ----
 gn-visibility-webrtc.patch                  |   45 -----
 replace-blacklist-with-ignorelist.patch     |  196 --------------------------
 std-vector-non-const.patch                  |  115 +++++++++++++++
 use-ffile-compilation-dir.patch             |   65 --------
 use-system-libraries-in-node.patch          |    5 
 9 files changed, 136 insertions(+), 442 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-24 18:15:48 UTC (rev 1054720)
+++ PKGBUILD	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,12 +1,12 @@
 # Maintainer: Nicola Squartini <tensor5 at gmail.com>
 
 _use_suffix=0
-pkgver=15.3.1
-_commit=e298bf46e420d3bcec1b936dd6cdccbcbc701fcb
-_chromiumver=94.0.4606.81
-_gcc_patchset=3
+pkgver=16.0.1
+_commit=beac90fba4bb74f07b03e12399f25e5e33e6cd94
+_chromiumver=96.0.4664.45
+_gcc_patchset=4
 # shellcheck disable=SC2034
-pkgrel=2
+pkgrel=1
 
 _major_ver=${pkgver%%.*}
 if [[ ${_use_suffix} != 0 ]]; then
@@ -48,38 +48,28 @@
         "electron-launcher.sh"
         "electron.desktop"
         'default_app-icon.patch'
+        'std-vector-non-const.patch'
         'use-system-libraries-in-node.patch'
-        'replace-blacklist-with-ignorelist.patch'
         'sql-make-VirtualCursor-standard-layout-type.patch'
         'unbundle-fix-visibility-of-build-config-freetype.patch'
-        'gn-visibility-gmock.patch'
-        'gn-visibility-mojo.patch'
-        'gn-visibility-webrtc.patch'
-        'add-a-TODO-about-a-missing-pnacl-flag.patch'
         'chromium-93-ffmpeg-4.4.patch'
         'chromium-94-ffmpeg-roll.patch'
         'unexpire-accelerated-video-decode-flag.patch'
-        'use-ffile-compilation-dir.patch'
        )
 # shellcheck disable=SC2034
 sha256sums=('SKIP'
             'SKIP'
-            '22692bddaf2761c6ddf9ff0bc4722972bca4d4c5b2fd3e5dbdac7eb60d914320'
+            '090af7eab39aade15a1786273f2497d6b4abfaef24279fbf97ce0dd1c38c69aa'
             '3953f532a3ea5fce19ee33600c6ead89dcd066df6a01d3c3ab4c24f96e46fca2'
             '4484200d90b76830b69eea3a471c103999a3ce86bb2c29e6c14c945bf4102bae'
             '75bac9c4ad32ff9329399b8587f9772e208c009fd822cdfce61b2bd1ee9ac828'
-            '7cb11fb44aaf4d15f36caca3c0d1b082a723c30d43cd44db147248db5683a2a9'
-            'd3344ba39b8c6ed202334ba7f441c70d81ddf8cdb15af1aa8c16e9a3a75fbb35'
+            '05598c7ccac38772503f00335916fe038db0d9aa240cf13a3b0f0ee69a382d98'
+            'c70652a8b24c237bcfd27469de32797a2cb46d9f0d63d897bb6418314a25644c'
             'dd317f85e5abfdcfc89c6f23f4c8edbcdebdd5e083dcec770e5da49ee647d150'
             'd0b17162211dd49e3a58c16d1697e7d8c322dcfd3b7890f0c2f920b711f52293'
-            'b9934e01d8f39beafc8b63784fb86e6befe25ca83e9c43224c8374e5a025d8ef'
-            'cca2d224cf2e9d7cfb4f5729ca76b5b8a7100b1ca39892b41fb296adaced1bf7'
-            '574785a21168c3e9b7aa82630713ceb6ced12f699133db66b10fc84b7bb2c631'
-            'd53da216538f2e741a6e048ed103964a91a98e9a3c10c27fdfa34d4692fdc455'
             '1a9e074f417f8ffd78bcd6874d8e2e74a239905bf662f76a7755fa40dc476b57'
             '56acb6e743d2ab1ed9f3eb01700ade02521769978d03ac43226dec94659b3ace'
             '2a97b26c3d6821b15ef4ef1369905c6fa3e9c8da4877eb9af4361452a425290b'
-            '921010cd8fab5f30be76c68b68c9b39fac9e21f4c4133bb709879592bbdf606e'
            )
 
 _system_libs=('ffmpeg'
@@ -136,6 +126,11 @@
       --with_tags \
       --nohooks
 
+  (
+    cd src/electron || exit
+    patch -Np1 -i ../../std-vector-non-const.patch
+  )
+
   echo "Running hooks..."
   # python "${srcdir}/depot_tools/gclient.py" runhooks
   src/build/landmines.py
@@ -169,20 +164,16 @@
 
   echo "Applying local patches..."
   # Fixes for building with libstdc++ instead of libc++
-  patch -Np1 -i ../patches/chromium-90-ruy-include.patch
-  patch -Np1 -i ../patches/chromium-94-CustomSpaces-include.patch
+  patch -Np1 -i ../patches/chromium-96-CommandLine-include.patch
+  patch -Np1 -i ../patches/chromium-96-RestrictedCookieManager-tuple.patch
+  patch -Np1 -i ../patches/chromium-96-DrmRenderNodePathFinder-include.patch
+  patch -Np1 -i ../patches/chromium-96-CouponDB-include.patch
 
   patch -Np1 -i ../unbundle-fix-visibility-of-build-config-freetype.patch
-  patch -Np1 -i ../gn-visibility-gmock.patch
-  patch -Np1 -i ../gn-visibility-mojo.patch
-  patch -Np1 -i ../gn-visibility-webrtc.patch
-  patch -Rp1 -i ../add-a-TODO-about-a-missing-pnacl-flag.patch
   patch -Np1 -i ../chromium-93-ffmpeg-4.4.patch
   patch -Rp1 -i ../chromium-94-ffmpeg-roll.patch
-  patch -Rp1 -i ../replace-blacklist-with-ignorelist.patch
   patch -Np1 -i ../sql-make-VirtualCursor-standard-layout-type.patch
   patch -Np0 -i ../unexpire-accelerated-video-decode-flag.patch
-  patch -Rp1 -i ../use-ffile-compilation-dir.patch
   patch -Np1 -i ../use-system-libraries-in-node.patch
   patch -Np1 -i ../default_app-icon.patch  # Icon from .desktop file
 

Deleted: add-a-TODO-about-a-missing-pnacl-flag.patch
===================================================================
--- add-a-TODO-about-a-missing-pnacl-flag.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ add-a-TODO-about-a-missing-pnacl-flag.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,28 +0,0 @@
-From 7a23987acb698c2934958cb42a5e7b1cd73fe142 Mon Sep 17 00:00:00 2001
-From: Nico Weber <thakis at chromium.org>
-Date: Tue, 20 Jul 2021 21:54:09 +0000
-Subject: [PATCH] build: Add a TODO about a missing pnacl flag
-
-Change-Id: I1700d185a23afe4120e14c755782450b1bf89289
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041785
-Commit-Queue: Nico Weber <thakis at chromium.org>
-Commit-Queue: Hans Wennborg <hans at chromium.org>
-Auto-Submit: Nico Weber <thakis at chromium.org>
-Reviewed-by: Hans Wennborg <hans at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#903659}
----
- build/config/compiler/BUILD.gn | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
-index b6e095b705..ef6d1dfc12 100644
---- a/build/config/compiler/BUILD.gn
-+++ b/build/config/compiler/BUILD.gn
-@@ -1217,6 +1217,7 @@ config("compiler_deterministic") {
-     # we build same files with same compile flag.
-     # Other paths are already given in relative, no need to normalize them.
-     if (is_nacl) {
-+      # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
-       cflags += [
-         "-Xclang",
-         "-fdebug-compilation-dir",

Deleted: gn-visibility-gmock.patch
===================================================================
--- gn-visibility-gmock.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ gn-visibility-gmock.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,43 +0,0 @@
-From fc3c737210873e9bee311391e9f6b48130e84983 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tomasz=20=C5=9Aniatowski?= <tsniatowski at vewd.com>
-Date: Sat, 4 Sep 2021 07:13:49 +0000
-Subject: [PATCH] Fix config visibility violation in //testing/gmock
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-//third_party/googletest:gtest_config has restricted visibility, current
-code works by accident because gn only enforces visibility on 'configs'.
-Fix by not referencing the configs at all as it should be unnecessary:
-//testing/gmock gets them via a public dependency chain anyway.
-
-This is one of a few fixes needed to roll gn past the upcoming
-enforcement change, landing in small parts because removing config
-usages feels a bit subtle.
-
-Bug: gn:252
-Change-Id: Ie1438862831ecee49162d9f8f7872a568d69c2fb
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3139927
-Reviewed-by: Dirk Pranke <dpranke at google.com>
-Commit-Queue: Tomasz Śniatowski <tsniatowski at vewd.com>
-Cr-Commit-Position: refs/heads/main@{#918357}
----
- testing/gmock/BUILD.gn | 5 -----
- 1 file changed, 5 deletions(-)
-
-diff --git a/testing/gmock/BUILD.gn b/testing/gmock/BUILD.gn
-index 0248d146d7397..e285fb84e471a 100644
---- a/testing/gmock/BUILD.gn
-+++ b/testing/gmock/BUILD.gn
-@@ -14,11 +14,6 @@ source_set("gmock") {
-     "include/gmock/gmock.h",
-   ]
-   public_deps = [ "//third_party/googletest:gmock" ]
--
--  public_configs = [
--    "//third_party/googletest:gmock_config",
--    "//third_party/googletest:gtest_config",
--  ]
- }
- 
- # The file/directory layout of Google Test is not yet considered stable. Until

Deleted: gn-visibility-mojo.patch
===================================================================
--- gn-visibility-mojo.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ gn-visibility-mojo.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,36 +0,0 @@
-From 40f10bf0e683f6b499b5c3c7555111193db03abf Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tomasz=20=C5=9Aniatowski?= <tsniatowski at vewd.com>
-Date: Tue, 7 Sep 2021 20:13:53 +0000
-Subject: [PATCH] Fix config visibility violation in //mojo/public/cpp/bindings
-
-//third_party/blink/renderer:config has restricted visibility, current
-code works by accident because gn only enforces visibility on 'configs'.
-Fix by removing the direct config usage as it looks historical and not
-actually needed.
-
-This is one of a few fixes needed to roll gn past the upcoming
-enforcement change, landing in small parts because removing config
-usages feels a bit subtle.
-
-Bug: gn:252
-Change-Id: I2e0d2e314ef3714dd19b11b7ae29bdcf5074cfda
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3140593
-Commit-Queue: Ken Rockot <rockot at google.com>
-Reviewed-by: Ken Rockot <rockot at google.com>
-Cr-Commit-Position: refs/heads/main@{#918914}
----
- mojo/public/cpp/bindings/BUILD.gn | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/mojo/public/cpp/bindings/BUILD.gn b/mojo/public/cpp/bindings/BUILD.gn
-index 13ad53b3ed305..d90318de106e4 100644
---- a/mojo/public/cpp/bindings/BUILD.gn
-+++ b/mojo/public/cpp/bindings/BUILD.gn
-@@ -281,7 +281,5 @@ if (!is_ios) {
-       "//third_party/blink/renderer/platform:platform_export",
-       "//third_party/blink/renderer/platform/wtf",
-     ]
--
--    public_configs = [ "//third_party/blink/renderer:config" ]
-   }
- }

Deleted: gn-visibility-webrtc.patch
===================================================================
--- gn-visibility-webrtc.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ gn-visibility-webrtc.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,45 +0,0 @@
-From 72c4d9fc95c336f61d7a8417b78f947a400ce792 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tomasz=20=C5=9Aniatowski?= <tsniatowski at vewd.com>
-Date: Tue, 14 Sep 2021 10:33:37 +0000
-Subject: [PATCH] Relax googletest gn config visibility for webrtc
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-An upcoming gn roll will start enforcing config visibility on
-public_configs and all_dependent_configs. Normally, configs with
-limited visibility have corresponding helper targets that push the
-configs using public_configs and are propagated with public_deps.
-However, webrtc prefers to avoid public_deps, and pushes the gtest
-config using all_dependent_configs. This requires direct visibility,
-so tweak gtest BUILD.gn to make things work.
-
-Bug: gn:252, 1249254
-Change-Id: Ic7be22f7bf129255fb0ac51f437cd6dd3989e3a3
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3158065
-Commit-Queue: Tomasz Śniatowski <tsniatowski at vewd.com>
-Reviewed-by: Victor Costan <pwnall at chromium.org>
-Cr-Commit-Position: refs/heads/main@{#921126}
----
- third_party/googletest/BUILD.gn | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/third_party/googletest/BUILD.gn b/third_party/googletest/BUILD.gn
-index fe240ebe954b6..d2bde47d75eab 100644
---- a/third_party/googletest/BUILD.gn
-+++ b/third_party/googletest/BUILD.gn
-@@ -5,7 +5,13 @@
- import("//build_overrides/build.gni")
- 
- config("gtest_config") {
--  visibility = [ ":*" ]  # gmock also shares this config.
-+  # webrtc wants to push this config without a public_dep chain
-+  # TODO(crbug.com/1249254): figure out what to do with this
-+  visibility = [
-+    ":*",  # gmock also shares this config.
-+    "//test:*",  # webrts standalone setup
-+    "//third_party/webrtc/test:*",
-+  ]
- 
-   defines = [
-     # Chromium always links googletest statically, so no API qualifier is

Deleted: replace-blacklist-with-ignorelist.patch
===================================================================
--- replace-blacklist-with-ignorelist.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ replace-blacklist-with-ignorelist.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,196 +0,0 @@
-From 9d080c0934b848ee4a05013c78641e612fcc1e03 Mon Sep 17 00:00:00 2001
-From: Dylan Cutler <dylancutler at google.com>
-Date: Wed, 26 May 2021 16:39:52 +0000
-Subject: [PATCH] Reland "Replace 'blacklist' with 'ignorelist' in
- ./tools/msan/."
-
-This is a reland of 3b6263f2eece1264b052dfdcbc03b851d5abfb48
-
-Relanding now that https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2897974 is merged
-
-Original change's description:
-> Replace 'blacklist' with 'ignorelist' in ./tools/msan/.
->
-> Bug: 1097272, 1097268
-> Change-Id: Id5c8227a5bfb1ffaec82d3168b609085b10c8297
-> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2867730
-> Commit-Queue: Dylan Cutler <dylancutler at google.com>
-> Reviewed-by: Nico Weber <thakis at chromium.org>
-> Reviewed-by: Jonathan Metzman <metzman at chromium.org>
-> Cr-Commit-Position: refs/heads/master@{#883035}
-
-Bug: 1097272
-Bug: 1097268
-Change-Id: I11a5bc8972680c95fb1dab95ed3b707ed76f4667
-Cq-Include-Trybots: luci.chromium.try:chromeos-amd64-generic-cfi-thin-lto-rel
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2911096
-Commit-Queue: Dylan Cutler <dylancutler at google.com>
-Reviewed-by: Nico Weber <thakis at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#886773}
----
- build/config/sanitizers/BUILD.gn             | 44 ++++++++++----------
- build_overrides/build.gni                    | 14 +++----
- tools/msan/{blacklist.txt => ignorelist.txt} |  0
- 3 files changed, 29 insertions(+), 29 deletions(-)
- rename tools/msan/{blacklist.txt => ignorelist.txt} (100%)
-
-diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
-index aaaad023474d..55b388a43743 100644
---- a/build/config/sanitizers/BUILD.gn
-+++ b/build/config/sanitizers/BUILD.gn
-@@ -272,11 +272,11 @@ config("asan_flags") {
-   if (is_asan) {
-     cflags += [ "-fsanitize=address" ]
-     if (is_win) {
--      if (!defined(asan_win_blacklist_path)) {
--        asan_win_blacklist_path =
-+      if (!defined(asan_win_blocklist_path)) {
-+        asan_win_blocklist_path =
-             rebase_path("//tools/memory/asan/blocklist_win.txt", root_build_dir)
-       }
--      cflags += [ "-fsanitize-blacklist=$asan_win_blacklist_path" ]
-+      cflags += [ "-fsanitize-ignorelist=$asan_win_blocklist_path" ]
-     }
-   }
- }
-@@ -306,13 +306,13 @@ config("link_shared_library") {
- config("cfi_flags") {
-   cflags = []
-   if (is_cfi && current_toolchain == default_toolchain) {
--    if (!defined(cfi_blacklist_path)) {
--      cfi_blacklist_path =
-+    if (!defined(cfi_ignorelist_path)) {
-+      cfi_ignorelist_path =
-           rebase_path("//tools/cfi/ignores.txt", root_build_dir)
-     }
-     cflags += [
-       "-fsanitize=cfi-vcall",
--      "-fsanitize-blacklist=$cfi_blacklist_path",
-+      "-fsanitize-ignorelist=$cfi_ignorelist_path",
-     ]
- 
-     if (use_cfi_cast) {
-@@ -409,14 +409,14 @@ config("msan_flags") {
-   if (is_msan) {
-     assert(is_linux || is_chromeos,
-            "msan only supported on linux x86_64/ChromeOS")
--    if (!defined(msan_blacklist_path)) {
--      msan_blacklist_path =
--          rebase_path("//tools/msan/blacklist.txt", root_build_dir)
-+    if (!defined(msan_ignorelist_path)) {
-+      msan_ignorelist_path =
-+          rebase_path("//tools/msan/ignorelist.txt", root_build_dir)
-     }
-     cflags = [
-       "-fsanitize=memory",
-       "-fsanitize-memory-track-origins=$msan_track_origins",
--      "-fsanitize-blacklist=$msan_blacklist_path",
-+      "-fsanitize-ignorelist=$msan_ignorelist_path",
-     ]
-   }
- }
-@@ -424,13 +424,13 @@ config("msan_flags") {
- config("tsan_flags") {
-   if (is_tsan) {
-     assert(is_linux || is_chromeos, "tsan only supported on linux x86_64")
--    if (!defined(tsan_blacklist_path)) {
--      tsan_blacklist_path =
-+    if (!defined(tsan_ignorelist_path)) {
-+      tsan_ignorelist_path =
-           rebase_path("//tools/memory/tsan_v2/ignores.txt", root_build_dir)
-     }
-     cflags = [
-       "-fsanitize=thread",
--      "-fsanitize-blacklist=$tsan_blacklist_path",
-+      "-fsanitize-ignorelist=$tsan_ignorelist_path",
-     ]
-   }
- }
-@@ -438,8 +438,8 @@ config("tsan_flags") {
- config("ubsan_flags") {
-   cflags = []
-   if (is_ubsan) {
--    if (!defined(ubsan_blacklist_path)) {
--      ubsan_blacklist_path =
-+    if (!defined(ubsan_ignorelist_path)) {
-+      ubsan_ignorelist_path =
-           rebase_path("//tools/ubsan/ignorelist.txt", root_build_dir)
-     }
-     cflags += [
-@@ -456,7 +456,7 @@ config("ubsan_flags") {
-       "-fsanitize=signed-integer-overflow",
-       "-fsanitize=unreachable",
-       "-fsanitize=vla-bound",
--      "-fsanitize-blacklist=$ubsan_blacklist_path",
-+      "-fsanitize-ignorelist=$ubsan_ignorelist_path",
-     ]
- 
-     # Chromecast ubsan builds fail to compile with these
-@@ -486,8 +486,8 @@ config("ubsan_no_recover") {
- 
- config("ubsan_security_flags") {
-   if (is_ubsan_security) {
--    if (!defined(ubsan_security_blacklist_path)) {
--      ubsan_security_blacklist_path =
-+    if (!defined(ubsan_security_ignorelist_path)) {
-+      ubsan_security_ignorelist_path =
-           rebase_path("//tools/ubsan/security_ignorelist.txt", root_build_dir)
-     }
-     cflags = [
-@@ -495,7 +495,7 @@ config("ubsan_security_flags") {
-       "-fsanitize=shift",
-       "-fsanitize=signed-integer-overflow",
-       "-fsanitize=vla-bound",
--      "-fsanitize-blacklist=$ubsan_security_blacklist_path",
-+      "-fsanitize-ignorelist=$ubsan_security_ignorelist_path",
-     ]
-   }
- }
-@@ -508,13 +508,13 @@ config("ubsan_null_flags") {
- 
- config("ubsan_vptr_flags") {
-   if (is_ubsan_vptr) {
--    if (!defined(ubsan_vptr_blacklist_path)) {
--      ubsan_vptr_blacklist_path =
-+    if (!defined(ubsan_vptr_ignorelist_path)) {
-+      ubsan_vptr_ignorelist_path =
-           rebase_path("//tools/ubsan/vptr_ignorelist.txt", root_build_dir)
-     }
-     cflags = [
-       "-fsanitize=vptr",
--      "-fsanitize-blacklist=$ubsan_vptr_blacklist_path",
-+      "-fsanitize-ignorelist=$ubsan_vptr_ignorelist_path",
-     ]
-   }
- }
-diff --git a/build_overrides/build.gni b/build_overrides/build.gni
-index 82627b03653f..f3e563ab701b 100644
---- a/build_overrides/build.gni
-+++ b/build_overrides/build.gni
-@@ -42,15 +42,15 @@ declare_args() {
- # Allows different projects to specify their own suppression/ignore lists for
- # sanitizer tools.
- # asan_suppressions_file = "path/to/asan_suppressions.cc"
--# asan_win_blacklist_path = "path/to/asan/blocklist_win.txt"
-+# asan_win_ignorelist_path = "path/to/asan/blocklist_win.txt"
- # lsan_suppressions_file = "path/to/lsan_suppressions.cc"
- # tsan_suppressions_file = "path/to/tsan_suppressions.cc"
--# tsan_blacklist_path = "path/to/tsan/ignores.txt"
--# msan_blacklist_path = "path/to/msan/blacklist.txt"
--# ubsan_blacklist_path = "path/to/ubsan/blacklist.txt"
--# ubsan_vptr_blacklist_path = "path/to/ubsan/vptr_blacklist.txt"
--# ubsan_security_blacklist_path = "path/to/ubsan/security_blacklist.txt"
--# cfi_blacklist_path = "path/to/cfi/ignores.txt"
-+# tsan_ignorelist_path = "path/to/tsan/ignores.txt"
-+# msan_ignorelist_path = "path/to/msan/ignorelist.txt"
-+# ubsan_ignorelist_path = "path/to/ubsan/ignorelist.txt"
-+# ubsan_vptr_ignorelist_path = "path/to/ubsan/vptr_ignorelist.txt"
-+# ubsan_security_ignorelist_path = "path/to/ubsan/security_ignorelist.txt"
-+# cfi_ignorelist_path = "path/to/cfi/ignores.txt"
- 
- declare_args() {
-   # Android 32-bit non-component, non-clang builds cannot have symbol_level=2
-diff --git a/tools/msan/blacklist.txt b/tools/msan/ignorelist.txt
-similarity index 100%
-rename from tools/msan/blacklist.txt
-rename to tools/msan/ignorelist.txt

Added: std-vector-non-const.patch
===================================================================
--- std-vector-non-const.patch	                        (rev 0)
+++ std-vector-non-const.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -0,0 +1,115 @@
+diff --git a/patches/chromium/feat_add_data_parameter_to_processsingleton.patch b/patches/chromium/feat_add_data_parameter_to_processsingleton.patch
+index 2bc279b5e..f15d952a2 100644
+--- a/patches/chromium/feat_add_data_parameter_to_processsingleton.patch
++++ b/patches/chromium/feat_add_data_parameter_to_processsingleton.patch
+@@ -30,7 +30,7 @@ index eec994c4252f17d9c9c41e66d5dae6509ed98a18..e538c9b76da4d4435e10cd3848438446
+        base::RepeatingCallback<bool(const base::CommandLine& command_line,
+ -                                   const base::FilePath& current_directory)>;
+ +                                   const base::FilePath& current_directory,
+-+                                   const std::vector<const uint8_t> additional_data)>;
+++                                   const std::vector<uint8_t> additional_data)>;
+  
+  #if defined(OS_WIN)
+    ProcessSingleton(const std::string& program_name,
+@@ -68,7 +68,7 @@ index a04d139f958a7aaef9b96e8c29317ccf7c97f009..e77cebd31967d28f3cb0db78e7360115
+    // |reader| is for sending back ACK message.
+    void HandleMessage(const std::string& current_dir,
+                       const std::vector<std::string>& argv,
+-+                     const std::vector<const uint8_t> additional_data,
+++                     const std::vector<uint8_t> additional_data,
+                       SocketReader* reader);
+  
+   private:
+@@ -79,7 +79,7 @@ index a04d139f958a7aaef9b96e8c29317ccf7c97f009..e77cebd31967d28f3cb0db78e7360115
+ -    const std::string& current_dir, const std::vector<std::string>& argv,
+ +    const std::string& current_dir,
+ +    const std::vector<std::string>& argv,
+-+    const std::vector<const uint8_t> additional_data,
+++    const std::vector<uint8_t> additional_data,
+      SocketReader* reader) {
+    DCHECK(ui_task_runner_->BelongsToCurrentThread());
+    DCHECK(reader);
+@@ -109,7 +109,7 @@ index a04d139f958a7aaef9b96e8c29317ccf7c97f009..e77cebd31967d28f3cb0db78e7360115
+ +  base::StringToSizeT(tokens[0], &num_args);
+ +  std::vector<std::string> command_line(tokens.begin() + 1, tokens.begin() + 1 + num_args);
+ +
+-+  std::vector<const uint8_t> additional_data;
+++  std::vector<uint8_t> additional_data;
+ +  if (tokens.size() >= 3 + num_args) {
+ +    size_t additional_data_size;
+ +    base::StringToSizeT(tokens[1 + num_args], &additional_data_size);
+@@ -118,7 +118,7 @@ index a04d139f958a7aaef9b96e8c29317ccf7c97f009..e77cebd31967d28f3cb0db78e7360115
+ +        std::string(1, kTokenDelimiter));
+ +    const uint8_t* additional_data_bits =
+ +        reinterpret_cast<const uint8_t*>(remaining_args.c_str());
+-+    additional_data = std::vector<const uint8_t>(
+++    additional_data = std::vector<uint8_t>(
+ +        additional_data_bits, additional_data_bits + additional_data_size);
+ +  }
+ +
+@@ -184,7 +184,7 @@ index 19d5659d665321da54e05cee01be7da02e0c283b..600ff701b025ba190d05bc30994e3d3e
+                        base::CommandLine* parsed_command_line,
+ -                      base::FilePath* current_directory) {
+ +                      base::FilePath* current_directory,
+-+                      std::vector<const uint8_t>* parsed_additional_data) {
+++                      std::vector<uint8_t>* parsed_additional_data) {
+    // We should have enough room for the shortest command (min_message_size)
+    // and also be a multiple of wchar_t bytes. The shortest command
+ -  // possible is L"START\0\0" (empty current directory and command line).
+@@ -225,7 +225,7 @@ index 19d5659d665321da54e05cee01be7da02e0c283b..600ff701b025ba190d05bc30994e3d3e
+ +        msg.substr(fourth_null + 1, fifth_null - fourth_null);
+ +    const uint8_t* additional_data_bytes =
+ +        reinterpret_cast<const uint8_t*>(additional_data.c_str());
+-+    *parsed_additional_data = std::vector<const uint8_t>(additional_data_bytes,
+++    *parsed_additional_data = std::vector<uint8_t>(additional_data_bytes,
+ +        additional_data_bytes + additional_data_length);
+ +
+      return true;
+@@ -239,7 +239,7 @@ index 19d5659d665321da54e05cee01be7da02e0c283b..600ff701b025ba190d05bc30994e3d3e
+    base::CommandLine parsed_command_line(base::CommandLine::NO_PROGRAM);
+    base::FilePath current_directory;
+ -  if (!ParseCommandLine(cds, &parsed_command_line, &current_directory)) {
+-+  std::vector<const uint8_t> additional_data;
+++  std::vector<uint8_t> additional_data;
+ +  if (!ParseCommandLine(cds, &parsed_command_line, &current_directory, &additional_data)) {
+      *result = TRUE;
+      return true;
+diff --git a/shell/browser/api/electron_api_app.cc b/shell/browser/api/electron_api_app.cc
+index 7328cedf9..9945a04b2 100644
+--- a/shell/browser/api/electron_api_app.cc
++++ b/shell/browser/api/electron_api_app.cc
+@@ -517,10 +517,10 @@ bool NotificationCallbackWrapper(
+     const base::RepeatingCallback<
+         void(const base::CommandLine& command_line,
+              const base::FilePath& current_directory,
+-             const std::vector<const uint8_t> additional_data)>& callback,
++             const std::vector<uint8_t> additional_data)>& callback,
+     const base::CommandLine& cmd,
+     const base::FilePath& cwd,
+-    const std::vector<const uint8_t> additional_data) {
++    const std::vector<uint8_t> additional_data) {
+   // Make sure the callback is called after app gets ready.
+   if (Browser::Get()->is_ready()) {
+     callback.Run(cmd, cwd, std::move(additional_data));
+@@ -1078,7 +1078,7 @@ std::string App::GetLocaleCountryCode() {
+ 
+ void App::OnSecondInstance(const base::CommandLine& cmd,
+                            const base::FilePath& cwd,
+-                           const std::vector<const uint8_t> additional_data) {
++                           const std::vector<uint8_t> additional_data) {
+   v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
+   v8::Locker locker(isolate);
+   v8::HandleScope handle_scope(isolate);
+diff --git a/shell/browser/api/electron_api_app.h b/shell/browser/api/electron_api_app.h
+index fd644ed95..838366041 100644
+--- a/shell/browser/api/electron_api_app.h
++++ b/shell/browser/api/electron_api_app.h
+@@ -190,7 +190,7 @@ class App : public ElectronBrowserClient::Delegate,
+   std::string GetLocaleCountryCode();
+   void OnSecondInstance(const base::CommandLine& cmd,
+                         const base::FilePath& cwd,
+-                        const std::vector<const uint8_t> additional_data);
++                        const std::vector<uint8_t> additional_data);
+   bool HasSingleInstanceLock() const;
+   bool RequestSingleInstanceLock(gin::Arguments* args);
+   void ReleaseSingleInstanceLock();

Deleted: use-ffile-compilation-dir.patch
===================================================================
--- use-ffile-compilation-dir.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ use-ffile-compilation-dir.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -1,65 +0,0 @@
-From 34a955823630096f5b01c2b01d51c1ea59d22763 Mon Sep 17 00:00:00 2001
-From: Zequan Wu <zequanwu at google.com>
-Date: Tue, 20 Jul 2021 14:13:50 +0000
-Subject: [PATCH] Use -ffile-compilation-dir= instead of
- -fdebug-compilation-dir=
-
-Bug: 1010267
-Change-Id: If2b4ead8535a76490eb466a38e3d8fed6ea91079
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2770738
-Auto-Submit: Zequan Wu <zequanwu at google.com>
-Commit-Queue: Nico Weber <thakis at chromium.org>
-Reviewed-by: Nico Weber <thakis at chromium.org>
-Cr-Commit-Position: refs/heads/master@{#903456}
----
- build/config/compiler/BUILD.gn     | 18 ++++++++++++------
- build/config/compiler/compiler.gni |  7 ++-----
- 2 files changed, 14 insertions(+), 11 deletions(-)
-
-diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
-index ede07d111c..6db16c1cdd 100644
---- a/build/config/compiler/BUILD.gn
-+++ b/build/config/compiler/BUILD.gn
-@@ -1216,12 +1216,18 @@ config("compiler_deterministic") {
-     # different build directory like "out/feature_a" and "out/feature_b" if
-     # we build same files with same compile flag.
-     # Other paths are already given in relative, no need to normalize them.
--    cflags += [
--      "-Xclang",
--      "-fdebug-compilation-dir",
--      "-Xclang",
--      ".",
--    ]
-+    if (is_nacl) {
-+      cflags += [
-+        "-Xclang",
-+        "-fdebug-compilation-dir",
-+        "-Xclang",
-+        ".",
-+      ]
-+    } else {
-+      # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
-+      # and -fcoverage-compilation-dir=.
-+      cflags += [ "-ffile-compilation-dir=." ]
-+    }
-     if (!is_win) {
-       # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
-       asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
-diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
-index 8c259c360a..642319b4f4 100644
---- a/build/config/compiler/compiler.gni
-+++ b/build/config/compiler/compiler.gni
-@@ -225,11 +225,8 @@ declare_args() {
- # deterministic builds to reduce compile times, so this is less relevant for
- # official builders.
- strip_absolute_paths_from_debug_symbols_default =
--    # TODO(crbug.com/1010267): remove '!use_clang_coverage', coverage build has
--    # dependency to absolute path of source files.
--    !use_clang_coverage &&
--    (is_android || is_fuchsia || is_nacl || (is_win && use_lld) || is_linux ||
--     is_chromeos || (is_apple && !enable_dsyms))
-+    is_android || is_fuchsia || is_nacl || (is_win && use_lld) || is_linux ||
-+    is_chromeos || (is_apple && !enable_dsyms)
- 
- # If the platform uses stripped absolute paths by default, then we don't expose
- # it as a configuration option. If this is causing problems, please file a bug.

Modified: use-system-libraries-in-node.patch
===================================================================
--- use-system-libraries-in-node.patch	2021-11-24 18:15:48 UTC (rev 1054720)
+++ use-system-libraries-in-node.patch	2021-11-24 18:18:00 UTC (rev 1054721)
@@ -19,18 +19,19 @@
  assert(!node_use_dtrace, "node_use_dtrace not supported in GN")
  assert(!node_use_etw, "node_use_etw not supported in GN")
  
-@@ -182,10 +194,8 @@
+@@ -182,11 +194,9 @@
  component("node_lib") {
    deps = [
      ":node_js2c",
 -    "deps/cares",
      "deps/histogram",
+     "deps/googletest:gtest",
      "deps/llhttp",
 -    "deps/nghttp2",
      "deps/uvwasi",
      "//third_party/zlib",
      "//third_party/brotli:dec",
-@@ -201,6 +211,19 @@
+@@ -202,6 +212,19 @@
    public_configs = [ ":node_lib_config" ]
    include_dirs = [ "src" ]
    libs = []



More information about the arch-commits mailing list