commit: 9e41fa9ac8c50af79e306af7e6ca2806d5adcfc7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat May 10 02:18:16 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat May 10 02:18:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e41fa9a
dev-python/pyicu: fix build w/ gcc-15 Closes: https://bugs.gentoo.org/954147 Thanks-to: Bernd Feige <Bernd.Feige <AT> gmx.net> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch | 21 +++++++++++++++++++++ dev-python/pyicu/pyicu-2.15.2.ebuild | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch b/dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch new file mode 100644 index 000000000000..aa95cd0b5551 --- /dev/null +++ b/dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/954147 +https://gitlab.pyicu.org/main/pyicu/-/commit/82fa082b149db81c894e0d887c0fff67c3d2826f + +From 82fa082b149db81c894e0d887c0fff67c3d2826f Mon Sep 17 00:00:00 2001 +From: Andi Vajda <[email protected]> +Date: Mon, 5 May 2025 18:55:09 -0700 +Subject: [PATCH] switch to is_trivially_copyable for sake of g++ 15+ + +--- a/arg.h ++++ b/arg.h +@@ -853,7 +853,7 @@ public: + }; + + #define _IS_POD(T) \ +- static_assert(std::is_trivial<T>::value); \ ++ static_assert(std::is_trivially_copyable<T>::value); \ + static_assert(std::is_standard_layout<T>::value) + + _IS_POD(AnyPythonObject); +-- +GitLab diff --git a/dev-python/pyicu/pyicu-2.15.2.ebuild b/dev-python/pyicu/pyicu-2.15.2.ebuild index f8ccc48a7ac5..dc92e8cf06eb 100644 --- a/dev-python/pyicu/pyicu-2.15.2.ebuild +++ b/dev-python/pyicu/pyicu-2.15.2.ebuild @@ -38,6 +38,10 @@ BDEPEND=" DOCS=( CHANGES CREDITS README.md ) +PATCHES=( + "${FILESDIR}"/${P}-gcc15.patch +) + distutils_enable_tests pytest python_test() {
