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

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 7b1dccdf45 gnu: r-maptools: Patch use of Calloc and Free.
7b1dccdf45 is described below

commit 7b1dccdf45b50fe7ea311110e2798fedb2414488
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Mon May 26 17:21:39 2025 +0200

    gnu: r-maptools: Patch use of Calloc and Free.
    
    * gnu/packages/cran.scm (r-maptools)[arguments]: Add phase 'patch-Calloc.
    
    Change-Id: I13d6f5a5e0c28f17908842b4bdbc5a89aa8c3816
---
 gnu/packages/cran.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index d49e747711..1e674bd14b 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22990,6 +22990,16 @@ simple method for converting between file types.")
         (base32
          "1xz0cqg629vz7mawwxx650mgmvh3wzn25rnxy4sij5jrypipk1ay"))))
     (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'patch-Calloc
+           (lambda _
+             (substitute* "src/pip.c"
+               (("# include <R.h>") "# include <R.h>\n# include <R_ext/RS.h>")
+               (("Calloc") "R_Calloc")
+               (("Free") "R_Free")))))))
     (propagated-inputs
      (list r-foreign r-lattice r-sp))
     (home-page "https://r-forge.r-project.org/projects/maptools/";)

Reply via email to