summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2022-01-12 00:00:00 +0000
committerYixun Lan <dlan@gentoo.org>2022-01-29 23:18:35 +0800
commitda6212a99d181d54f22c73fb2a9b8a9a5df2d21b (patch)
tree9bc61710ff44ce94e8c26a7f3f0389acf3349892 /app-i18n/mozc/files
parentdev-python/protobuf-python: Delete old version (3.16.0). (diff)
downloadgentoo-da6212a99d181d54f22c73fb2a9b8a9a5df2d21b.tar.gz
gentoo-da6212a99d181d54f22c73fb2a9b8a9a5df2d21b.tar.bz2
gentoo-da6212a99d181d54f22c73fb2a9b8a9a5df2d21b.zip
app-i18n/mozc: Fix building with >=dev-libs/protobuf-3.18.0
Closes: https://bugs.gentoo.org/828527 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-i18n/mozc/files')
-rw-r--r--app-i18n/mozc/files/mozc-2.23.2815.102-protobuf-3.18.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/app-i18n/mozc/files/mozc-2.23.2815.102-protobuf-3.18.patch b/app-i18n/mozc/files/mozc-2.23.2815.102-protobuf-3.18.patch
new file mode 100644
index 000000000000..15077bb1752a
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-2.23.2815.102-protobuf-3.18.patch
@@ -0,0 +1,13 @@
+Fix building with Protocol Buffers >=3.18.
+
+--- /src/dictionary/user_dictionary_storage.cc
++++ /src/dictionary/user_dictionary_storage.cc
+@@ -108,7 +108,7 @@
+ // wants to use more than 512MB.
+ mozc::protobuf::io::IstreamInputStream zero_copy_input(&ifs);
+ mozc::protobuf::io::CodedInputStream decoder(&zero_copy_input);
+- decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit, -1);
++ decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit);
+ if (!user_dictionary_storage_base.ParseFromCodedStream(&decoder)) {
+ LOG(ERROR) << "Failed to parse";
+ if (!decoder.ConsumedEntireMessage() || !ifs.eof()) {