mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: randomjungle: Fix compatibility errors.
* gnu/packages/machine-learning.scm (randomjungle)[arguments]: Add build phase 'fix-compatibility-errors to patch type errors.
This commit is contained in:
parent
205a65839a
commit
cd40978a4b
1 changed files with 10 additions and 5 deletions
|
@ -391,11 +391,16 @@ algorithm.")
|
||||||
(assoc-ref %build-inputs "boost")))
|
(assoc-ref %build-inputs "boost")))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before
|
(add-after 'unpack 'fix-compatibility-errors
|
||||||
'configure 'set-CXXFLAGS
|
(lambda _
|
||||||
(lambda _
|
(substitute* "src/library/IAM2WayImportance.h"
|
||||||
(setenv "CXXFLAGS" "-fpermissive ")
|
(("= std::make_pair.*")
|
||||||
#t)))))
|
"= std::minmax(varID1, varID2);"))
|
||||||
|
(substitute* "src/library/DataFrame.h"
|
||||||
|
(("isFirst\\?.*")
|
||||||
|
"if (isFirst) { isFirst = false; } else { os << par.delimiter; }\n"))))
|
||||||
|
(add-before 'configure 'set-CXXFLAGS
|
||||||
|
(lambda _ (setenv "CXXFLAGS" "-fpermissive "))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("gsl" ,gsl)
|
("gsl" ,gsl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue