Trouble with odepkg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Trouble with odepkg

Orion Poplawski
I'm trying to package up odepkg 0.9.1 from the hg repository, but I'm seeing
this when testing:

warning: addpath:
/builddir/build/BUILDROOT/octave-odepkg-0.9.1-1.20170102hg609.fc26.x86_64/usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/../inexact_solvers:
No such file or directory
warning: called from

/builddir/build/BUILDROOT/octave-odepkg-0.9.1-1.20170102hg609.fc26.x86_64/usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/PKG_ADD
at line 23 column 5
    load_packages_and_dependencies at line 48 column 5
    load_packages at line 47 column 3
    pkg at line 411 column 7

This appears to be because the no-arch files are installed in a different
location from the arch files:

usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/PKG_ADD
usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/PKG_DEL
usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/__taylor__.oct
usr/lib64/octave/packages/odepkg-0.9.1/x86_64-redhat-linux-gnu-api-v51/dldsolver.oct

and

usr/share/octave/packages/odepkg-0.9.1/inexact_solvers
usr/share/octave/packages/odepkg-0.9.1/inexact_solvers/doc-cache
usr/share/octave/packages/odepkg-0.9.1/inexact_solvers/inexact_newton.m

PKG_ADD has:
autoload ("odekdi", "dldsolver.oct");

autoload ("odebda", "dldsolver.oct");

autoload ("odebdi", "dldsolver.oct");

autoload ("ode2r",  "dldsolver.oct");

autoload ("ode5r",  "dldsolver.oct");

autoload ("oders",  "dldsolver.oct");

autoload ("odesx",  "dldsolver.oct");
dirlist = {"inexact_solvers", "integrate_functions", "steppers", ...
           "string_compare", "utilities"};

dir = fileparts (mfilename ("fullpath"));

if (! exist (fullfile (dir, "inst"), "dir"))
  ## Run this if the package is installed
  for ii=1:length(dirlist)
    addpath (fullfile (dir, "..", dirlist{ii}))
  endfor
else
  ## Run this if we are testing the package without installation
  for ii=1:numel (dirlist)
    addpath (fullfile (dir, "inst"))
    addpath (fullfile (dir, "inst", dirlist{ii}))
    addpath (fullfile (dir, "src"))
  endfor
endif

if (exist (fullfile ((__octave_config_info__).fcnfiledir, "ode", "private")) == 7)
  addpath (fullfile ((__octave_config_info__).fcnfiledir, "ode", "private"))
else
  error (["your version of octave does not seem to be ", ...
          "compatible with this version of odepkg"]);
endif

clear dirlist dir odeset_path private_path

autoload ("odekdi", "dldsolver.oct");

autoload ("odebda", "dldsolver.oct");

autoload ("odebdi", "dldsolver.oct");

autoload ("ode2r",  "dldsolver.oct");

autoload ("ode5r",  "dldsolver.oct");

autoload ("oders",  "dldsolver.oct");

autoload ("odesx",  "dldsolver.oct");
dirlist = {"inexact_solvers", "integrate_functions", "steppers", ...
           "string_compare", "utilities"};

dir = fileparts (mfilename ("fullpath"));

if (! exist (fullfile (dir, "inst"), "dir"))
  ## Run this if the package is installed
  for ii=1:length(dirlist)
    addpath (fullfile (dir, "..", dirlist{ii}))
  endfor
else
  ## Run this if we are testing the package without installation
  for ii=1:numel (dirlist)
    addpath (fullfile (dir, "inst"))
    addpath (fullfile (dir, "inst", dirlist{ii}))
    addpath (fullfile (dir, "src"))
  endfor
endif

if (exist (fullfile ((__octave_config_info__).fcnfiledir, "ode", "private")) == 7)
  addpath (fullfile ((__octave_config_info__).fcnfiledir, "ode", "private"))
else
  error (["your version of octave does not seem to be ", ...
          "compatible with this version of odepkg"]);
endif

clear dirlist dir odeset_path private_path


Is this a problem with odepkg, or with other parts of octave packaging?



--
Orion Poplawski
Technical Manager                          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [hidden email]
Boulder, CO 80301                   http://www.nwra.com