Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37531348
en ru br
Репозитории ALT
S:117.0.5938.62-alt1
www.altlinux.org/Changes

Группа :: Сети/WWW
Пакет: chromium-gost

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0016-GENTOO-Fix-instantiating-fold-expression-error.patch
Скачать


From 66e30ea3a81553a40fcafca6cf5b9698369989a6 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Thu, 26 May 2022 14:02:31 +0300
Subject: [PATCH] GENTOO: Fix instantiating fold expression error
In file included from ../../components/autofill/core/browser/form_parsing/regex_patterns.cc:5:
In file included from ../../components/autofill/core/browser/form_parsing/regex_patterns.h:8:
In file included from ../../base/containers/span.h:10:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/11/../../../../include/c++/11/algorithm:74:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/11/../../../../include/c++/11/pstl/glue_algorithm_defs.h:13:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/11/../../../../include/c++/11/functional:54:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/11/../../../../include/c++/11/tuple:39:
/usr/bin/../lib64/gcc/x86_64-alt-linux/11/../../../../include/c++/11/array:268:52: fatal error: instantiating fold expression with 303 arguments exceeded expression nesting limit of 256
      -> array<enable_if_t<(is_same_v<_Tp, _Up> && ...), _Tp>,
                           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
Link: https://github.com/stha09/chromium-patches/blob/master/chromium-102-regex_pattern-array.patch
---
 components/autofill/core/browser/BUILD.gn | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/components/autofill/core/browser/BUILD.gn b/components/autofill/core/browser/BUILD.gn
index 7a2907f094a..284ecc2af97 100644
--- a/components/autofill/core/browser/BUILD.gn
+++ b/components/autofill/core/browser/BUILD.gn
@@ -24,20 +24,25 @@ grit("autofill_address_rewriter_resources") {
 action("regex_patterns_inl_h") {
   visibility = [ ":*" ]
   sources = [ "form_parsing/resources/regex_patterns.json" ]
   script = "form_parsing/transpile_regex_patterns.py"
   outputs = [ "$target_gen_dir/form_parsing/regex_patterns_inl.h" ]
   args = rebase_path(sources, root_build_dir) +
          rebase_path(outputs, root_build_dir)
 }
 
 static_library("browser") {
+  if (is_clang) {
+    cflags = [
+      "-fbracket-depth=1000",
+    ]
+  }
   sources = [
     "address_normalization_manager.cc",
     "address_normalization_manager.h",
     "address_normalizer.h",
     "address_normalizer_impl.cc",
     "address_normalizer_impl.h",
     "address_profile_save_manager.cc",
     "address_profile_save_manager.h",
     "address_rewriter.cc",
     "address_rewriter.h",
-- 
2.25.4
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin