diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-01-03 14:39:21 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:23 +0200 |
| commit | 20d0eb4c658f22ae05be61185aeabfafd7d9b102 (patch) | |
| tree | 2948a747ee3b77a22277b4083d5879ab47ad5288 /gnu | |
| parent | e00c82f1a2dd15030d745ca8e237bd96b46d76a1 (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/cran.scm | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 2a14a510fb1..4a172f6f442 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -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/") |
