diff --git a/19909.patch b/19909.patch new file mode 100644 index 0000000..3c91aba --- /dev/null +++ b/19909.patch @@ -0,0 +1,38 @@ +From 8c96a1f742335bca283aae418763aaba62c03378 Mon Sep 17 00:00:00 2001 +From: Ilhan Polat +Date: Thu, 18 Jan 2024 14:47:42 +0100 +Subject: [PATCH] MAINT:linalg:Adjust lwork/liwork changes OpenBLAS 0.3.26 + +See https://github.com/Reference-LAPACK/lapack/pull/942 +--- + scipy/linalg/flapack_sym_herm.pyf.src | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/scipy/linalg/flapack_sym_herm.pyf.src b/scipy/linalg/flapack_sym_herm.pyf.src +index f07dbaecbc72..af04e0d8d8d8 100644 +--- a/scipy/linalg/flapack_sym_herm.pyf.src ++++ b/scipy/linalg/flapack_sym_herm.pyf.src +@@ -762,8 +762,8 @@ subroutine syevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z,m + optional,intent(in) :: vl=0.0 + optional,intent(in),check(vu>=vl),depend(vl) :: vu=1.0 + intent(in) :: abstol=0.0 +- integer optional,intent(in),depend(n),check(lwork>=max(1,26*n)||lwork==-1) :: lwork=max(26*n,1) +- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n) ++ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,26*n))||lwork==-1) :: lwork=max(26*n,1) ++ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n) + + integer intent(hide),depend(a) :: n=shape(a,0) + integer intent(hide),depend(n) :: lda=max(1,n) +@@ -832,9 +832,9 @@ subroutine heevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z, + optional,intent(in) :: vl=0.0 + optional,intent(in),check(vu>vl),depend(vl) :: vu=1.0 + intent(in) :: abstol=0.0 +- integer optional,intent(in),depend(n),check(lwork>=max(2*n,1)||lwork==-1) :: lwork=max(2*n,1) +- integer optional,intent(in),depend(n),check(lrwork>=max(24*n,1)||lrwork==-1) :: lrwork=max(24*n,1) +- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n) ++ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,2*n))||lwork==-1) :: lwork=max(2*n,1) ++ integer optional,intent(in),depend(n),check(lrwork>=(n <= 1 ? 1 : max(1,24*n))||lrwork==-1) :: lrwork=max(24*n,1) ++ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n) + + integer intent(hide),depend(a) :: n=shape(a,0) + integer intent(hide),depend(n) :: lda=max(1,n) diff --git a/scipy.spec b/scipy.spec index 62b3637..abb6025 100644 --- a/scipy.spec +++ b/scipy.spec @@ -15,7 +15,7 @@ Summary: Scientific Tools for Python Name: scipy Version: 1.9.3 -Release: 1%{?dist} +Release: 2%{?dist} # BSD -- whole package except: # Boost -- scipy/special/cephes/scipy_iv.c @@ -23,6 +23,7 @@ Release: 1%{?dist} License: BSD and Boost and Public Domain Url: http://www.scipy.org/scipylib/index.html Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz +Patch: 19909.patch BuildRequires: fftw-devel, suitesparse-devel BuildRequires: %{blaslib}-devel @@ -183,6 +184,10 @@ popd %endif %changelog +* Wed Apr 09 2025 Pavel Simovec - 1.9.3-2 +- Apply upstream patch: MAINT:linalg:Adjust lwork/liwork changes OpenBLAS 0.3.26 +- Resolves: RHEL-70908 + * Mon Oct 07 2024 Pavel Simovec - 1.9.3-1 - Update to 1.9.3 - Resolves: RHEL-5600