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, Dec 31, 3:40 PM
Unknown Object (File)
Sun, Dec 29, 1:10 AM
Unknown Object (File)
Sun, Dec 29, 1:10 AM
Unknown Object (File)
Sun, Dec 29, 1:10 AM
Unknown Object (File)
Fri, Dec 27, 8:36 AM
Unknown Object (File)
Thu, Dec 26, 11:06 AM
Unknown Object (File)
Thu, Dec 26, 11:06 AM
Unknown Object (File)
Thu, Dec 26, 11:05 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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