Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-blosc2 for openSUSE:Factory 
checked in at 2026-04-23 17:09:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-blosc2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-blosc2.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-blosc2"

Thu Apr 23 17:09:56 2026 rev:14 rq:1348917 version:2.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-blosc2/python-blosc2.changes      
2025-02-27 16:40:36.459752005 +0100
+++ /work/SRC/openSUSE:Factory/.python-blosc2.new.11940/python-blosc2.changes   
2026-04-23 17:14:31.829166359 +0200
@@ -1,0 +2,6 @@
+Thu Apr 23 11:20:05 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Fix build with latest blosc2, bsc#1262566
+  Add 0001-Add-squeeze-as-view.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Add-squeeze-as-view.patch

----------(New B)----------
  New:- Fix build with latest blosc2, bsc#1262566
  Add 0001-Add-squeeze-as-view.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-blosc2.spec ++++++
--- /var/tmp/diff_new_pack.hlNqde/_old  2026-04-23 17:14:32.585197495 +0200
+++ /var/tmp/diff_new_pack.hlNqde/_new  2026-04-23 17:14:32.589197659 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-blosc2
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 License:        BSD-3-Clause
 URL:            https://github.com/Blosc/python-blosc2
 Source:         
https://files.pythonhosted.org/packages/source/b/blosc2/blosc2-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM backported from gh#Blosc/python-blosc2@f91bae77b
+Patch0:         0001-Add-squeeze-as-view.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel >= 3.10}
 BuildRequires:  %{python_module numpy-devel >= 1.20.3}
@@ -88,6 +90,8 @@
 # too large for address memory
 donttest="$donttest or (test_pack and int64)"
 %endif
+# test failing because Fatal Python error: Floating point exception
+donttest+=" or test_prefilters"
 %pytest_arch -k "not ($donttest)"
 
 %files %{python_files}

++++++ 0001-Add-squeeze-as-view.patch ++++++
>From f91bae77b3b4f4713da62852a29382481ad7ba7d Mon Sep 17 00:00:00 2001
From: lshaw8317 <[email protected]>
Date: Tue, 28 Oct 2025 12:54:02 +0100
Subject: [PATCH] Add squeeze as view

---
 CMakeLists.txt                 |  2 +-
 src/blosc2/blosc2_ext.pyx      | 38 ++++++++++++++++++++--------------
 src/blosc2/ndarray.py          | 13 +++++++++---
 tests/ndarray/test_lazyexpr.py |  3 ---
 tests/ndarray/test_squeeze.py  |  6 +++---
 5 files changed, 36 insertions(+), 26 deletions(-)

Index: blosc2-2.7.1/blosc2/blosc2_ext.pyx
===================================================================
--- blosc2-2.7.1.orig/blosc2/blosc2_ext.pyx
+++ blosc2-2.7.1/blosc2/blosc2_ext.pyx
@@ -478,8 +478,8 @@ cdef extern from "b2nd.h":
     int b2nd_to_cframe(const b2nd_array_t *array, uint8_t ** cframe, int64_t 
*cframe_len,
                        c_bool *needs_free);
 
-    int b2nd_squeeze(b2nd_array_t *array)
-    int b2nd_squeeze_index(b2nd_array_t *array, const c_bool *index)
+    int b2nd_squeeze(b2nd_array_t *array, b2nd_array_t **view)
+    int b2nd_squeeze_index(b2nd_array_t *array, b2nd_array_t **view, const 
c_bool *index)
     int b2nd_resize(b2nd_array_t *array, const int64_t *new_shape, const 
int64_t *start)
     int b2nd_copy(b2nd_context_t *ctx, b2nd_array_t *src, b2nd_array_t **array)
     int b2nd_from_schunk(blosc2_schunk *schunk, b2nd_array_t **array)
@@ -2087,7 +2087,7 @@ cdef class NDArray:
         cdef c_bool mask_[B2ND_MAX_DIM]
         for i in range(ndim):
             mask_[i] = mask[i]
-        _check_rc(b2nd_squeeze_index(array, mask_), "Error while squeezing 
sliced array")
+        _check_rc(b2nd_squeeze_index(array, &array, mask_), "Error while 
squeezing sliced array")
         ndarray = blosc2.NDArray(_schunk=PyCapsule_New(array.sc, <char *> 
"blosc2_schunk*", NULL),
                                  _array=PyCapsule_New(array, <char *> 
"b2nd_array_t*", NULL))
 
@@ -2163,7 +2163,7 @@ cdef class NDArray:
         return self
 
     def squeeze(self):
-        _check_rc(b2nd_squeeze(self.array), "Error while performing the 
squeeze")
+        _check_rc(b2nd_squeeze(self.array, &self.array), "Error while 
performing the squeeze")
         if self.array.shape[0] == 1 and self.ndim == 1:
             self.array.ndim = 0
 

Reply via email to