gentoo/dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch
Sam James 9e41fa9ac8
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>
2025-05-10 03:18:16 +01:00

22 lines
658 B
Diff

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