Message ID | 03a288df56dc60850e6a8c0fc2785949e209f33a.1692296107.git.ngraves@ngraves.fr |
---|---|
State | New |
Headers | show |
Series | [bug#65357] gnu: scilab: Fix compilation error. | expand |
Hello Nicolas, Am Thu, Aug 17, 2023 at 08:15:07PM +0200 schrieb Nicolas Graves: > + (substitute* "modules/output_stream/src/cpp/diary_manager.cpp" > + (("if \\(array_size > 0\\)") > + "if (*array_size > 0)")) the fix looks right to me. But our scilab version is 8 years old, while there are newer versions around. Would it make sense to rather update the package to a newer version? (I had a look at 5.2.2, 6.0.0 and 6.1.1, but all of them would still require your suggested fix.) Andreas
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8b765e886b..7a6a26d806 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8546,6 +8546,10 @@ (define-public scilab "__threadSignal InterpReady;" "\n" "__threadSignalLock InterpReadyLock;" "\n"))) + ;; Fix CPP compilation errors. + (substitute* "modules/output_stream/src/cpp/diary_manager.cpp" + (("if \\(array_size > 0\\)") + "if (*array_size > 0)")) ;; Set SCIHOME to /tmp before macros compilation. (setenv "SCIHOME" "/tmp")))))) (home-page "https://scilab.org")