[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/11: gnu: r-biocparallel: Build reproducibly.
From: |
guix-commits |
Subject: |
11/11: gnu: r-biocparallel: Build reproducibly. |
Date: |
Mon, 15 Mar 2021 18:32:43 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 8f9fd9b70c7bf166d96a4b1dc8b427f8cdf040b5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Mar 15 23:31:58 2021 +0100
gnu: r-biocparallel: Build reproducibly.
* gnu/packages/bioconductor.scm (r-biocparallel)[arguments]: Add phase
"make-reproducible".
---
gnu/packages/bioconductor.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/bioconductor.scm b/gnu/packages/bioconductor.scm
index 9212165..166d30b 100644
--- a/gnu/packages/bioconductor.scm
+++ b/gnu/packages/bioconductor.scm
@@ -1705,6 +1705,34 @@ powerful online queries from gene annotation to database
mining.")
(properties
`((upstream-name . "BiocParallel")))
(build-system r-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'make-reproducible
+ (lambda _
+ ;; Remove generated documentation.
+ (for-each delete-file
+ '("inst/doc/BiocParallel_BatchtoolsParam.pdf"
+ "inst/doc/Introduction_To_BiocParallel.pdf"
+ "inst/doc/Errors_Logs_And_Debugging.pdf"
+ "inst/doc/BiocParallel_BatchtoolsParam.R"
+ "inst/doc/Introduction_To_BiocParallel.R"
+ "inst/doc/Errors_Logs_And_Debugging.R"))
+
+ ;; Remove time-dependent macro
+ (substitute* '("inst/doc/BiocParallel_BatchtoolsParam.Rnw"
+ "inst/doc/Introduction_To_BiocParallel.Rnw"
+ "inst/doc/Errors_Logs_And_Debugging.Rnw"
+ "vignettes/BiocParallel_BatchtoolsParam.Rnw"
+ "vignettes/Introduction_To_BiocParallel.Rnw"
+ "vignettes/Errors_Logs_And_Debugging.Rnw")
+ (("\\today") "later"))
+
+ ;; Initialize the random number generator seed when building.
+ (substitute* "R/internal_rng_stream.R"
+ (("\"L'Ecuyer-CMRG\"\\)" m)
+ (string-append
+ m "; if (!is.na(Sys.getenv(\"SOURCE_DATE_EPOCH\")))
{set.seed(100)}\n"))))))))
(propagated-inputs
`(("r-futile-logger" ,r-futile-logger)
("r-snow" ,r-snow)
- branch master updated (74fdd0f -> 8f9fd9b), guix-commits, 2021/03/15
- 01/11: gnu: r-limma: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 02/11: gnu: r-xvector: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 06/11: gnu: r-biomart: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 07/11: gnu: r-biocparallel: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 03/11: gnu: r-genomicranges: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 04/11: gnu: r-biobase: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 05/11: gnu: r-annotationdbi: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 08/11: gnu: r-biostrings: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 09/11: gnu: r-rsamtools: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15
- 11/11: gnu: r-biocparallel: Build reproducibly.,
guix-commits <=
- 10/11: gnu: r-delayedarray: Move to (gnu packages bioconductor)., guix-commits, 2021/03/15