commit:     8f77fd4e3a06c3e471f888bd11cf3213deb026f4
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 31 05:48:42 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 06:44:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f77fd4e

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 <eschwartz <AT> gentoo.org>

 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 60ea176de507..5bf2adb76e24 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 af90d2bd84ad..80b83ea4e36c 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 af90d2bd84ad..80b83ea4e36c 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

Reply via email to