From 8f77fd4e3a06c3e471f888bd11cf3213deb026f4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Fri, 31 Oct 2025 01:48:42 -0400 Subject: [PATCH] dev-python/grpcio: mark as LTO-unsafe again The package was tree-cleaned, then re-added in commit f4c8a24179182239c526eda01a17eb3250c0843b without the workarounds from the pre-treeclean ebuild. Fixes: f4c8a24179182239c526eda01a17eb3250c0843b Bug: https://bugs.gentoo.org/856775 Closes: https://bugs.gentoo.org/942152 Signed-off-by: Eli Schwartz --- dev-python/grpcio/grpcio-1.75.0.ebuild | 5 +++++ dev-python/grpcio/grpcio-1.75.1.ebuild | 5 +++++ dev-python/grpcio/grpcio-1.76.0.ebuild | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/dev-python/grpcio/grpcio-1.75.0.ebuild b/dev-python/grpcio/grpcio-1.75.0.ebuild index 60ea176de5076..5bf2adb76e24e 100644 --- a/dev-python/grpcio/grpcio-1.75.0.ebuild +++ b/dev-python/grpcio/grpcio-1.75.0.ebuild @@ -59,6 +59,11 @@ src_prepare() { } src_configure() { + # -Werror=odr -Werror=lto-type-mismatch + # https://bugs.gentoo.org/856775 + # https://github.com/grpc/grpc/issues/36158 + filter-lto + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" # system abseil-cpp crashes with USE=-debug, sigh # https://bugs.gentoo.org/942021 diff --git a/dev-python/grpcio/grpcio-1.75.1.ebuild b/dev-python/grpcio/grpcio-1.75.1.ebuild index af90d2bd84ad9..80b83ea4e36c3 100644 --- a/dev-python/grpcio/grpcio-1.75.1.ebuild +++ b/dev-python/grpcio/grpcio-1.75.1.ebuild @@ -59,6 +59,11 @@ src_prepare() { } src_configure() { + # -Werror=odr -Werror=lto-type-mismatch + # https://bugs.gentoo.org/856775 + # https://github.com/grpc/grpc/issues/36158 + filter-lto + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" # system abseil-cpp crashes with USE=-debug, sigh # https://bugs.gentoo.org/942021 diff --git a/dev-python/grpcio/grpcio-1.76.0.ebuild b/dev-python/grpcio/grpcio-1.76.0.ebuild index af90d2bd84ad9..80b83ea4e36c3 100644 --- a/dev-python/grpcio/grpcio-1.76.0.ebuild +++ b/dev-python/grpcio/grpcio-1.76.0.ebuild @@ -59,6 +59,11 @@ src_prepare() { } src_configure() { + # -Werror=odr -Werror=lto-type-mismatch + # https://bugs.gentoo.org/856775 + # https://github.com/grpc/grpc/issues/36158 + filter-lto + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" # system abseil-cpp crashes with USE=-debug, sigh # https://bugs.gentoo.org/942021