Date: Mon, 14 Oct 2024 05:32:51 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 1b7a343fb754 - main - biology/ncbi-blast+: Fix build with grpc 1.67.0+ Message-ID: <202410140532.49E5Wpgh074203@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b7a343fb754b2a836a199b51c4cebb36fcb1fdc commit 1b7a343fb754b2a836a199b51c4cebb36fcb1fdc Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-10-14 05:09:36 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-10-14 05:26:28 +0000 biology/ncbi-blast+: Fix build with grpc 1.67.0+ --- biology/ncbi-blast+/files/patch-grpc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/biology/ncbi-blast+/files/patch-grpc b/biology/ncbi-blast+/files/patch-grpc new file mode 100644 index 000000000000..22e9dc6aee66 --- /dev/null +++ b/biology/ncbi-blast+/files/patch-grpc @@ -0,0 +1,26 @@ +--- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410140532.49E5Wpgh074203>