Skip to content
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

Remove EXACT protobuf dependency on 3.21.4 #10113

Closed

Conversation

karteekmurthys
Copy link
Contributor

Fixes: #10112

@karteekmurthys karteekmurthys requested a review from kgpai June 7, 2024 18:33
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 7, 2024
Copy link

netlify bot commented Jun 7, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 4e0d55e
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/666352690c6f1f0008095a1f

Copy link
Collaborator

@assignUser assignUser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not actually fix the issue, it just circumvents building protobuf from scratch. As I mentioned in the issue I am not sure if we still need the exact pin, so the change might be ok in general but I can't judge that.

@karteekmurthys
Copy link
Contributor Author

This does not actually fix the issue, it just circumvents building protobuf from scratch. As I mentioned in the issue I am not sure if we still need the exact pin, so the change might be ok in general but I can't judge that.

@kgpai let me know if this change to mark EXACT required or can we remove it.

-- Could NOT find Protobuf: Found unsuitable version "3.21.12", but required is exact version "3.21.4" (found /opt/homebrew/lib/libprotobuf.dylib)
-- Building Protobuf from source
-- 
-- 3.21.4.0
-- Using BUNDLED Protobuf
-- Setting simdjson source to AUTO

@majetideepak
Copy link
Collaborator

We still need 3.21 as 3.22 onwards has breaking changes afaik.
Will using resolve_dependency(Protobuf 3.21 EXACT) help?

@assignUser
Copy link
Collaborator

assignUser commented Jun 8, 2024

As we bumped the cmake version we can now use a range:

A version range with the format versionMin...[<]versionMax where versionMin and versionMax have the same format and constraints on components being integers as the single version. By default, both end points are included. By specifying <, the upper end point will be excluded. Version ranges are only supported with CMake 3.19 or later.

So resolve_dependency(Protobuf 3...<4) should work as v22 is actually 4.22

Edit: it also might be good to confirm that we actually not compatible with 22+ ^^

@majetideepak
Copy link
Collaborator

So resolve_dependency(Protobuf 3...<4) should work as v22 is actually

The quick fix for now is to use this. I agree that we should confirm support for v22+. I will try that after we move to Centos9.

@majetideepak
Copy link
Collaborator

majetideepak commented Jun 10, 2024

I also see a security issue against 3.21.4. We should update the minimum version to 3.21.7. #3136.

@assignUser
Copy link
Collaborator

#10133 I'll open a PR with the version range and minversion bump

@assignUser
Copy link
Collaborator

@karteekmurthys this should fix your issue, could you confirm? #10134

facebook-github-bot pushed a commit that referenced this pull request Jun 21, 2024
Summary:
Fixes: #3136 and improves issues with the EXACT version called out in #10113

Pull Request resolved: #10134

Reviewed By: kgpai

Differential Revision: D58825444

Pulled By: bikramSingh91

fbshipit-source-id: be81ba00b5fdce54419216edbf9c35d8d36edaaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protobuf 3.21.4 is compiled instead of using system protobuf
4 participants