From bug-request at octave dot org Thu Jun 2 10:37:03 2005 Subject: 2.1.71 does not execute the site-wide startup file From: "John W. Eaton" To: Jeanfrancois Cardoso Cc: cardoso at tsi dot enst dot fr, bug@octave.org Date: Thu, 2 Jun 2005 11:27:57 -0400 On 30-May-2005, Jeanfrancois Cardoso wrote: | | Bug report for Octave 2.1.71 configured for i686-pc-linux-gnu | | Description: | ----------- | | On startup, octave 2.1.71 does not execute | $INSTALLDIR/share/octave/site/m/startup/octaverc | | | Repeat-By: | --------- | | Launch octave with the --verbose switch | and see what it says (and does not say) | | Fix: | --- | | No fix, but some investigation reveals that: | | In file defaults.h, one finds | | #ifndef OCTAVE_LOCALSTARTUPFILEDIR | #define OCTAVE_LOCALSTARTUPFILEDIR "" | #endif | | while, for a similar variable: | | #ifndef OCTAVE_STARTUPFILEDIR | #define OCTAVE_STARTUPFILEDIR "/usr/adamislocal/share/octave/2.1.71/m/startup" | #endif Please try the following patch. You'll need to run configure again after applying it. Thanks, jwe ChangeLog: 2005-06-02 John W. Eaton * Makeconf.in (do-subst-default-vals): Substitute ${localstartupfiledir}, not ${localstartupfile} (which is undefined). Index: Makeconf.in =================================================================== RCS file: /usr/local/cvsroot/octave/Makeconf.in,v retrieving revision 1.151.2.2 diff -u -r1.151.2.2 Makeconf.in --- Makeconf.in 6 May 2005 18:59:40 -0000 1.151.2.2 +++ Makeconf.in 2 Jun 2005 15:32:50 -0000 at @ -490,7 +490,7 @@ -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \ -e "s;%OCTAVE_LOCALOCTFILEDIR%;\"${localoctfiledir}\";" \ -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \ - -e "s;%OCTAVE_LOCALSTARTUPFILEDIR%;\"${localstartupfile}\";" \ + -e "s;%OCTAVE_LOCALSTARTUPFILEDIR%;\"${localstartupfiledir}\";" \ -e "s;%OCTAVE_LOCALVERARCHLIBDIR%;\"${localverarchlibdir}\";" \ -e "s;%OCTAVE_LOCALVERFCNFILEDIR%;\"${localverfcnfiledir}\";" \ -e "s;%OCTAVE_LOCALVEROCTFILEDIR%;\"${localveroctfiledir}\";" \ ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------