14
0
forked from pool/python-PyICU

Accepting request 1274788 from home:hsk17:branches:openSUSE:Factory:Staging:Gcc7

add pyicu-2.15-gcc15.patch to fix gcc15 compile time error

OBS-URL: https://build.opensuse.org/request/show/1274788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=46
This commit is contained in:
2025-05-06 08:02:47 +00:00
committed by Git OBS Bridge
parent b3d990a486
commit 838fb3884d
3 changed files with 36 additions and 0 deletions

29
pyicu-2.15-gcc15.patch Normal file
View File

@@ -0,0 +1,29 @@
gitlab.pyicu.org/main/pyicu/-/issues/173
gitlab.pyicu.org/main/pyicu/-/commit/82fa082
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+
---
arg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index 5cabfaf..35a7b62 100644
--- 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

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 6 08:34:17 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- Add pyicu-2.15-gcc15.patch to fix gcc15 compile time error
-------------------------------------------------------------------
Fri Apr 11 09:50:16 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -28,6 +28,8 @@ Source0: https://files.pythonhosted.org/packages/source/P/PyICU/PyICU-%{v
# PATCH-FEATURE-UPSTREAM remove_six.patch mcepl@suse.com
# Remove dependency on six
Patch0: remove_six.patch
# PATCH-FIX-UPSTREAM pyicu-2.15-gcc15.patch
Patch1: pyicu-2.15-gcc15.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}