1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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

* gnu/packages/cran.scm (r-rcppparallel)[arguments]: Use G-Expressions.  Add
phase "relax-gcc-14-strictness".

Change-Id: I3d6c0d0986405dcc327bddb1eccaf95c298aec1d
This commit is contained in:
Janneke Nieuwenhuizen
2025-01-03 14:39:21 +01:00
committed by Andreas Enge
parent e00c82f1a2
commit 20d0eb4c65

View File

@@ -29676,10 +29676,22 @@ package provides a minimal R interface by relying on the Rcpp package.")
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'use-system-tbb
(lambda* (#:key inputs #:allow-other-keys)
(setenv "TBB_ROOT" (assoc-ref inputs "tbb")))))))
#~(modify-phases %standard-phases
(add-after 'unpack 'use-system-tbb
(lambda* (#:key inputs #:allow-other-keys)
(setenv "TBB_ROOT" (assoc-ref inputs "tbb"))))
(add-before 'install 'relax-gcc-14-strictness
(lambda _
;; XXX FIXME: $HOME/.R/Makevars seems to be the only way to
;; set custom CFLAGS for R?
(setenv "HOME" (getcwd))
(mkdir-p ".R")
(with-directory-excursion ".R"
(with-output-to-file "Makevars"
(lambda _
(display (string-append
"CXXFLAGS=-g -O2"
" -Wno-error=changes-meaning\n"))))))))))
(inputs (list tbb-2020))
(native-inputs (list r-rcpp r-runit))
(home-page "https://rcppcore.github.io/RcppParallel/")