Page MenuHomePhabricator

Add protobuf with corrected cmake build
ClosedPublic

Authored by jon on Apr 27 2022, 2:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 1:23 AM
Unknown Object (File)
Wed, Nov 27, 11:12 PM
Unknown Object (File)
Sun, Nov 24, 8:03 AM
Unknown Object (File)
Sun, Nov 24, 7:54 AM
Unknown Object (File)
Sun, Nov 24, 7:25 AM
Unknown Object (File)
Sun, Nov 17, 9:53 PM
Unknown Object (File)
Fri, Nov 15, 11:31 PM
Unknown Object (File)
Fri, Nov 15, 11:31 PM

Details

Summary

Unfortunately the protobuf 3.15 available in nix is using
an autotool build, which doesn't install the required protobuf-config.cmak
required by grpc to find the related package.

Upstreamed PR: https://github.com/NixOS/nixpkgs/pull/169497

Depends on D3793

Test Plan

nix build .#protobuf_3_15_cmake

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested changes to this revision.May 2 2022, 12:42 PM
varun added inline comments.
nix/cmake-install-path.patch
1–32 ↗(On Diff #12015)

should this file be in this diff?

This revision now requires changes to proceed.May 2 2022, 12:42 PM
nix/cmake-install-path.patch
1–32 ↗(On Diff #12015)

ah wait i see how it's used now

jon added inline comments.
nix/cmake-install-path.patch
1–32 ↗(On Diff #12015)

Yep, used in patches of the other file

jon marked an inline comment as done.
varun requested changes to this revision.May 11 2022, 11:00 AM

I see in your test plan that nix build .#protobuf_3_15_cmake works, but were you able to link the build output successfully? i.e. did you try building one of the services that depends on that package?

This revision now requires changes to proceed.May 11 2022, 11:00 AM

I don't think I was able to test it with nix develop and doing an impure workflow. Nix packaging is to come.

Remove cross compilation logic, likely unneeded

This revision is now accepted and ready to land.May 12 2022, 9:12 AM
This revision now requires review to proceed.May 12 2022, 9:12 AM
This revision is now accepted and ready to land.May 12 2022, 12:54 PM
This revision was automatically updated to reflect the committed changes.