mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: scilab: Fix build with gcc@14.
* gnu/packages/maths.scm (scilab)[arguments]<#:phases>: Add phase 'fix-call-scilab-examples phase to fix build with gcc@14. Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
f2e4c9d4b0
commit
0ba01dd04f
1 changed files with 7 additions and 0 deletions
|
@ -10898,6 +10898,13 @@ computation is supported via MPI.")
|
||||||
"modules/scicos/src/translator/makefile.mak"
|
"modules/scicos/src/translator/makefile.mak"
|
||||||
"modules/scicos/src/modelica_compiler/makefile.mak")
|
"modules/scicos/src/modelica_compiler/makefile.mak")
|
||||||
(("nums\\.cmx?a") ""))))
|
(("nums\\.cmx?a") ""))))
|
||||||
|
;; See https://gitlab.com/scilab/scilab/-/issues/17462
|
||||||
|
(add-after 'unpack 'fix-call-scilab-examples
|
||||||
|
(lambda _
|
||||||
|
(substitute*
|
||||||
|
(find-files "modules/call_scilab/examples" "\\.c$")
|
||||||
|
(("StartScilab\\((.*), NULL\\)" all args)
|
||||||
|
(string-append "StartScilab(" args ", 0)")))))
|
||||||
(add-after 'unpack 'fix-linking
|
(add-after 'unpack 'fix-linking
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "modules/Makefile.am"
|
(substitute* "modules/Makefile.am"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue