git: 0abb4b3f66f1 - main - net/libarcus: Fix build with protobuf 3.18.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 12:54:11 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0abb4b3f66f1fc01095310369fe56ea356e4b134
commit 0abb4b3f66f1fc01095310369fe56ea356e4b134
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-02-28 09:43:23 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-02-28 12:46:45 +0000
net/libarcus: Fix build with protobuf 3.18.0+
Deprecated 2-parameter SetTotalBytesLimit() has be removed since protobuf 3.18.0.
Reference: https://github.com/protocolbuffers/protobuf/commit/cda795437d00a15f375d3d5e2659adac715459c6
---
net/libarcus/files/patch-protobuf | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/net/libarcus/files/patch-protobuf b/net/libarcus/files/patch-protobuf
new file mode 100644
index 000000000000..dddcde1ae0fe
--- /dev/null
+++ b/net/libarcus/files/patch-protobuf
@@ -0,0 +1,15 @@
+Deprecated 2-parameter SetTotalBytesLimit() has be removed since protobuf 3.18.0.
+
+Reference: https://github.com/protocolbuffers/protobuf/commit/cda795437d00a15f375d3d5e2659adac715459c6
+
+--- src/Socket_p.h.orig 2021-10-12 08:14:23 UTC
++++ src/Socket_p.h
+@@ -548,7 +548,7 @@ namespace Arcus
+
+ google::protobuf::io::ArrayInputStream array(wire_message->data, wire_message->size);
+ google::protobuf::io::CodedInputStream stream(&array);
+- stream.SetTotalBytesLimit(message_size_maximum, message_size_warning);
++ stream.SetTotalBytesLimit(message_size_maximum);
+ if(!message->ParseFromCodedStream(&stream))
+ {
+ error(ErrorCode::ParseFailedError, "Failed to parse message:" + std::string(wire_message->data));