mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
21
dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch
Normal file
21
dev-python/pyicu/files/pyicu-2.15.2-gcc15.patch
Normal 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
|
||||
@@ -38,6 +38,10 @@ BDEPEND="
|
||||
|
||||
DOCS=( CHANGES CREDITS README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gcc15.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
|
||||
Reference in New Issue
Block a user