On Thu, 16 Jan 2003, Per Persson wrote:

> Hi,
> I just subitted an upated package for octave-forge to the tracker.
>
> There is one part that I don't particularly like and would like some
> feedback on:
> Octave-forge is a set of extensions to octave and must have its path
> added to octave's search path. There is a global startup script in
> /sw/share/octave/site/m/startup/octaverc that is the proper place to do
> it. This script is empty by default.
>
> octave-forge's install script prints out info to the user about what to
> add to the search path, but that will not be seen by the user so I've
> made sure that fink's install phase captures that output and places
> _adds_ it to octave's global startup file in case it has been modified.
>
> Snippet from .info file
> -----------------------
>   make install prefix=%i | grep LOADPATH | cat
> %p/share/octave/site/m/startup/octaverc - >
> %p/share/octave/site/m/startup/octaverc.new
>   mv %p/share/octave/site/m/startup/octaverc
> %p/share/octave/site/m/startup/octaverc.old
>   mv %p/share/octave/site/m/startup/octaverc.new
> %p/share/octave/site/m/startup/octaverc
>
> I see a number of problems here, such as upgrading of the package means
> adding more and more to the path. I also have no clue whatsoever what
> will happen in a binary package.
>
> Maybe the best solution is to move whatever startup file there is aside
> and just add the path info together with a notice of what has been
> done? Any user/admin who changes the _global_ startup script would
> probably find that message in no time.
> Or perhaps just add a line to the startup script to read a different
> file octaverc.fink which holds the added path info?
>
> Maybe even better to make package octave add some lines to the global
> startup script to check for the presence of a file named
> 'octave-forge-path' and read it. Jeff, comments?
>

I vote for this last solution - and putting the file in /sw/etc.  Just let
me know how and I'll do this to the octave package.

-Jeff

-- 
Jeffrey S. Whitaker         Phone : (303)497-6313
NOAA/OAR/CDC  R/CDC1        FAX   : (303)497-6449
325 Broadway                Web   : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to