commit: ae86d7ab3871e5ebe8f54d4b751f84470b43c9f9 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Sun Mar 3 22:00:38 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Mar 3 23:18:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae86d7ab
dev-python/thriftpy2: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/857105 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/thriftpy2/thriftpy2-0.4.20.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/thriftpy2/thriftpy2-0.4.20.ebuild b/dev-python/thriftpy2/thriftpy2-0.4.20.ebuild index 7fb9eb1ee949..732ec5cfd189 100644 --- a/dev-python/thriftpy2/thriftpy2-0.4.20.ebuild +++ b/dev-python/thriftpy2/thriftpy2-0.4.20.ebuild @@ -7,7 +7,7 @@ DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 pypi +inherit distutils-r1 flag-o-matic pypi DESCRIPTION="Pure python approach of Apache Thrift" HOMEPAGE=" @@ -33,6 +33,18 @@ BDEPEND=" distutils_enable_tests pytest +src_compile() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/857105 + # https://github.com/Thriftpy/thriftpy2/issues/246 + # + # Don't trust this to LTO + append-flags -fno-strict-aliasing + filter-lto + + distutils-r1_src_compile +} + python_test() { local EPYTEST_DESELECT=( tests/test_tornado.py::TornadoRPCTestCase::test_asynchronous_exception
