From 9e41fa9ac8c50af79e306af7e6ca2806d5adcfc7 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 10 May 2025 03:18:16 +0100 Subject: [PATCH] dev-python/pyicu: fix build w/ gcc-15 Closes: https://bugs.gentoo.org/954147 Thanks-to: Bernd Feige Signed-off-by: Sam James --- .../pyicu/files/pyicu-2.15.2-gcc15.patch | 21 +++++++++++++++++++ dev-python/pyicu/pyicu-2.15.2.ebuild | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch 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 0000000000000..aa95cd0b55511 --- /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 +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::value); \ ++ static_assert(std::is_trivially_copyable::value); \ + static_assert(std::is_standard_layout::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 f8ccc48a7ac5e..dc92e8cf06eb2 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() {