gnu: r-fast: Fix build with gcc-14.

* gnu/packages/cran.scm (r-rfast)[arguments]: New field to relax gcc-14's
strictness.

Change-Id: I11fc6f40dbb6bc37831a0e7d647bc6dae10a6af0
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-04 11:27:46 +01:00 committed by Andreas Enge
parent 5c8bd1d837
commit bb6309622c
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -47969,6 +47969,14 @@ aggregation for comparing different implementations in order to provide a
"1fhjvabxq1r9zbkch36f5x0xf844a1z8l9njvyac5i9bxlmj9fzi"))))
(properties `((upstream-name . "Rfast")))
(build-system r-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'install 'relax-gcc-14-strictness
(lambda _
(substitute* "src/Makevars"
(("PKG_CXXFLAGS =" all)
(string-append all " -Wno-error=changes-meaning"))))))))
(propagated-inputs
(list r-rcpp r-rcpparmadillo r-rcppparallel r-zigg))
(home-page "https://github.com/RfastOfficial/Rfast")