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
closure size: protobuf depends on C++ compiler #73919
Comments
The problem is most likely with |
My solution: # https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/protobuf/generic-v3.nix
postConfigure = ''
sed -i -e 's/ -g / /g' Makefile src/Makefile gmock/make/Makefile googletest/make/Makefile
''; Seems hacky. |
It seems like upstream also doesn't want to use "-g": |
I also don't get why |
Hey all, on my system, I have protobuf in my store and:
gcc-lib is there but I don't think that's as bad as having clang there right? |
I would very much like to NOT disable I have had various protobuf related crashes, and using Alternative suggestion: Both the issue description and @doronbehar's post above suggest that this problem exists only on Darwin, and that on Linux the closure is not big. Could we make this change a Darwin-only workaroud? |
For completeness of linking issues, protocolbuffers/protobuf#6941 (comment) suggests that upstream is not quite sure which flags they want. |
The last time I checked, on Linux it included |
This said, "Making dontStrip work only sometimes" might be bad. Is there any other way to remove those |
That seems to be fixed now:
Only depends on |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
Needs update from @neongreen whether based on the findings above, it'd be acceptable for him to make this change Darwin-only. |
I don't mind it being a Darwin-only workaround if it's not an issue on Linux anymore. |
It's not:
|
I marked this as stale due to inactivity. → More info |
Describe the bug
Look at
nixpkgs.protobuf
:How big is the closure? 700 MB
Why? Because it depends on clang (on macOS, at least)
Metadata
The text was updated successfully, but these errors were encountered: