Page MenuHomePhabricator

[Tunnelbroker] Force finding protobuf config
ClosedPublic

Authored by jon on Sep 14 2022, 11:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 18, 8:52 PM
Unknown Object (File)
Tue, Mar 18, 8:52 PM
Unknown Object (File)
Tue, Mar 18, 8:51 PM
Unknown Object (File)
Tue, Mar 18, 8:22 PM
Unknown Object (File)
Mon, Mar 17, 4:14 AM
Unknown Object (File)
Mon, Mar 3, 4:27 PM
Unknown Object (File)
Thu, Feb 27, 5:08 PM
Unknown Object (File)
Jan 27 2025, 3:55 AM

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