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

WIP: protobuf 5.26.1 #215

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

WIP: protobuf 5.26.1 #215

wants to merge 4 commits into from

Conversation

h-vetinari
Copy link
Member

This is going to be a bigger operation I fear - just opening this PR as a status update for now. Protobuf removed the usual setup.py approach, and we now either need to deal with the PyPI sources (harder to patch) or build with bazel.

Also, the new way to build python from source seems to just rebuild a lot of stuff we already have in libprotobuf (e.g. utf8_range), and more importantly, also upb, which is also being vendored by grpc, causing potential clashes there. I had tried to avoid this in protocolbuffers/protobuf#12927 but to no avail (c.f. also #170).

The C++ backend is also removed, so I guess it's not even possible anymore to build atop of libprotobuf.

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

knedlsepp added a commit to knedlsepp/nixpkgs that referenced this pull request May 19, 2024
In order to enable bumping the default protobuf version from protobuf_24
to protobuf_25, we address the build failure of pythonPackages.protobuf
against that version.
Protobuf's python package is moving away from cpp backend in favor of a
µpb backend.
(See: https://github.com/protocolbuffers/protobuf/tree/main/upb)
The work on that seems to have lead to the introduction of a broken test
in "minimal_test.py":
protocolbuffers/protobuf@501ecec
I suspect that this is not an issue on the nixpkgs packaging end but
rather that this file is uncovered code upstream. I don't know enough
about Bazel to be sure, but it looks like that file is not part of their
protobuf/python/BUILD.bazel file.
(I wanted to prove that in
protocolbuffers/protobuf#16888 but couldn't
trigger upstream's CI)
So for now let's just skip that file.
Note that protobuf_26.tests.pythonProtobuf is still broken. This is due
to the fact that upstream removed support for building the library
directly from the GitHub repo. (See:
protocolbuffers/protobuf#15708)
Conda packaging is also currently struggling with this:
conda-forge/protobuf-feedstock#215

Related: NixOS#264902
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.

None yet

1 participant