-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Feature/add protobuf 3.11.3 version #5127
Merged
conan-center-bot
merged 4 commits into
conan-io:master
from
CAMOBAP:feature/add-protobuf-3.11.3-version
Apr 6, 2021
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5f1419d
[boost] Add 'algorithm' lib #3961
CAMOBAP 99b049c
Merge remote-tracking branch 'upstream/master'
CAMOBAP 89c0a21
Revert "[boost] Add 'algorithm' lib #3961"
CAMOBAP fa118a8
conan-io/conan-center-index#4806 add protobuf/3.11.3 to be used by on…
CAMOBAP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
versions: | ||
"3.9.1": | ||
folder: all | ||
"3.11.3": | ||
folder: all | ||
"3.11.4": | ||
folder: all | ||
"3.12.4": | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Typically we discourage add older versions, I see in you comment message there's a motivation... but just to confirm is it absolutely required? It should work perfectly fine with the version
3.11.4
, is it known to be unsupported?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.
@prince-chrismc I have the same vision.
I am sure that there are no specific reason why
onnxruntime
depends onprotobuf/3.11.3
but for last stable depends on this specific versionBefore I even reported ticket (to allow change protobuf version) microsoft/onnxruntime#4026 (comment) it possible to do it by changing submodule revision. I didn't tested it yet but this will force to use
git
instead ofzip
which I consider as not good solution (correct me if I'm wrong)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.
Without looking at that project, you should not require this old version based on the comment... the one that exists should be adequate
I am not sure about the second half of your comment but I can offer this bit of information...
Most often we patch projects so they can remove vendored third party and use conan instead (shouldn't be using submodules)
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.
AFAIK protobuf is special and requires the exactly the same version of the library, because generated .proto files contain version checks. if some library contains already generated .proto files (e.g. OpenCV), you can't just pick latest protobuf - it won't compile.
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.
a typical example:
https://raw.githubusercontent.com/opencv/opencv/master/modules/dnn/misc/caffe/opencv-caffe.pb.h
it doesn't allow anything besides 3.5.0 or 3.5.1, you'll need exactly that version to compile.
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.
Thanks, @SSE4 you are right,
protobuf
do "exact" version checkI just tried to say that there is no real reason why
onnxruntime
depends onprotobuf
3.11.3 but not 3.11.4, I sure they can easily migrate to 3.11.4 but I think this should be up toommxruntime
team.@SSE4 @prince-chrismc to be on the same page, adding a new "legacy" version will create extra load on conan's infrastructure which we trying to avoid, right?
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.
Thanks @SSE4 for that info!
We've avoid it because they are rarely (almost never used) in practice, this is an exception where an exact version is required so there's a motivation to have "more" offerings
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.
3.11.4 has no documented changes for C/C++, so it might be fine to use that version. Have you tried it?
https://github.com/protocolbuffers/protobuf/releases/tag/v3.11.4
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.
@Croydon AFAIR even minor version mismatch will lear to compilation error