octave: add runtime texinfo dependency
makeinfo (provided by the texinfo package) is used by the "help" command in Octave to display info about functions, etc. By default, Octave looks for "makeinfo" in the PATH, rather than specifying the location of the executable. This results in Nix not being aware that makeinfo is required at runtime (so unless you happen have makeinfo available from your path, "help" won't work). This patch fixes that by setting the path to makeinfo in Octave, thereby creating a runtime dependency on texinfo.
This commit is contained in:
parent
f0ebcc6444
commit
250ddfe1a2
@ -41,9 +41,15 @@ stdenv.mkDerivation rec {
|
||||
++ (stdenv.lib.optionals (!stdenv.isDarwin) [ mesa libX11 ])
|
||||
;
|
||||
|
||||
# makeinfo is required by Octave at runtime to display help
|
||||
prePatch = ''
|
||||
substituteInPlace libinterp/corefcn/help.cc \
|
||||
--replace 'Vmakeinfo_program = "makeinfo"' \
|
||||
'Vmakeinfo_program = "${texinfo}/bin/makeinfo"'
|
||||
''
|
||||
# REMOVE ON VERSION BUMP
|
||||
# Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user