gnu: r-biostrings: Patch for R 4.2.0.

* gnu/packages/bioconductor.scm (r-biostrings)[arguments]: Add build phase
'patch-for-R-4.2.0.
This commit is contained in:
Ricardo Wurmus 2022-05-28 10:34:30 +02:00
parent 02c8c3ffbd
commit d723619fc3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3104,6 +3104,19 @@ (define-public r-biostrings
(properties (properties
`((upstream-name . "Biostrings"))) `((upstream-name . "Biostrings")))
(build-system r-build-system) (build-system r-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; See commit c3340745870a88d1558e093a7f892c1aeac784ef in
;; https://github.com/Bioconductor/Biostrings/
(add-after 'unpack 'patch-for-R-4.2.0
(lambda _
(substitute* '("src/BitMatrix.c"
"src/RoSeqs_utils.c"
"src/match_pdict_utils.c"
"src/xscat.c")
(("#include <S.h>.*")
"#define Salloc(n,t) (t*)S_alloc(n, sizeof(t)) /* from old <S.h> */\n")))))))
(propagated-inputs (propagated-inputs
(list r-biocgenerics (list r-biocgenerics
r-crayon r-crayon