On Sat, Mar 24, 2012 at 10:02 PM, Clemens Buchacher <dri...@aon.at> wrote:
> On Sat, Mar 17, 2012 at 01:42:19PM +0100, Juan Pablo Carbajal wrote:
>> On Sun, Mar 11, 2012 at 12:56 PM, Clemens Buchacher <dri...@aon.at> wrote:
>> > Hi Juan,
>> >
>> > Version 1.4.0 of the geometry package produces the following warnings on
>> > load:
>> >
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/geom2d: No such 
>> > file or directory
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/io: No such file 
>> > or directory
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/polygons2d: No 
>> > such file or directory
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/shape2d: No such 
>> > file or directory
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/octclip: No such 
>> > file or directory
>> > warning: addpath: /usr/lib/octave/packages/geometry-1.4.0/graphs: No such 
>> > file or directory
>> >
>> > This happens only if I install with different prefixes:
>> >
>> > pkg prefix /usr/share/octave/packages /usr/lib/octave/packages
>>
>> This is fixed for me. Could you double check?
>
> With svn r10045, I now get the following on load instead:
>
> warning: addpath: /home/drizzd/octave/geometry-1.4.2/geom2d: No such file or 
> directory
> ...
>
> The problem is that the installation prefix is set only during
> installation, but not during module load.
>
> The only way I can find to determine this path reliably is to create a
> inst/geometry_module_path.m file which returns mfilename("fullpath").
>
> Clemens

How does pkg knows the path to add in any other package when you use
prefix? I see ocs is having the same problem... probably all
multi-packages using PKG_ADD have it.

We could use the NEWS file or maybe the documentation to get the
installation path of the package...I do not see how to od it for an
arbitrary prefix in the arch dependent files....

Ideas?

PS: I am adding Carlo and Rik to the discussion. Since this may be
something to tackle more generally.


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to