Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
oct-files are not compatible between Octaves with different installation paths #92
This is related, but not identical, to #91.
Currently, Octave builds octfiles by linking them with liboctave and liboctinterp at build time. This means they are linked with the full paths to those dylibs inside the Octave installation.
This results in octfiles that can only be used by an Octave installed at the same exact location as the one that originall produced the octfiles. Attempting to use those octfiles in other Octaves will cause them to crash.
This means that:
A real fix for this requires changes to Octave itself and how it builds octfiles. This is being investigated upstream at https://savannah.gnu.org/bugs/index.php?53627
In the mean time, we'll do what we can to isolate Octave.app from other Octave installs.
Mailing list thread: http://lists.gnu.org/archive/html/octave-maintainers/2018-07/msg00101.html
I have modified Octave.app to redirect its
This will keep packages from crashing Octave, but won't fix the general problem with octfiles.
It also has the downside that all packages must be reinstalled for each version of Octave.app.
I moved the milestone for this from 4.4.0 to The Future, because the full fix requires upstream changes in Octave itself to prevent the path-specific linkage at oct file build time.
I think the current approach we have of version-specific pkg directories is the best we're going to get for 4.4.0 and 4.4.1.