Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package boost for openSUSE:Factory checked in at 2024-07-01 11:18:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/boost (Old) and /work/SRC/openSUSE:Factory/.boost.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "boost" Mon Jul 1 11:18:28 2024 rev:167 rq:1184037 version:1.85.0 Changes: -------- --- /work/SRC/openSUSE:Factory/boost/boost.changes 2024-04-24 15:14:02.516446752 +0200 +++ /work/SRC/openSUSE:Factory/.boost.new.18349/boost.changes 2024-07-01 11:18:29.666960183 +0200 @@ -1,0 +2,5 @@ +Sat Jun 29 09:13:57 CEST 2024 - Friedrich Haubensak <hsk17@mail.de> + +- add patch boost-1.85.0-python-numpy-2.patch from upstream + +------------------------------------------------------------------- New: ---- boost-1.85.0-python-numpy-2.patch BETA DEBUG BEGIN: New: - add patch boost-1.85.0-python-numpy-2.patch from upstream BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ boost.spec ++++++ --- /var/tmp/diff_new_pack.rmcsVf/_old 2024-07-01 11:18:31.543028528 +0200 +++ /var/tmp/diff_new_pack.rmcsVf/_new 2024-07-01 11:18:31.547028673 +0200 @@ -244,6 +244,8 @@ Patch21: boost-remove-cmakedir.patch Patch22: boost-process.patch Patch23: boost-charconv-quadmath.patch +# PATCH-FIX-UPSTREAM boost-1.85.0-python-numpy-2.patch -- gh#boostorg/python/pull/432 +Patch24: boost-1.85.0-python-numpy-2.patch %{?suse_build_hwcaps_libs} BuildRequires: fdupes BuildRequires: gcc-c++ @@ -1271,6 +1273,7 @@ %patch -P 21 -p1 %patch -P 22 -p2 %patch -P 23 -p1 +%patch -P 24 -p1 %build find . -type f -exec chmod u+w {} + ++++++ boost-1.85.0-python-numpy-2.patch ++++++ https://bugs.gentoo.org/932459 https://github.com/boostorg/python/issues/431 https://github.com/boostorg/python/pull/432 From 33ac06ca59a68266d3d26edf08205d31ddab4a6c Mon Sep 17 00:00:00 2001 From: Alexis DUBURCQ <alexis.duburcq@gmail.com> Date: Fri, 15 Mar 2024 14:10:16 +0100 Subject: [PATCH] Support numpy 2.0.0b1 --- a/libs/python/src/numpy/dtype.cpp +++ b/libs/python/src/numpy/dtype.cpp @@ -98,7 +98,13 @@ python::detail::new_reference dtype::convert(object const & arg, bool align) return python::detail::new_reference(reinterpret_cast<PyObject*>(obj)); } -int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr*>(ptr())->elsize;} +int dtype::get_itemsize() const { +#if NPY_ABI_VERSION < 0x02000000 + return reinterpret_cast<PyArray_Descr*>(ptr())->elsize; +#else + return PyDataType_ELSIZE(reinterpret_cast<PyArray_Descr*>(ptr())); +#endif +} bool equivalent(dtype const & a, dtype const & b) { // On Windows x64, the behaviour described on
participants (1)
-
Source-Sync