python3.pkgs.protobuf: fix build after updating protobuf to 3.23.4#248231
python3.pkgs.protobuf: fix build after updating protobuf to 3.23.4#248231FRidh merged 1 commit intoNixOS:staging-nextfrom tjni:protobuf
Conversation
|
Result of 170 packages marked as broken and skipped:
4084 packages failed to build:
|
|
🤯 How were you able to run nixpkgs-review against staging? 🥇 Do you have some error messages? I don't have x86_64-linux, but I can perhaps cherry-pick the relevant changes onto master and run them on an aarch64-linux VM. |
|
Sorry, I did it without thinking.😅 |
|
No problem! Thank you for all your help reviewing. |
tobim
left a comment
There was a problem hiding this comment.
Thanks for fixing this so quickly!
|
Retargeted against staging-next: #248496 |
|
Doesn't build with GCC because it forces c++14: https://github.com/protocolbuffers/protobuf/blob/2eee41224e2eac1aa4e8e8f4a28ff11748e49a41/python/setup.py#L373 |
|
That's a very good catch, thank you for pointing it out. I deleted the line unconditionally (from some brief research, it seems like only really old compilers do not default to at least C++14), but we can exclude a compiler if we identify it defaults to an older version. Verified that the build used to break with GCC and now it passes. |
|
Works for me on x86_64-linux. |
Description of changes
This is a follow up to #244539. The new version requires adding abseil-cpp to the include path in setup.py, adds a numpy test, and also has a change that breaks some tests that I had to disable since I couldn't figure out how to fix them.
/cc @tobim
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)