[Pkg-octave-devel] Debian packages for Octave 2.9.10 available in experimental

Rafael Laboissiere rafael at debian.org
Thu Mar 29 14:35:01 CET 2007


The Debian packages for Octave 2.9.10 are released to the experimental
distribution [1].  They have not been uploaded to unstable because octave2.9
build-depends on libglpk-dev >= 4.15, which is still waiting for approval in
the NEW queue.  The new GLPK packages can be accessed through my personal
apt-getable repository [2].

I have to apply two patches to the package, one regarding GLPK (already
submitted to bug at octave.org [3]) and another related to the test in
syscalls.cc (attached below).  I do not know why I had to increase the sleep
period from 0.1 to 1, but "make check" was hanging in an unpredictable way
(is perhaps my machine too slow?)

Otherwise, the compilation went smooth and only two tests did not pass.
Attached below is a file with excerpts of fntests.log containing the error
messages. One problem regards randp and the other happens for the
element-by-element sparse matrix division.  I hope the problems are not
serious but I would appreciate if someone could comment on them.


[1] http://packages.debian.org/experimental/math/octave2.9
    (NB: this page may take some time to be updated)
[2] http://people.debian.org/~rafael/glpk/
[3] http://www.cae.wisc.edu/pipermail/bug-octave/2007-March/002014.html
    
-- 
Rafael
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 50_syscalls-test-sleep.dpatch by Rafael Laboissiere <rafael at debian.org>
##
## DP: Increase the amount of time to sleep, in case of errno == EAGAIN
## DP: when running the test for syscalls.cc ("make check" hangs in an
## DP: unpredictable way without this patch)

@DPATCH@

--- octave2.9-2.9.10.orig/src/syscalls.cc
+++ octave2.9-2.9.10/src/syscalls.cc
@@ -372,7 +372,7 @@
 %!       idx++;
 %!       str{idx} = s;
 %!     elseif (errno () == EAGAIN)
-%!       sleep (0.1);
+%!       sleep (1);
 %!       fclear (out);
 %!     else
 %!       done = true;
-------------- next part --------------
[snip]

>>>>> processing src/DLD-FUNCTIONS/rand.cc
  ***** test
 % Test fixed state
 randp("seed",1);
 assert(randp(1e9,1,6),[1000006208 1000012224 999981120 999963520 999963072 999981440])
!!!!! test failed
error: assert (randp (1e9, 1, 6),[1000006208, 1000012224, 999981120, 999963520, 999963072, 999981440]) expected
   1.0000e+09   1.0000e+09   9.9998e+08   9.9996e+08   9.9996e+08   9.9998e+08
but got
   1.0000e+09   1.0000e+09   9.9998e+08   9.9996e+08   9.9996e+08   9.9998e+08
values do not match
shared variables {
  __random_statistical_tests__ = 0
}

[snip]

>>>>> processing test_sparse
  ***** assert(as./bs,sparse(af./bf,true),100*eps);
!!!!! test failed
error: assert (as ./ bs,sparse (af ./ bf, true),100 * eps) expected
   Inf + Infi     2 -   1i   NaN - NaNi   NaN - NaNi
     0 +   0i   NaN - NaNi   NaN - NaNi   Inf + Infi
     0 +   0i     0 +   0i   NaN - NaNi   Inf - NaNi
but got
   NaN - NaNi     2 -   1i   NaN - NaNi   NaN - NaNi
     0 +   0i   NaN - NaNi   NaN - NaNi   NaN - NaNi
     0 +   0i     0 +   0i   NaN - NaNi   NaN - NaNi
NaNs don't match
shared variables {
  as =

Compressed Column Sparse (rows = 3, cols = 4, nnz = 4)

  (1, 1) ->  1 + 1i
  (1, 2) ->  2 - 1i
  (2, 4) ->  3 + 2i
  (3, 4) ->  4 + 0i

  af =

     1 + 1i   2 - 1i   0 + 0i   0 + 0i
     0 + 0i   0 + 0i   0 + 0i   3 + 2i
     0 + 0i   0 + 0i   0 + 0i   4 + 0i

  bs =

Compressed Column Sparse (rows = 3, cols = 4, nnz = 4)

  (2, 1) ->  2
  (3, 1) ->  3
  (1, 2) ->  1
  (3, 2) ->  2

  bf =

     0   1   0   0
     2   0   0   0
     3   2   0   0

}

[snip]


More information about the Pkg-octave-devel mailing list