On Sun, Mar 25, 2012 at 6:03 PM, Juan Pablo Carbajal <carba...@ifi.uzh.ch> wrote: > On Sun, Mar 25, 2012 at 6:00 PM, c. <carlo.defa...@gmail.com> wrote: >> >> On 25 Mar 2012, at 17:57, Juan Pablo Carbajal wrote: >> >>> Carlo, >>> Yes, this is exactly the solution for the PKG_ADD in geometry >>> http://octave.svn.sf.net/viewvc/octave/trunk/octave-forge/main/geometry/PKG_ADD?revision=10052&view=markup >>> >>> The problem is that the information in pkg("prefix") doesn't survive >>> across octave sessions. We could store it somewhere. I suggest the >>> ~/.octave_packages file. Is it there exactly for this? >>> >> yes but it is not enough to store information there because it gets >> overwritten by pkg rebuild. >> c. >> > > So, after a pkg rebuild call, where are the files of a package that > was installed with a different prefix? > I guess they will be placed somewhere else, not in the folder that was > specified when prefix was called, right? > If they are placed in the right place. How does rebuild knows the arch > dependent folder that was set by the user? > If they are not in the right place, then I guess this is a bug in pkg. > > > -- > M. Sc. Juan Pablo Carbajal > ----- > PhD Student > University of Zürich > http://ailab.ifi.uzh.ch/carbajal/
Maybe this is too much work, but I guess rebuild should work as follows: 1. Parse ~/.octave_packages file to get all folders set at installation time (i.e. get the right prefix for each package) 2. Rebuild accordingly 3. Replace ~/.octave_packages Or is this going against the whole idea of rebuild? -- 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