aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/machine-learning.scm15
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 701a121627..3185c15aea 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -391,11 +391,16 @@ algorithm.")
(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)