mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: r-maptools: Patch use of Calloc and Free.
* gnu/packages/cran.scm (r-maptools)[arguments]: Add phase 'patch-Calloc. Change-Id: I13d6f5a5e0c28f17908842b4bdbc5a89aa8c3816
This commit is contained in:
parent
72ac4a8fc6
commit
7b1dccdf45
1 changed files with 10 additions and 0 deletions
|
|
@ -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/")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue