bug-guix
[Top][All Lists]
Advanced

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

bug#27593: [PATCH] gnu: groff: Remove timestamps.


From: Danny Milosavljevic
Subject: bug#27593: [PATCH] gnu: groff: Remove timestamps.
Date: Thu, 6 Jul 2017 03:01:44 +0200

Fixes <https://bugs.gnu.org/27593>.

* gnu/packages/groff.scm (groff)[source]: Remove timestamps.
---
 gnu/packages/groff.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/groff.scm b/gnu/packages/groff.scm
index 46e1ccf23..e5dd732ab 100644
--- a/gnu/packages/groff.scm
+++ b/gnu/packages/groff.scm
@@ -40,7 +40,20 @@
             (uri (string-append "mirror://gnu/groff/groff-" version
                                 ".tar.gz"))
             (sha256 (base32
-                     "1998v2kcs288d3y7kfxpvl369nqi06zbbvjzafyvyl3pr7bajj1s"))))
+                     "1998v2kcs288d3y7kfxpvl369nqi06zbbvjzafyvyl3pr7bajj1s"))
+            (modules '((guix build utils)))
+            (snippet
+             '(begin
+                (substitute* "mdate.sh"
+                 (("^LANGUAGE=") "
+
+echo \"1 Jan 1970\"
+exit 0
+
+"))
+                (substitute* '("src/devices/grops/ps.cpp"
+                               "src/devices/grohtml/post-html.cpp")
+                  (("time\\(0\\)") "0"))))))
    (build-system gnu-build-system)
    (outputs '("out"
               "doc"))                    ;12MiB of PS, PDF, HTML, and examples





reply via email to

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