dev-python/pyicu: fix build w/ gcc-15

Closes: https://bugs.gentoo.org/954147
Thanks-to: Bernd Feige <Bernd.Feige@gmx.net>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-10 03:18:16 +01:00
parent 8b3bf75cb8
commit 9e41fa9ac8
2 changed files with 25 additions and 0 deletions

View File

@@ -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 <vajda@pyicu.org>
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

View File

@@ -38,6 +38,10 @@ BDEPEND="
DOCS=( CHANGES CREDITS README.md )
PATCHES=(
"${FILESDIR}"/${P}-gcc15.patch
)
distutils_enable_tests pytest
python_test() {