commit:     4586f5f9bbc3786a03d316a4a6a06175c66b362d
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 21 03:43:39 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 21 05:57:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4586f5f9

dev-python/grpcio: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/856775
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/grpcio/grpcio-1.51.0-r1.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/grpcio/grpcio-1.51.0-r1.ebuild 
b/dev-python/grpcio/grpcio-1.51.0-r1.ebuild
index c913ad233af6..d6ca281e1887 100644
--- a/dev-python/grpcio/grpcio-1.51.0-r1.ebuild
+++ b/dev-python/grpcio/grpcio-1.51.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} )
 
-inherit distutils-r1 multiprocessing prefix pypi
+inherit distutils-r1 flag-o-matic multiprocessing prefix pypi
 
 DESCRIPTION="High-performance RPC framework (python libraries)"
 HOMEPAGE="https://grpc.io";
@@ -38,6 +38,11 @@ python_prepare_all() {
 }
 
 python_configure_all() {
+       # -Werror=odr -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/856775
+       # https://github.com/grpc/grpc/issues/36158
+       filter-lto
+
        # os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', True)
        export GRPC_BUILD_WITH_BORING_SSL_ASM=
        export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1

Reply via email to