-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ProtocolBuffers #10436
base: master
Are you sure you want to change the base?
Added ProtocolBuffers #10436
Conversation
Temporarily also added ProtocolBuffersCompiler - this should likely depend on ProtocolBuffers ( |
…c recipe ProtocolBuffers only includes libprotobuf and libprotobuf-lite shared libraries. ProtocolBuffersSDK only includes static libraries. Static libraries are compiled as position independent code, cf. https://github.com/onnx/onnx/blob/v1.17.0/README.md#linux Removes need for custom versioning, cf. notes about protobuf version numbers.
8ba969c
to
2b9fce7
Compare
One could also consider adding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Care to elaborate what this is doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just blindly copied from protoc recipe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try removing it
Co-authored-by: Mosè Giordano <[email protected]>
Currently, there is
protoc_jll
, which provides the protobuf compiler,protoc
, and thelibprotobuf
, andlibprotobuf-lite
run-time libraries (in shared library form), but not the static run-time libraries - and the versioning got a bit off course, cf. #9796.Since
it is very much preferable to link with
libprotobuf
statically, and not dynamically. Cf. https://protobuf.dev/support/cross-version-runtime-guarantee/#cppIn Yggdrasil, there are packages that have
protoc_jll
as aHostBuildDependency
, but there are also packages that need the run-time libraries and haveprotoc_jll
as aDependency
.The present PR accomplishes the following goals:
ProtocolBuffersCompiler
),ProtocolBuffers
, andProtocolBuffersSDK
)ProtocolBuffersSDK
), cf. recommendation from https://github.com/onnx/onnx/blob/v1.17.0/README.md#linuxProtocolBuffers
.Over time, these packages could replace
protoc_jll
.