Patch to fix data save problem (more info in spec changelog).

This commit is contained in:
Quentin Spencer 2005-05-27 15:32:26 +00:00
parent 616baf9e85
commit 5658726e53
2 changed files with 30 additions and 1 deletions

24
octave-2.1.71-save.patch Normal file
View File

@ -0,0 +1,24 @@
src/ChangeLog:
2005-05-27 John W. Eaton <jwe@octave.org>
* ls-mat5.cc (save_mat5_binary_element): Extract complex N-d
array, not matrix.
Index: src/ls-mat5.cc
===================================================================
RCS file: /usr/local/cvsroot/octave/src/ls-mat5.cc,v
retrieving revision 1.8.2.5
diff -u -r1.8.2.5 ls-mat5.cc
--- src/ls-mat5.cc 5 May 2005 03:53:38 -0000 1.8.2.5
+++ src/ls-mat5.cc 27 May 2005 14:14:32 -0000
@@ -1180,7 +1180,7 @@
}
else if (tc.is_complex_scalar () || tc.is_complex_matrix ())
{
- ComplexNDArray m_cmplx = tc.complex_matrix_value ();
+ ComplexNDArray m_cmplx = tc.complex_array_value ();
write_mat5_array (os, ::real (m_cmplx), save_as_floats);
write_mat5_array (os, ::imag (m_cmplx), save_as_floats);

View File

@ -2,13 +2,14 @@
Name: octave
Version: 2.1.71
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A high-level language for numerical computations
Epoch: 6
Group: Applications/Engineering
License: GPL
Source: ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-%{version}.tar.bz2
Patch0: octave-2.1.71-save.patch
URL: http://www.octave.org
Requires: gnuplot less info texinfo
Requires: /sbin/install-info
@ -46,6 +47,7 @@ applications which use GNU Octave.
%prep
%setup -q
%patch0 -p0
./autogen.sh
@ -123,6 +125,9 @@ fi
%changelog
* Fri May 27 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.1.71-3
- Added patch for http://www.octave.org/mailing-lists/bug-octave/2005/617
* Thu May 26 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.1.71-2
- Added dist tag.