guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: r-minimal: Remove timestamp from man page.


From: Ricardo Wurmus
Subject: 01/01: gnu: r-minimal: Remove timestamp from man page.
Date: Mon, 28 Aug 2017 09:51:33 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 174fbd5f3b2f286cf06e58787853db6b8f0f5b35
Author: Ricardo Wurmus <address@hidden>
Date:   Sun Aug 27 13:52:42 2017 +0200

    gnu: r-minimal: Remove timestamp from man page.
    
    * gnu/packages/statistics.scm (r-minimal)[arguments]: Adjust
    "build-reproducibly" phase to prevent the bundled help2man script from
    printing the current month and year.
---
 gnu/packages/statistics.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 1fe82d5..a6c1f04 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -185,6 +185,14 @@ be output in text, PostScript, PDF or HTML.")
              (substitute* "src/library/tools/Makefile.in"
                (("(install_package_description\\(.*\"')\\)\"" line prefix)
                 (string-append prefix ", builtStamp='1970-01-01')\"")))
+
+             ;; R bundles an older version of help2man, which does not respect
+             ;; SOURCE_DATE_EPOCH.  We cannot just use the latest help2man,
+             ;; because that breaks a test.
+             (with-fluids ((%default-port-encoding "ISO-8859-1"))
+               (substitute* "tools/help2man.pl"
+                 (("my \\$date = strftime \"%B %Y\", localtime" line)
+                  (string-append line " 1"))))
              #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]