diff options
Diffstat (limited to 'biology/ncbi-blast+/files')
-rw-r--r-- | biology/ncbi-blast+/files/patch-grpc | 26 | ||||
-rw-r--r-- | biology/ncbi-blast+/files/patch-src_serial_grpc__integration_grpc__integration.cpp | 32 |
2 files changed, 32 insertions, 26 deletions
diff --git a/biology/ncbi-blast+/files/patch-grpc b/biology/ncbi-blast+/files/patch-grpc deleted file mode 100644 index 22e9dc6aee66..000000000000 --- a/biology/ncbi-blast+/files/patch-grpc +++ /dev/null @@ -1,26 +0,0 @@ ---- src/serial/grpc_integration/grpc_integration.cpp.orig 2023-05-18 18:14:23 UTC -+++ src/serial/grpc_integration/grpc_integration.cpp -@@ -113,23 +113,8 @@ static CGRPCInitializer s_GRPCInitializer; - grpc::Server::GlobalCallbacks* volatile CGRPCInitializer::sm_ServerCallbacks; - static CGRPCInitializer s_GRPCInitializer; - --extern "C" { -- static void s_NCBI_GPR_Log_Function(gpr_log_func_args *args) { -- static const char* unk_func = g_DiagUnknownFunction(); -- CDiagCompileInfo diag_info(args->file, args->line, unk_func, "GRPC"); -- EDiagSev sev = eDiag_Error; -- switch (args->severity) { -- case GPR_LOG_SEVERITY_DEBUG: sev = eDiag_Trace; break; -- case GPR_LOG_SEVERITY_INFO: sev = eDiag_Info; break; -- case GPR_LOG_SEVERITY_ERROR: sev = eDiag_Error; break; -- } -- CNcbiDiag(diag_info) << Severity(sev) << args->message << Endm; -- } --} -- - CGRPCInitializer::CGRPCInitializer(void) - { -- gpr_set_log_function(s_NCBI_GPR_Log_Function); - sm_ServerCallbacks = new CGRPCServerCallbacks; - grpc::Server::SetGlobalCallbacks(sm_ServerCallbacks); - // NB: on the client side, we encourage the use of diff --git a/biology/ncbi-blast+/files/patch-src_serial_grpc__integration_grpc__integration.cpp b/biology/ncbi-blast+/files/patch-src_serial_grpc__integration_grpc__integration.cpp new file mode 100644 index 000000000000..18f4558d0310 --- /dev/null +++ b/biology/ncbi-blast+/files/patch-src_serial_grpc__integration_grpc__integration.cpp @@ -0,0 +1,32 @@ +--- src/serial/grpc_integration/grpc_integration.cpp.orig 2025-07-22 11:26:40 UTC ++++ src/serial/grpc_integration/grpc_integration.cpp +@@ -87,21 +87,6 @@ static CNCBILogSink s_NCBILogSink; + + #else //ABSEIL_LOG + +-extern "C" { +- static void s_NCBI_GPR_Log_Function(gpr_log_func_args *args) { +- static const char* unk_func = ncbi::g_DiagUnknownFunction(); +- ncbi::CDiagCompileInfo diag_info(args->file, args->line, unk_func, "GRPC"); +- ncbi::EDiagSev sev = ncbi::eDiag_Error; +- switch (args->severity) { +- case GPR_LOG_SEVERITY_DEBUG: sev = ncbi::eDiag_Trace; break; +- case GPR_LOG_SEVERITY_INFO: sev = ncbi::eDiag_Info; break; +- case GPR_LOG_SEVERITY_ERROR: sev = ncbi::eDiag_Error; break; +- } +- ncbi::CNcbiDiag(diag_info) << ncbi::Severity(sev) << args->message << ncbi::Endm; +- } +-} +-#define GPR_SET_LOG_FUNCION gpr_set_log_function(s_NCBI_GPR_Log_Function) +- + #endif //ABSEIL_LOG + #endif //HAVE_LIBGRPC + +@@ -172,7 +157,6 @@ CGRPCInitializer::CGRPCInitializer(void) + + CGRPCInitializer::CGRPCInitializer(void) + { +- GPR_SET_LOG_FUNCION; + sm_ServerCallbacks = new CGRPCServerCallbacks; + grpc::Server::SetGlobalCallbacks(sm_ServerCallbacks); + // NB: on the client side, we encourage the use of |