guix_mirror_bot pushed a commit to branch r-team
in repository guix.

commit eabf438c98ed52df43b8e062e11f2fb71c7e6ea4
Author: Simon Tournier <[email protected]>
AuthorDate: Tue Oct 28 11:57:53 2025 +0100

    gnu: r-dtwclust: Adjust GCC@14.
    
    * gnu/packages/cran.scm (r-dtwclust)[arguments]: Add phase that decreases
    GCC@14 strictness.
    
    Change-Id: I4235fb9444e67112ee0906b479445b5b1c5ef7b0
---
 gnu/packages/cran.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 0ff1c756a7..13b70b5ad8 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -19568,6 +19568,22 @@ phylogenies and ancestral character states.")
         (base32 "0by01x4qpf1pin5l61wmm600bmsnlnns9knwb0qmjlj72pmwfkqh"))))
     (properties `((upstream-name . "dtwclust")))
     (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (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"))))))))))
     (propagated-inputs
      (list r-clue
            r-cluster

Reply via email to