Hi,

I have noticed a problem with the installation path of octave-forge 
packages on my gentoo system. The .oct files get installed under 
/usr/libexec/octave/packages/<package>, but octave does not find them. It 
appears that the package search path was changed recently from 
/usr/libexec/octave/packages to /usr/lib/octave/packages (or, as in my 
case, /usr/lib64/octave/packages). See the following posts for details:

https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-March/023344.html
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-March/023446.html
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-March/023448.html

Indeed, linking /usr/libexec/octave/packages to /usr/lib64/octave/packages 
solves the problem.

Gentoo's package manager uses package_Makefile.in from octave-forge to 
install the packages:

http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/packages/package_Makefile.in

However, this makefile still uses the old path for installing the .oct 
files. Below, I have attached a patch that updates it to use the new path.


Kind regards,
Andrej


--- octave-forge/package_Makefile.in.orig       2012-02-29 20:24:25.000000000 
+0100
+++ octave-forge/package_Makefile.in    2012-02-29 20:24:40.000000000 +0100
@@ -35,9 +35,9 @@
          pkgdir=`octave -H -q --no-site-file --eval 
"warning('off','all');pkg('install','$(PACKAGE)');l=pkg('list');disp(l{cellfun(@(x)strcmp(x.name,'$(PKG)'),l)}.dir);$$stripcmd;"`;
 \
        else \
          shareprefix=$(DESTDIR)/`octave -H -q --no-site-file --eval 
"disp(fullfile(OCTAVE_HOME(),'share','octave'));"`; \
-         libexecprefix=$(DESTDIR)/`octave -H -q --no-site-file --eval 
"disp(fullfile(octave_config_info('libexecdir'),'octave'));"`; \
+         libprefix=$(DESTDIR)/`octave -H -q --no-site-file --eval 
"disp(fullfile(octave_config_info('libdir'),'octave'));"`; \
          octprefix=$$shareprefix/packages; \
-         archprefix=$$libexecprefix/packages; \
+         archprefix=$$libprefix/packages; \
          if [ ! -e $$octprefix ]; then \
            mkdir -p $$octprefix; \
          fi; \

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to