~ruther/guix-local

93d892f333abb3a8b9ee75831ad00be74edc0bcb — Ricardo Wurmus 6 months ago 3945e55
gnu: r-rffc: Adjust to R@4.5.0.

* gnu/packages/cran.scm (r-rffc)[arguments]: Replace Calloc and Free by
R_Calloc and R_Free.

Change-Id: I5102fff078f8ca2440dae250b9d439e5440fe394
Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com>
1 files changed, 16 insertions(+), 0 deletions(-)

M gnu/packages/cran.scm
M gnu/packages/cran.scm => gnu/packages/cran.scm +16 -0
@@ 48059,6 48059,22 @@ importance measure as introduced in Kursa (2014)
             (base32
              "05x9wgzsmx4vb12lmcspymgmpb2xw8bwryb8ysg7vzg2nkh0ma3g"))))
   (build-system r-build-system)
   (arguments
    (list
     #:phases
     '(modify-phases %standard-phases
        (add-before 'install 'fix-r-4.5.0
          ;; Changes in R 4.5.0: C-Level Facilities.
          ;; Strict R headers are now the default. This removes the legacy
          ;; definitions of PI, Calloc, Realloc and Free: use M_PI,
          ;; R_Calloc, R_Realloc or R_Free instead.
          ;; https://cran.r-project.org/doc/manuals/r-release/NEWS.html
          (lambda _
            (substitute* '("src/featContrib.c"
                           "src/featContribClass.c"
                           "src/forest.c")
              (("Calloc") "R_Calloc")
              (("Free") "R_Free")))))))
   (propagated-inputs
    (list r-randomforest))
   (home-page "https://r-forge.r-project.org/projects/rffc/")