diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-12-05 19:17:41 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-12-05 19:17:41 +0100 |
commit | 9bc0f45df5d6aed217020b1183dca54989844fb0 (patch) | |
tree | d927e89949ff7f65b5059bc94273c53fd43d0763 /gnu/packages/machine-learning.scm | |
parent | 6db3c536e89deb8a204e756f427614925a7d2582 (diff) | |
parent | 10554e0a57feeea470127a1d0441957d1776b0bd (diff) | |
download | guix-9bc0f45df5d6aed217020b1183dca54989844fb0.tar.gz |
Merge remote-tracking branch 'origin/master' into core-updates-frozen
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r-- | gnu/packages/machine-learning.scm | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 2dcfa0516f..ba54e72d12 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -376,11 +376,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) |