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

pythonPackages.grpcio: fix build on Darwin #58456

Merged
merged 1 commit into from Apr 7, 2019

Conversation

danieldk
Copy link
Contributor

Motivation for this change

Builds on Darwin have started to fail recently. This seems to be caused
by a check in Makefile that verifies whether the system is able to build
BoringSSL. This check attempts to compile test/build/boringssl.c, which
is absent in PyPI archives of grpcio.

This change builds the grpcio module directly from the grpc git
repository, so that all the files that are necessary for checks are
present.

Affects #56826 since darwin builds of this derivation on nixpkgs-19.03
fail.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@danieldk danieldk requested a review from FRidh as a code owner March 27, 2019 19:02
@GrahamcOfBorg GrahamcOfBorg added the 6.topic: darwin Running or building packages on Darwin label Mar 27, 2019
@danieldk danieldk mentioned this pull request Mar 27, 2019
9 tasks
Builds on Darwin have started to fail recently. This seems to be caused
by a check in Makefile that verifies whether the system is able to build
BoringSSL. This check attempts to compile test/build/boringssl.c, which
is absent in PyPI archives of grpcio.

This change builds the grpcio module directly from the grpc git
repository, so that all the files that are necessary for checks are
present.

Affects NixOS#56826 since darwin builds of this derivation on nixpkgs-19.03
fail.
@danieldk danieldk changed the title pythonPackges.grpcio: fix build on Darwin pythonPackages.grpcio: fix build on Darwin Mar 27, 2019
@danieldk
Copy link
Contributor Author

@GrahamcOfBorg build pythonPackages.grpcio python3Packages.grpcio pythonPackages.grpcio-tools python3Packages.grpcio-tools python3Packages.tensorflow pythonPackages.tensorflow

@dotlambda
Copy link
Member

@danieldk Did you make upstream aware of this issue?

@GrahamcOfBorg build pythonPackages.grpcio python3Packages.grpcio pythonPackages.grpcio-tools python3Packages.grpcio-tools python3Packages.tensorflow pythonPackages.tensorflow

@danieldk
Copy link
Contributor Author

@dotlambda I'll do that!

@danieldk
Copy link
Contributor Author

danieldk commented Apr 2, 2019

Done in grpc/grpc#18570

averelld pushed a commit to averelld/nixpkgs that referenced this pull request Apr 7, 2019
vcunat added a commit that referenced this pull request Apr 7, 2019
@vcunat vcunat merged commit 715ec6e into NixOS:master Apr 7, 2019
@danieldk danieldk deleted the grpcio-darwin-fix branch June 4, 2019 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants