Bug#914391: octave: "unimplemented function" helper overlooks functions in package subdirectories

2018-11-25 Thread Rafael Laboissière

Control: tags -1 + upstream
Control: forwarded -1 https://savannah.gnu.org/bugs/index.php?55094

* James Van Zandt  [2018-11-22 17:14]:


Package: octave
Version: 4.4.1-2+b1
Severity: normal
Tags: upstream

Dear Maintainer,

Octave now has a very helpful feature which points the user to 
functions available in packages:


   octave:1> help random
   error: help: the 'random' function belongs to the statistics package
from Octave 
   Forge which you have installed but not loaded.  To load the package, run 
   'pkg load statistics' from the Octave prompt.


However, the feature overlooks some functions.  These are also 
provided in the statistics package:


   octave:1> help chi2inv
   error: help: 'chi2inv' not found
   octave:1> help logit
   error: help: 'logit' not found
   octave:1> help regression
   error: help: 'regression' not found

The problem appears to be that the overlooked functions are in 
subdirectories of the package.


The message is printed by __unimplemented__.m, in the directory 
/usr/share/octave/4.4.1/m/help, which has hard-coded lists of the 
functions in each package.  I see nothing in the source package that 
generates those lists, so I assume one of the upstream maintainers has 
code for that.


Some directories should still be omitted (e.g., self-testing 
functions).  I suggest functions in these directories be added to the 
lists in __unimplemented__.m:


   bsltl/mfiles
   geometry/geom2d
   geometry/geom3d
   geometry/graphs
   geometry/io
   geometry/meshes3d
   geometry/polygons2d
   geometry/polynomialCurves2d
   geometry/shape2d
   geometry/utils
   ltfat/auditory
   ltfat/blockproc
   ltfat/comp
   ltfat/demos
   ltfat/deprecated
   ltfat/filterbank
   ltfat/fourier
   ltfat/frames
   ltfat/gabor
   ltfat/mulaclab
   ltfat/nonstatgab
   ltfat/operators
   ltfat/quadratic
   ltfat/signals
   ltfat/sigproc
   ltfat/thirdparty
   ltfat/wavelets
   statistics/base
   statistics/distributions
   statistics/models


This is an upstream issue.  I am hereby tagging this bug report 
accordingly.  I have also forwarded the report to the upstream bug 
tracking system.


Rafael



Bug#914391: octave: "unimplemented function" helper overlooks functions in package subdirectories

2018-11-22 Thread James Van Zandt
Package: octave
Version: 4.4.1-2+b1
Severity: normal
Tags: upstream

Dear Maintainer,

Octave now has a very helpful feature which points the user to
functions available in packages:

octave:1> help random
error: help: the 'random' function belongs to the statistics package
from Octave
Forge which you have installed but not loaded.  To load the package, run
'pkg load statistics' from the Octave prompt.

However, the feature overlooks some functions.  These are also
provided in the statistics package:

octave:1> help chi2inv
error: help: 'chi2inv' not found
octave:1> help logit
error: help: 'logit' not found
octave:1> help regression
error: help: 'regression' not found

The problem appears to be that the overlooked functions are in
subdirectories of the package.

The message is printed by __unimplemented__.m, in the directory
/usr/share/octave/4.4.1/m/help, which has hard-coded lists of the
functions in each package.  I see nothing in the source package that
generates those lists, so I assume one of the upstream maintainers has
code for that.

Some directories should still be omitted (e.g., self-testing
functions).  I suggest functions in these directories be added to the
lists in __unimplemented__.m:

bsltl/mfiles
geometry/geom2d
geometry/geom3d
geometry/graphs
geometry/io
geometry/meshes3d
geometry/polygons2d
geometry/polynomialCurves2d
geometry/shape2d
geometry/utils
ltfat/auditory
ltfat/blockproc
ltfat/comp
ltfat/demos
ltfat/deprecated
ltfat/filterbank
ltfat/fourier
ltfat/frames
ltfat/gabor
ltfat/mulaclab
ltfat/nonstatgab
ltfat/operators
ltfat/quadratic
ltfat/signals
ltfat/sigproc
ltfat/thirdparty
ltfat/wavelets
statistics/base
statistics/distributions
statistics/models

- Jim Van Zandt


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages octave depends on:
ii  libamd2  1:5.3.0+dfsg-1
ii  libarpack2   3.6.3-1
ii  libasound2   1.1.7-1
ii  libatlas3-base [liblapack.so.3]  3.10.3-7+b1
ii  libblas3 [libblas.so.3]  3.8.0-1+b1
ii  libbz2-1.0   1.0.6-9
ii  libc62.27-8
ii  libcamd2 1:5.3.0+dfsg-1
ii  libccolamd2  1:5.3.0+dfsg-1
ii  libcholmod3  1:5.3.0+dfsg-1
ii  libcolamd2   1:5.3.0+dfsg-1
ii  libcxsparse3 1:5.3.0+dfsg-1
ii  libfftw3-double3 3.3.8-2
ii  libfftw3-single3 3.3.8-2
ii  libfltk-gl1.31.3.4-7
ii  libfltk1.3   1.3.4-7
ii  libfreetype6 2.9.1-3
ii  libgcc1  1:8.2.0-9
ii  libglpk404.65-2
ii  libgomp1 8.2.0-9
ii  libklu1  1:5.3.0+dfsg-1
ii  liblapack3 [liblapack.so.3]  3.8.0-1+b1
ii  liboctave6   4.4.1-2+b1
ii  libportaudio219.6.0-1
ii  libqhull72015.2-4
ii  libqrupdate1 1.1.2-3
ii  libqscintilla2-qt5-132.10.4+dfsg-1+b1
ii  libqt5core5a 5.11.2+dfsg-7
ii  libqt5gui5   5.11.2+dfsg-7
ii  libqt5help5  5.11.2-5
ii  libqt5network5   5.11.2+dfsg-7
ii  libqt5opengl55.11.2+dfsg-7
ii  libqt5printsupport5  5.11.2+dfsg-7
ii  libqt5sql5   5.11.2+dfsg-7
ii  libqt5widgets5   5.11.2+dfsg-7
ii  libsndfile1  1.0.28-4
ii  libstdc++6   8.2.0-9
ii  libsuitesparseconfig51:5.3.0+dfsg-1
ii  libumfpack5  1:5.3.0+dfsg-1
ii  libx11-6 2:1.6.7-1
ii  octave-common4.4.1-2
ii  texinfo  6.5.0.dfsg.1-4+b1
ii  zlib1g   1:1.2.11.dfsg-1

Versions of packages octave recommends:
ii  default-jre-headless   2:1.11-70
ii  epstool3.09-1
ii  gnuplot-x11 [gnuplot-nox]  5.2.5+dfsg1-1
ii  libatlas3-base 3.10.3-7+b1
ii  octave-doc 4.4.1-2
ii  pstoedit   3.73-1+b1

Versions of packages octave suggests:
pn  liboctave-dev  

-- no debconf information