[scipy] Add patch to fix segfaul in test of sgeqrf

Orion Poplawski orion at fedoraproject.org
Mon Apr 15 23:42:16 UTC 2013


commit db1d7ef0629da288d06c74b1eba5cac830215903
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Mon Apr 15 17:42:13 2013 -0600

    Add patch to fix segfaul in test of sgeqrf

 scipy-gerqf.patch |   12 ++++++++++++
 scipy.spec        |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/scipy-gerqf.patch b/scipy-gerqf.patch
new file mode 100644
index 0000000..cf93c0e
--- /dev/null
+++ b/scipy-gerqf.patch
@@ -0,0 +1,12 @@
+diff -up scipy-0.12.0/scipy/linalg/flapack.pyf.src.gerqf scipy-0.12.0/scipy/linalg/flapack.pyf.src
+--- scipy-0.12.0/scipy/linalg/flapack.pyf.src.gerqf	2013-04-06 10:10:35.000000000 -0600
++++ scipy-0.12.0/scipy/linalg/flapack.pyf.src	2013-04-15 17:03:37.290059000 -0600
+@@ -650,7 +650,7 @@ interface
+      <ftype> dimension(m,n),intent(in,out,copy,out=qr,aligned8) :: a
+      <ftype> dimension(MIN(m,n)),intent(out) :: tau
+ 
+-     integer optional,intent(in),depend(n),check(lwork>=m||lwork==-1) :: lwork=3*m
++     integer optional,intent(in),depend(m),check(lwork>=m||lwork==-1) :: lwork=3*m
+      <ftype> dimension(MAX(lwork,1)),intent(out),depend(lwork) :: work
+      integer intent(out) :: info
+    end subroutine <prefix>gerqf
diff --git a/scipy.spec b/scipy.spec
index 286df8d..2d8bd08 100644
--- a/scipy.spec
+++ b/scipy.spec
@@ -16,12 +16,14 @@
 Summary: Scipy: Scientific Tools for Python
 Name: scipy
 Version: 0.12.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 Group: Development/Libraries
 License: BSD and LGPLv2+
 Url: http://www.scipy.org
 Source0: http://downloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz
+# Fix definition on gerqf that caused test segfault
+Patch0:  scipy-gerqf.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: numpy, python-devel,f2py
@@ -69,6 +71,7 @@ leading scientists and engineers.
 
 %prep
 %setup -q
+%patch0 -p1 -b .gerqf
 cat > site.cfg << EOF
 
 [amd]
@@ -145,6 +148,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif # with_python3
 
 %changelog
+* Mon Apr 15 2013 Orion Poplawski <orion at cora.nwra.com> - 0.12.0-2
+- Add patch to fix segfaul in test of sgeqrf
+
 * Wed Apr 10 2013 Orion Poplawski <orion at cora.nwra.com> - 0.12.0-1
 - Update to 0.12.0 final
 - No longer remove weave from python3 build


More information about the scm-commits mailing list