www-client/chromium: Fix building with >=dev-libs/re2-0.2020.05.01.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Arfrever Frehtes Taifersar Arahesis
2020-05-02 19:28:08 +00:00
committed by Mike Gilbert
parent ca67022493
commit f4cd99ca1d
3 changed files with 15 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ PATCHES=(
"${FILESDIR}/chromium-81-gcc-constexpr.patch"
"${FILESDIR}/chromium-81-gcc-10.patch"
"${FILESDIR}/chromium-81-icu67.patch"
"${FILESDIR}/chromium-81-re2-0.2020.05.01.patch"
)
pre_build_checks() {

View File

@@ -181,6 +181,7 @@ PATCHES=(
"${FILESDIR}/chromium-83-gcc-serviceworker.patch"
"${FILESDIR}/chromium-83-gcc-10.patch"
"${FILESDIR}/chromium-83-icu67.patch"
"${FILESDIR}/chromium-81-re2-0.2020.05.01.patch"
)
pre_build_checks() {

View File

@@ -0,0 +1,13 @@
https://chromium.googlesource.com/chromium/src/+/ede390a0b18e4565abf8ac1e1ff717e1d43fc320
--- /components/autofill/core/browser/address_rewriter.cc
+++ /components/autofill/core/browser/address_rewriter.cc
@@ -57,7 +57,7 @@
CompiledRuleVector* compiled_rules) {
base::StringPiece data = data_string;
re2::RE2::Options options;
- options.set_utf8(true);
+ options.set_encoding(RE2::Options::EncodingUTF8);
options.set_word_boundary(true);
size_t token_end = 0;