diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-02-28 09:43:23 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-02-28 12:46:45 +0000 |
commit | 0abb4b3f66f1fc01095310369fe56ea356e4b134 (patch) | |
tree | 87ceeb09f7c790669691a596ec0575ef087b670b /net | |
parent | 05055b1fb51278a661015d2203038be8e7ca79a9 (diff) | |
download | ports-0abb4b3f66f1fc01095310369fe56ea356e4b134.tar.gz ports-0abb4b3f66f1fc01095310369fe56ea356e4b134.zip |
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
Diffstat (limited to 'net')
-rw-r--r-- | net/libarcus/files/patch-protobuf | 15 |
1 files changed, 15 insertions, 0 deletions
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)); |