From 838fb3884d26b7a0191d83f5df2cd5be412e2614c8919ebcdc85f59244bf4d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 6 May 2025 08:02:47 +0000 Subject: [PATCH 1/2] 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 --- pyicu-2.15-gcc15.patch | 29 +++++++++++++++++++++++++++++ python-PyICU.changes | 5 +++++ python-PyICU.spec | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pyicu-2.15-gcc15.patch diff --git a/pyicu-2.15-gcc15.patch b/pyicu-2.15-gcc15.patch new file mode 100644 index 0000000..0c44290 --- /dev/null +++ b/pyicu-2.15-gcc15.patch @@ -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 +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::value); \ ++ static_assert(std::is_trivially_copyable::value); \ + static_assert(std::is_standard_layout::value) + + _IS_POD(AnyPythonObject); +-- +GitLab + diff --git a/python-PyICU.changes b/python-PyICU.changes index 86add55..b1f0e3b 100644 --- a/python-PyICU.changes +++ b/python-PyICU.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 6 08:34:17 UTC 2025 - Friedrich Haubensak + +- Add pyicu-2.15-gcc15.patch to fix gcc15 compile time error + ------------------------------------------------------------------- Fri Apr 11 09:50:16 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-PyICU.spec b/python-PyICU.spec index 2f51eb3..1b7b845 100644 --- a/python-PyICU.spec +++ b/python-PyICU.spec @@ -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} From 938ce7e7757929fad9915e6877a3efc0e17bb8a7a736b71c9e1c77048d0dee8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 6 May 2025 11:16:54 +0000 Subject: [PATCH 2/2] Accepting request 1274848 from home:glaubitz:branches:devel:languages:python - Update to 2.15.2 * fixed calloc/free mismatch with arg::Q() uses (Fredrik Roubert) * replaced all malloc/calloc/free with std::unique_ptr - from version 2.15.1 * fixed build error missing conditional ICU < 70 in UnicodeSetIterator() * fixed Enum arg parser with broken strict aliasing rules (Jakub Wilk) * replaced all new[]/delete[] with std::unique_ptr<[]>, fixed leaks * replaced most new/delete with std::unique_ptr<>, fixed leaks - Adjust upstream source name in spec file OBS-URL: https://build.opensuse.org/request/show/1274848 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=47 --- PyICU-2.15.tar.gz | 3 --- pyicu-2.15.2.tar.gz | 3 +++ python-PyICU.changes | 13 +++++++++++++ python-PyICU.spec | 4 ++-- 4 files changed, 18 insertions(+), 5 deletions(-) delete mode 100644 PyICU-2.15.tar.gz create mode 100644 pyicu-2.15.2.tar.gz diff --git a/PyICU-2.15.tar.gz b/PyICU-2.15.tar.gz deleted file mode 100644 index b05e239..0000000 --- a/PyICU-2.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:241bf4e73851524af67fea5d94ff60bac83dd98ce3ef6fd6f2c00e07e8476c87 -size 267399 diff --git a/pyicu-2.15.2.tar.gz b/pyicu-2.15.2.tar.gz new file mode 100644 index 0000000..1344db1 --- /dev/null +++ b/pyicu-2.15.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:561e77eedff17cec6839f26211f7a5ce3c071b776e8a0ec9d1207f46cbce598f +size 267721 diff --git a/python-PyICU.changes b/python-PyICU.changes index b1f0e3b..5eb90f5 100644 --- a/python-PyICU.changes +++ b/python-PyICU.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue May 6 09:30:09 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.15.2 + * fixed calloc/free mismatch with arg::Q() uses (Fredrik Roubert) + * replaced all malloc/calloc/free with std::unique_ptr +- from version 2.15.1 + * fixed build error missing conditional ICU < 70 in UnicodeSetIterator() + * fixed Enum arg parser with broken strict aliasing rules (Jakub Wilk) + * replaced all new[]/delete[] with std::unique_ptr<[]>, fixed leaks + * replaced most new/delete with std::unique_ptr<>, fixed leaks +- Adjust upstream source name in spec file + ------------------------------------------------------------------- Tue May 6 08:34:17 UTC 2025 - Friedrich Haubensak diff --git a/python-PyICU.spec b/python-PyICU.spec index 1b7b845..55329d7 100644 --- a/python-PyICU.spec +++ b/python-PyICU.spec @@ -19,12 +19,12 @@ %global modname PyICU %{?sle15_python_module_pythons} Name: python-%{modname} -Version: 2.15 +Version: 2.15.2 Release: 0 Summary: Python Extension Wrapping the ICU C++ API License: MIT URL: https://gitlab.pyicu.org -Source0: https://files.pythonhosted.org/packages/source/P/PyICU/PyICU-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pyicu/pyicu-%{version}.tar.gz # PATCH-FEATURE-UPSTREAM remove_six.patch mcepl@suse.com # Remove dependency on six Patch0: remove_six.patch