Package: octave-plplot
Version: 5.6.1-6
Severity: normal
Tags: patch

Hi Rafael, 

octave2.1:1> toggle_plplot_use 
error: This version of octave-plplot only works with Octave 2.1

Diagnosis:
split() returns a string matrix; additionally, due to the '73' in Octave's
version, it's a 3x2 matrix. 

Patch attached.

  Thomas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages octave-plplot depends on:
ii  atlas3-base [liblapack.s 3.6.0-20.2      Automatically Tuned Linear Algebra
ii  atlas3-sse2 [liblapack.s 3.6.0-20.2      Automatically Tuned Linear Algebra
ii  fftw3                    3.1.1-1         library for computing Fast Fourier
ii  lapack3 [liblapack.so.3] 3.0.20000531a-6 library of linear algebra routines
ii  libc6                    2.3.6-15        GNU C Library: Shared libraries
ii  libfreetype6             2.2.1-2         FreeType 2 font engine, shared lib
ii  libgcc1                  1:4.1.1-5       GCC support library
ii  libgfortran0             4.0.3-3         Runtime library for GNU Fortran ap
ii  libhdf5-serial-1.6.5-0 [ 1.6.5-2         Hierarchical Data Format 5 (HDF5) 
ii  libltdl3                 1.5.22-4        A system independent dlopen wrappe
ii  libncurses5              5.5-2           Shared libraries for terminal hand
ii  libplplot9               5.6.1-5         Scientific plotting library
ii  libqhull5                2003.1-2        Calculate convex hulls and related
ii  libreadline5             5.1-7           GNU readline and history libraries
ii  libstdc++6               4.1.1-5         The GNU Standard C++ Library v3
ii  octave2.1                1:2.1.73-8      GNU Octave language for numerical 
ii  refblas3 [libblas.so.3]  1.2-8           Basic Linear Algebra Subroutines 3
ii  zlib1g                   1:1.2.3-12      compression library - runtime

octave-plplot recommends no packages.

-- no debconf information
--- /usr/share/octave/site/m/PLplot/toggle_plplot_use.m 2006-06-29 
03:08:08.000000000 +0200
+++ toggle_plplot_use.m 2006-07-01 11:23:27.000000000 +0200
@@ -21,7 +21,7 @@
 1;
 
 ## Abort if not using Octave 2.1
-if (split (version , '.') (1, :) != 2 || split (version , '.') (2, :) != 1)
+if (split (version , '.') (1, 1) != '2' || split (version , '.') (2, 1) != '1')
   error ("This version of octave-plplot only works with Octave 2.1\n");
 endif
 

Reply via email to