Skip to contentSkip to conversation

grpc: point to the native protobuf compiler binary

PATCH New Denys Dmytriyenko 1 participant 1 message Jun 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grpc: point to the native protobuf compiler binary

Latest version of grpc fails to build nativesdk variant since it finds and tries to execute protoc binary from nativesdk-protobuf instead of protobuf-native. Shortcut the detection logic by pointing to the correct version of protoc binary in native sysroot.

---
 meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb +1 -0
index 7b8a25c27..958992e1e 100644
@@ -37,6 +37,7 @@ EXTRA_OECMAKE = " \
     -DgRPC_ZLIB_PROVIDER=package \
     -DgRPC_SSL_PROVIDER=package \
     -DgRPC_PROTOBUF_PROVIDER=package \
+    -D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/protoc \
     -DgRPC_ABSL_PROVIDER=package \
     -DgRPC_RE2_PROVIDER=package \
     -DgRPC_INSTALL=ON \
Signature · 1 line
2.25.1