Bug 246530 - [exp-run] devel/protobuf: update to 3.12.2
Summary: [exp-run] devel/protobuf: update to 3.12.2
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL: https://people.FreeBSD.org/~sunpoet/p...
Depends on:
Reported: 2020-05-17 19:56 UTC by Sunpoet Po-Chuan Hsieh
Modified: 2020-05-28 15:10 UTC (History)
0 users

See Also:
sunpoet: exp-run?


Note You need to log in before you can comment on or make changes to this bug.
Description Sunpoet Po-Chuan Hsieh freebsd_committer 2020-05-17 19:56:37 UTC
Update to 3.12.0

Changes:        https://github.com/protocolbuffers/protobuf/releases
Comment 3 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-05-25 17:48:58 UTC
Patch update with protobuf 3.12.1 and fixes for ja-mozc-{server,tool}.

I don't have a fix for security/certificate-transparency and I would like to mark it BROKEN.
The failure is caused by a class inherits the generated message which is prohibited.

from the documentation of protobuf [1]:
> You should never add behaviour to the generated classes by inheriting from them.

protobuf marked generated classes final as of 3.7.0. The behavior was temporarily reverted in 3.7.1 [2] to give developers more time to fix codes. And upstream marked it final again since 3.12.0.

from 3.12.0 release [3]:
> Mark generated classes as final; inheriting from protos is strongly discouraged.

On the certificate-transparency side, I've reported the failure upstream since 3.7.0 [4] and they did not want to fix it. I've checked the latest snapshot and it is not fixed yet.

[1] https://developers.google.com/protocol-buffers/docs/cpptutorial#parsing-and-serialization
[2] https://github.com/protocolbuffers/protobuf/commit/b3c132f6f33a58c7f3333c72e5d217bd3f6c9f11
[2] https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0
[4] https://github.com/google/certificate-transparency/issues/1461
Comment 4 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-05-28 15:10:16 UTC
Update patch to protobuf 3.12.2 with fixes for ja-mozc-{server,tool}.