-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild libabseil20240722 grpc165 libprotobuf5275 0 1 h023473 (#107)
automerged PR by conda-forge/automerge-action
- Loading branch information
Showing
12 changed files
with
136 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.ci_support/migrations/libabseil20240722_grpc165_libprotobuf5275.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
__migrator: | ||
build_number: 1 | ||
commit_message: Rebuild for libabseil 20240722, libgrp 1.65 & libprotobuf 5.27.5 | ||
kind: version | ||
migration_number: 1 | ||
exclude: | ||
- abseil-cpp | ||
- grpc-cpp | ||
- libprotobuf | ||
- protobuf | ||
- re2 | ||
libabseil: | ||
- 20240722 | ||
libgrpc: | ||
- "1.65" | ||
libprotobuf: | ||
- 5.27.5 | ||
migrator_ts: 1727040240.8650293 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
diff --git a/src/frontends/onnx/frontend/src/frontend.cpp b/src/frontends/onnx/frontend/src/frontend.cpp | ||
index d4b83fee20..f352c07894 100644 | ||
--- a/src/frontends/onnx/frontend/src/frontend.cpp | ||
+++ b/src/frontends/onnx/frontend/src/frontend.cpp | ||
@@ -2,14 +2,16 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
-#include <google/protobuf/port_def.inc> | ||
+#include <google/protobuf/runtime_version.h> | ||
+ | ||
#if PROTOBUF_VERSION >= 4022000 // protobuf 4.22 | ||
# define OV_PROTOBUF_ABSL_IS_USED | ||
#endif | ||
-#include <google/protobuf/port_undef.inc> | ||
|
||
-#ifndef OV_PROTOBUF_ABSL_IS_USED | ||
-# include <google/protobuf/stubs/logging.h> | ||
+#ifdef OV_PROTOBUF_ABSL_IS_USED | ||
+# include <absl/log/globals.h> | ||
+#else | ||
+# include <google/protobuf/stubs/logging.h> | ||
#endif | ||
|
||
#include <fstream> | ||
@@ -45,7 +47,9 @@ ONNX_FRONTEND_C_API void* get_front_end_data() { | ||
}; | ||
#ifndef OPENVINO_DEBUG_ENABLE | ||
// disable protobuf logging | ||
-# ifndef OV_PROTOBUF_ABSL_IS_USED | ||
+# ifdef OV_PROTOBUF_ABSL_IS_USED | ||
+ absl::SetGlobalVLogLevel(0); | ||
+# else | ||
google::protobuf::SetLogHandler(nullptr); | ||
# endif | ||
#endif | ||
diff --git a/src/frontends/paddle/src/frontend.cpp b/src/frontends/paddle/src/frontend.cpp | ||
index c6febe0843..6b8be8c5c8 100644 | ||
--- a/src/frontends/paddle/src/frontend.cpp | ||
+++ b/src/frontends/paddle/src/frontend.cpp | ||
@@ -4,14 +4,16 @@ | ||
|
||
#include "openvino/frontend/paddle/frontend.hpp" | ||
|
||
-#include <google/protobuf/port_def.inc> | ||
+#include <google/protobuf/runtime_version.h> | ||
+ | ||
#if PROTOBUF_VERSION >= 4022000 // protobuf 4.22 | ||
# define OV_PROTOBUF_ABSL_IS_USED | ||
#endif | ||
-#include <google/protobuf/port_undef.inc> | ||
|
||
-#ifndef OV_PROTOBUF_ABSL_IS_USED | ||
-# include <google/protobuf/stubs/logging.h> | ||
+#ifdef OV_PROTOBUF_ABSL_IS_USED | ||
+# include <absl/log/globals.h> | ||
+#else | ||
+# include <google/protobuf/stubs/logging.h> | ||
#endif | ||
|
||
#include <fstream> | ||
@@ -594,7 +596,9 @@ PADDLE_C_API void* get_front_end_data() { | ||
|
||
#ifndef OPENVINO_DEBUG_ENABLE | ||
// disable protobuf logging | ||
-# ifndef OV_PROTOBUF_ABSL_IS_USED | ||
+# ifdef OV_PROTOBUF_ABSL_IS_USED | ||
+ absl::SetGlobalVLogLevel(0); | ||
+# else | ||
google::protobuf::SetLogHandler(nullptr); | ||
# endif | ||
#endif | ||
diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake | ||
index 9d7b16aeb8..40af5fff2d 100644 | ||
--- a/thirdparty/dependencies.cmake | ||
+++ b/thirdparty/dependencies.cmake | ||
@@ -325,17 +325,7 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND | ||
# try to find newer version first (major is changed) | ||
# see https://protobuf.dev/support/version-support/ and | ||
# https://github.com/protocolbuffers/protobuf/commit/d61f75ff6db36b4f9c0765f131f8edc2f86310fa | ||
- find_package(Protobuf 4.22.0 QUIET CONFIG) | ||
- if(Protobuf_FOUND) | ||
- # protobuf was found via CONFIG mode, let's save it for later usage in OpenVINOConfig.cmake static build | ||
- set(protobuf_config CONFIG) | ||
- else() | ||
- if(OV_VCPKG_BUILD) | ||
- set(protobuf_config CONFIG) | ||
- endif() | ||
- # otherwise, fallback to existing default | ||
- find_package(Protobuf 3.20.3 REQUIRED ${protobuf_config}) | ||
- endif() | ||
+ find_package(Protobuf QUIET CONFIG) | ||
|
||
# with newer protobuf versions (4.22 and newer), we use CONFIG first | ||
# so, the Protobuf_PROTOC_EXECUTABLE variable must be checked explicitly, |