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

protobuf: Fix namespace conflict #6927

Merged
merged 1 commit into from Feb 21, 2021

Conversation

jbroadus
Copy link
Contributor

Protobuf 3.15 adds a namespace alias for "pb" that conflicts with
Clementine's. Modify Clementine to use "cpb".

Patch provided by @ahesford

Reference: https://github.com/protocolbuffers/protobuf/blob/5c028d6cf42e426d47f5baa6ea3f0f5c86b97beb/src/google/protobuf/port.h#L44

Fixes #6926

@jbroadus
Copy link
Contributor Author

@mbruel Will this require changes to the remote as well?

@hatstand
Copy link
Contributor

@mbruel Will this require changes to the remote as well?

I don't think it will as that has its own copy of the protos and specifies java_package anyway.

Protobuf 3.15 adds a namespace alias for "pb" that conflicts with
Clementine's. Modify Clementine to use "cpb".

Patch provided by @ahesford

Reference: https://github.com/protocolbuffers/protobuf/blob/5c028d6cf42e426d47f5baa6ea3f0f5c86b97beb/src/google/protobuf/port.h#L44
@jbroadus
Copy link
Contributor Author

Fixed the formatting issues.

@hatstand hatstand merged commit 1a3828e into clementine-player:master Feb 21, 2021
@jbroadus jbroadus deleted the fix-protobuf-namespace branch February 21, 2021 20:49
@mbruel
Copy link
Contributor

mbruel commented Feb 22, 2021

@jbroadus what's the conflict exactly?
The pb::remote namespace is still available right?

orivej-nixos pushed a commit to NixOS/nixpkgs that referenced this pull request Mar 25, 2021
Upstream has fixed but has not released compatibility with 3.15 in
clementine-player/Clementine#6927
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of pb namespace incompatible with protobuf 3.15.0
3 participants