git.iko.soy/typeable/nixpkgs
on master help sign in
octave: fix on darwin

This change is required on darwin, but did not make it into the 4.2.1 release of Octave. It is a very small change, and a comment on the patch includes a link for more information and a note that it should be removed from subsequent releases.

commit506a5df01421715376c0985ea9cb417aae5c3e56 authorAnthony Cowley <acowley@gmail.com> dateWed 22 Mar 2017, 10:49 (10 years ago) parent8869816
1 file changed+6
pkgs/development/interpreters/octave/default.nix+6
pkgs/development/interpreters/octave/default.nix+6
@@ -41,6 +41,12 @@ stdenv.mkDerivation rec {
4141 ++ (stdenv.lib.optionals (!stdenv.isDarwin) [ mesa libX11 ])
4242 ;
4343
44+ # REMOVE ON VERSION BUMP
45+ # Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234
46+ prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
47+ sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc
48+ '';
49+
4450 doCheck = !stdenv.isDarwin;
4551
4652 enableParallelBuilding = true;