summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-06-17 15:41:48 +0200
committerLudovic Courtès <ludo@gnu.org>2016-06-17 15:41:48 +0200
commit56501d3b1727cbafed25be4268c4e6c9387088d9 (patch)
treee7893bf9caa1cd0cca1e51b80b08fd208045bbe1 /gnu/packages
parent61dc82d9b90d0545739c30bfc33003bd062071f0 (diff)
downloadguix-56501d3b1727cbafed25be4268c4e6c9387088d9.tar.gz
gnu: netpbm: Remove timestamps from build products.
* gnu/packages/netpbm.scm (netpbm)[source]: Patch
"buildtools/stamp-date".
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/netpbm.scm13
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/packages/netpbm.scm b/gnu/packages/netpbm.scm
index 20ca87b4f1..cd0c3d950d 100644
--- a/gnu/packages/netpbm.scm
+++ b/gnu/packages/netpbm.scm
@@ -55,9 +55,8 @@
             (file-name (string-append name "-" version "-checkout"))
             (modules '((guix build utils)))
             (snippet
-             ;; Remove non-FSDG-compliant code.
              '(begin
-                (use-modules (guix build utils))
+                ;; Remove non-FSDG-compliant code.
 
                 (define-syntax drop
                   (syntax-rules (in)
@@ -85,7 +84,15 @@
                 (drop "pbmto4425" "pbmtoln03" "pbmtolps" "pbmtopk" "pktopbm"
                       in "converter/pbm")
                 (drop "spottopgm" in "converter/pgm")
-                (drop "ppmtopjxl" in "converter/ppm")))))
+                (drop "ppmtopjxl" in "converter/ppm")
+
+                ;; Remove timestamps from the generated code.
+                (substitute* "buildtools/stamp-date"
+                  (("^DATE=.*")
+                   "DATE=\"Thu Jan 01 00:00:00+0000 1970\"\n")
+                  (("^USER=.*")
+                   "USER=Guix\n"))))))
+
    (build-system gnu-build-system)
    (inputs `(("ghostscript" ,ghostscript)
              ("libjpeg" ,libjpeg)