mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05: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 @@ (define-public randomjungle
|
|||
(assoc-ref %build-inputs "boost")))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before
|
||||
'configure 'set-CXXFLAGS
|
||||
(lambda _
|
||||
(setenv "CXXFLAGS" "-fpermissive ")
|
||||
#t)))))
|
||||
(add-after 'unpack 'fix-compatibility-errors
|
||||
(lambda _
|
||||
(substitute* "src/library/IAM2WayImportance.h"
|
||||
(("= std::make_pair.*")
|
||||
"= 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
|
||||
`(("boost" ,boost)
|
||||
("gsl" ,gsl)
|
||||
|
|
Loading…
Reference in a new issue