0003-disable-unconditionally-downloading-api-repos.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2a73f6439b6d745b2cbfff120dc7adc555400247 Mon Sep 17 00:00:00 2001
  2. From: Michael Nosthoff <buildroot@heine.tech>
  3. Date: Fri, 22 Jul 2022 08:49:48 +0200
  4. Subject: [PATCH] disable unconditionally downloading api repos
  5. The Buildroot build doesn't need those submodules, so disable them hard
  6. for now.
  7. See https://github.com/grpc/grpc/issues/30385
  8. Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
  9. ---
  10. CMakeLists.txt | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/CMakeLists.txt b/CMakeLists.txt
  13. index 94f8fd3e93..df43d2e193 100644
  14. --- a/CMakeLists.txt
  15. +++ b/CMakeLists.txt
  16. @@ -402,6 +402,7 @@ if(gRPC_BUILD_GRPCPP_OTEL_PLUGIN)
  17. include(cmake/opentelemetry-cpp.cmake)
  18. endif()
  19. +if(FALSE)
  20. # Setup external proto library at third_party/envoy-api with 2 download URLs
  21. if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api AND gRPC_DOWNLOAD_ARCHIVES)
  22. # Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api.
  23. @@ -478,6 +479,7 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds AND gRPC_DOWNLOAD_ARC
  24. xds-3a472e524827f72d1ad621c4983dd5af54c46776
  25. )
  26. endif()
  27. +endif()
  28. if(WIN32)
  29. set(_gRPC_ALLTARGETS_LIBRARIES ${_gRPC_ALLTARGETS_LIBRARIES} ws2_32 crypt32)
  30. --
  31. 2.34.1