[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: blast+: Build reproducibly.
From: |
guix-commits |
Subject: |
branch master updated: gnu: blast+: Build reproducibly. |
Date: |
Thu, 29 Sep 2022 17:54:59 -0400 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 1ee2d117d8 gnu: blast+: Build reproducibly.
1ee2d117d8 is described below
commit 1ee2d117d8fa9e2e0d4ec46cc5555497bb5e6337
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Sep 29 23:17:19 2022 +0200
gnu: blast+: Build reproducibly.
Fixes <https://issues.guix.gnu.org/42141>.
* gnu/packages/bioinformatics.scm (blast+)[source]: Do not record kernel
version and use fix set of random numbers.
---
gnu/packages/bioinformatics.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index a034bf134e..ca341a45a7 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1656,7 +1656,27 @@ package provides command line tools using the Bio++
library.")
;; Remove useless msbuild directory
(delete-file-recursively
"c++/src/build-system/project_tree_builder/msbuild")
- #t))))
+
+ ;; Build reproducibly.
+ ;; Do not record the kernel version
+ (substitute* "c++/src/build-system/configure"
+ (("kver=.*") "kver=\"\""))
+ ;; Do not generate random numbers.
+ (substitute*
"c++/scripts/common/impl/define_random_macros.sh"
+ (("#define NCBI_RANDOM_VALUE_MAX 0xffffffffu" m)
+ (string-append m "
+#define NCBI_RANDOM_VALUE_0 2845495105u
+#define NCBI_RANDOM_VALUE_1 2158634051u
+#define NCBI_RANDOM_VALUE_2 4072202242u
+#define NCBI_RANDOM_VALUE_3 902228395u
+#define NCBI_RANDOM_VALUE_4 1353323915u
+#define NCBI_RANDOM_VALUE_5 574823513u
+#define NCBI_RANDOM_VALUE_6 4119501261u
+#define NCBI_RANDOM_VALUE_7 2477640938u
+#define NCBI_RANDOM_VALUE_8 2776595395u
+#define NCBI_RANDOM_VALUE_9 270550684u
+"))
+ (("cksum") "cksum >/dev/null"))))))
(build-system gnu-build-system)
(arguments
`(;; There are two(!) tests for this massive library, and both fail with
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: blast+: Build reproducibly.,
guix-commits <=