-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
python3.pkgs.protobuf: fix build after updating protobuf to 3.23.4 #248231
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 = true
set 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/
)