treewide: unpin protobuf_21 where possible#339631
treewide: unpin protobuf_21 where possible#339631alyssais wants to merge 4 commits intoNixOS:masterfrom
Conversation
|
Marble should be OK, Python needs some care to ensure there's no random protobuf version conflicts when you use any two ML packages, no opinion on the rest. |
Even though we're still using the same version of the Python protobuf library, and just changing the C++ one? |
There was a problem hiding this comment.
The matching protobuf version should be taken from passthru https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/protobuf/4.nix#L119
There was a problem hiding this comment.
Ah thanks! How does that look?
I remember it exploding somehow for some weird reason. |
|
@SuperSandro2000 do you know what I'm supposed to do now that python3Packages.protobuf is protobuf 5 in staging, which does not have a |
|
Mhhh, we no longer build it directly from protobuf and just use the pypi download. So I would just use pkgs.protobuf and test if that works. |
|
So just go back to what I was doing before? |
|
Yeah, probably 😅 sorry about the back and forth. Didn't think about that change. |
|
no worries |
|
Seems like python3Packages.onnx is broken on staging by the protobuf upgrade anyway, so I'll fix it there first and then we can come back to this. |
|
I've just dropped the python3Packages.onnx change from this PR, so it doesn't have to hold the rest back. It seems like it will be some time before it can be fixed on staging, due to #340252 (comment). |
Description of changes
Motivation: protobuf_21 doesn't build with musl 1.2.5. (See #229439.)
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.