Page MenuHomePhabricator

[Tunnelbroker] Force finding protobuf config
ClosedPublic

Authored by jon on Sep 14 2022, 11:46 AM.
Tags
None
Referenced Files
F2849604: D5139.id16861.diff
Mon, Sep 30, 9:20 AM
F2849369: D5139.diff
Mon, Sep 30, 7:34 AM
Unknown Object (File)
Tue, Sep 24, 2:49 PM
Unknown Object (File)
Fri, Sep 20, 1:59 AM
Unknown Object (File)
Fri, Sep 6, 12:23 AM
Unknown Object (File)
Mon, Sep 2, 3:10 PM
Unknown Object (File)
Aug 11 2024, 4:20 PM
Unknown Object (File)
Aug 11 2024, 4:20 PM

Details

Summary

Headers from homebrew's protobuf were still being found.
Force find_library to find the related cmake CONFIG which should expose the
correct targets instead of just the library

example: https://buildkite.com/comm/tunnelbroker-unittests/builds/3

Test Plan

Tunnelbroker CI passes

Diff Detail

Repository
rCOMM Comm
Branch
jonringer/test-tunnelbroker-harbormaster
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

https://buildkite.com/comm/tunnelbroker-unittests/builds/5#01833d54-b683-4e52-8df1-ceaed0d53d3e is still failing. For some reason /opt/homebrew/include/google/protobuf/message.h is still getting picked up, which sets the PROTOBUF_VERSION, and so when our generated files are consumed, it will cause this to fail:

#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
This revision is now accepted and ready to land.Sep 15 2022, 8:36 AM