guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch wip-r updated: gnu: r-ifultools: Patch in removed macros to fix b


From: guix-commits
Subject: branch wip-r updated: gnu: r-ifultools: Patch in removed macros to fix build.
Date: Sat, 02 Jul 2022 17:54:07 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch wip-r
in repository guix.

The following commit(s) were added to refs/heads/wip-r by this push:
     new 4c4b19554d gnu: r-ifultools: Patch in removed macros to fix build.
4c4b19554d is described below

commit 4c4b19554de16a6d0bb526e562829247e67e02fb
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Jul 2 23:52:49 2022 +0200

    gnu: r-ifultools: Patch in removed macros to fix build.
    
    * gnu/packages/cran.scm (r-ifultools)[arguments]: Define removed 
compatibility
    macros.
---
 gnu/packages/cran.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a6590e30a8..02aa63af56 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -7238,6 +7238,25 @@ provides some missing S-PLUS functionality in R.")
         (base32
          "16a7rbvlym3bnfm93ikr5kl0l86ppk0s41fva6idvcx765g3fqkk"))))
     (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      `(modify-phases %standard-phases
+         (add-after 'unpack 'compatibility
+           (lambda _
+             ;; These definitions are no longer part of R since 4.2.0.  See
+             ;; https://cran.r-project.org/doc/manuals/r-devel/NEWS.html for
+             ;; details.
+             (substitute* "inst/include/ut_RS.h"
+               (("#include \"R.h\"" m)
+                (string-append "\
+#define R_PROBLEM_BUFSIZE 4096
+#define PROBLEM        {char 
R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
+#define MESSAGE {char R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
+#define ERROR  ),error(R_problem_buf);}
+#define WARNING(x)             ),warning(R_problem_buf);}
+#define WARN                   WARNING(NULL)
+" m))))))))
     (propagated-inputs
      (list r-mass r-splus2r))
     (home-page "https://cran.r-project.org/web/packages/ifultools/";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]