guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: r: Fix more reproducibility problems.


From: Ricardo Wurmus
Subject: 02/02: gnu: r: Fix more reproducibility problems.
Date: Wed, 8 Mar 2017 06:33:27 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit beaa026aa78a264e86668c0faa9af1f1f9b26b6b
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Feb 9 15:40:02 2017 +0100

    gnu: r: Fix more reproducibility problems.
    
    * gnu/packages/statistics.scm (r)[arguments]: Patch locations in the
    build system that need special treatment for reproducibility.
---
 gnu/packages/statistics.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index db719f6..65e5c2e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -134,6 +134,16 @@ be output in text, PostScript, PDF or HTML.")
                (("INSTALL_OPTS =(.*)" line rest )
                 (string-append "INSTALL_OPTS = --built-timestamp=1970-01-01"
                                rest)))
+             ;; Ensure that gzipped files are reproducible
+             (substitute* '("src/library/grDevices/Makefile.in"
+                            "doc/manual/Makefile.in")
+               (("R_GZIPCMD\\)" line)
+                (string-append line " -n")))
+             ;; This library is installed using "install_package_description",
+             ;; so we need to pass the "builtStamp" argument.
+             (substitute* "src/library/tools/Makefile.in"
+               (("(install_package_description\\(.*\"')\\)\"" line prefix)
+                (string-append prefix ", builtStamp='1970-01-01')\"")))
              #t))
          (add-before 'configure 'set-default-pager
           ;; Set default pager to "cat", because otherwise it is "false",



reply via email to

[Prev in Thread] Current Thread [Next in Thread]