commit:     8ca9fa4e05dea29e5e3f2685b54b09d600a8c2b2
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed Sep  4 08:32:42 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep  4 08:39:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca9fa4e

net-libs/grpc: fix build against abseil-cpp-20240722.0

Closes: https://bugs.gentoo.org/939015
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/38422
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/grpc/files/grpc-1.65.0-vlog.patch | 17 +++++++++++++++++
 net-libs/grpc/grpc-1.65.1.ebuild           |  1 +
 2 files changed, 18 insertions(+)

diff --git a/net-libs/grpc/files/grpc-1.65.0-vlog.patch 
b/net-libs/grpc/files/grpc-1.65.0-vlog.patch
new file mode 100644
index 000000000000..e57c0ba222b3
--- /dev/null
+++ b/net-libs/grpc/files/grpc-1.65.0-vlog.patch
@@ -0,0 +1,17 @@
+
+Fix build with abseil-cpp-20240722.0 which no longer implicitly
+includes absl/log/vlog_is_on.h
+
+See: https://github.com/abseil/abseil-cpp/releases/tag/20240722.0
+Bug: https://bugs.gentoo.org/939015
+
+--- grpc-1.65.1/src/core/util/log.cc~  2024-07-17 00:53:49.000000000 +0200
++++ grpc-1.65.1/src/core/util/log.cc   2024-09-04 09:28:18.494476262 +0200
+@@ -19,6 +19,7 @@
+ #include <grpc/support/port_platform.h>
+ 
+ #include "absl/log/log.h"
++#include "absl/log/vlog_is_on.h"
+ 
+ #include <stdio.h>
+ #include <string.h>

diff --git a/net-libs/grpc/grpc-1.65.1.ebuild b/net-libs/grpc/grpc-1.65.1.ebuild
index 448a008c7796..3fbe1dcd6309 100644
--- a/net-libs/grpc/grpc-1.65.1.ebuild
+++ b/net-libs/grpc/grpc-1.65.1.ebuild
@@ -56,6 +56,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}/${PN}-1.65.0-system-gtest.patch"
+       "${FILESDIR}/${PN}-1.65.0-vlog.patch"
 )
 
 python_check_deps() {

Reply via email to