gnu: r-rserve: Adjust R@4.5.0 and GCC@14.

* gnu/packages/cran.scm (r-rserve)[arguments]: Adjust compiler flags.

Change-Id: Ic3125adb771fda68a7a0e70c8a6c0c72ff14e3e2
This commit is contained in:
Simon Tournier 2025-10-28 04:08:20 +01:00
parent 7c6e8e7d8d
commit 4e1e433cdf
No known key found for this signature in database
GPG key ID: 92F1D22C608EE7E5

View file

@ -46500,6 +46500,19 @@ download images.")
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack '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
"CFLAGS=-g -O2"
" -std=gnu11"
" -Wno-error=implicit-function-declaration\n")))))))
(add-before 'install 'install-server-binary
;; Makevars tries to install to R's store directory.
(lambda* (#:key outputs #:allow-other-keys)