[MacPorts] #45210: Octave: unexpected termination after hitting ctrl-c (Octave v3.8.2, OSX10.9.5)
MacPorts
noreply at macports.org
Wed Jan 14 12:48:59 PST 2015
#45210: Octave: unexpected termination after hitting ctrl-c (Octave v3.8.2,
OSX10.9.5)
---------------------+-------------------------
Reporter: mike@… | Owner: michaelld@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: octave |
---------------------+-------------------------
Comment (by roberthuston@…):
You still need both patch files to make Octave work, especially the
octave-3.8.2-clang-libcxx.patch file. Currently, the Portfile-
octave.3.diff file patches you from a rev3 Portfile to a rev4 Portfile.
Here's what I did to get my installation working.
1. If not already done, install Octave using regular MacPorts syntax (the
gcc49 is default, but I specified it anyway) so that it brings in all its
dependencies:
{{{
sudo port install octave +gcc49 +gui
}}}
2. Uninstall the current Octave version (use -f to preserve any installed
packages):
{{{
sudo port -f uninstall octave
}}}
3. Download "octave-3.8.2-clang-libcxx.patch" and "Portfile-octave.3.diff"
4. Open Terminal and create a "macports_bandaids" directory for patching
the octave portfile, and then cd to that directory
{{{
mkdir macports_bandaids
cd macports_bandaids
}}}
5. Copy the Octave portfile directory to an "octave-3.8.2_4" directory:
{{{
sudo cp -R
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/math/octave
octave-3.8.2_4
}}}
6. Copy Portfile-octave.3.diff to the octave-3.8.2_4 directory
{{{
sudo cp ~/Downloads/Portfile-octave.3.diff octave-3.8.2_4
}}}
7. Copy octave-3.8.2-clang-libcxx.patch file to the octave-
bandaid/octave-3.8.2_4/files directory
{{{
sudo cp ~/Downloads/octave-3.8.2-clang-libcxx.patch octave-3.8.2_4/files
}}}
8. Navigate into the octave-3.8.2_4 directory
{{{
cd octave-3.8.2_4
}}}
9. Patch the portfile:
{{{
sudo patch < Portfile-octave.3.diff
}}}
10. Reinstall Octave from your patched installation directory, selecting
same desired variants as before:
{{{
sudo port -f install +gcc49 +gui
}}}
At this point, Octave should run correctly and not crash when quitting or
encountering Ctrl-C.
--
Ticket URL: <https://trac.macports.org/ticket/45210#comment:37>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list