From ef8d2693b1de0f2c4a0ceb388c1c082bb5477888 Mon Sep 17 00:00:00 2001 From: Paul Zander Date: Fri, 11 Apr 2025 12:38:25 +0200 Subject: [PATCH] net-libs/grpc: 1.71.0 conditionally apply gtest patch Patch depends on replacing the included libs from gtest/abseil-cpp. And breaks without USE=test. Signed-off-by: Paul Zander Signed-off-by: Sam James --- net-libs/grpc/grpc-1.71.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-libs/grpc/grpc-1.71.0.ebuild b/net-libs/grpc/grpc-1.71.0.ebuild index c745ed62f6b18..7a8547ed98ce0 100644 --- a/net-libs/grpc/grpc-1.71.0.ebuild +++ b/net-libs/grpc/grpc-1.71.0.ebuild @@ -73,7 +73,6 @@ BDEPEND=" " PATCHES=( - "${FILESDIR}/${PN}-1.71.0-fix-already-registered.patch" "${FILESDIR}/${PN}-1.71.0-system-gtest.patch" ) @@ -173,6 +172,9 @@ src_prepare() { # Respect EPYTHON when testing, don't touch installed files otherwise python_fix_shebang --force "${S}" + + # NOTE doesn't apply if we don't replace gtest/abseil libs + eapply "${FILESDIR}/${PN}-1.71.0-fix-already-registered.patch" fi # Called via system() by some of the C++ sources, respect EPYTHON