guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: xorg: Make font packages bit-reproducible.


From: Ludovic Courtès
Subject: 02/02: gnu: xorg: Make font packages bit-reproducible.
Date: Sat, 14 Jan 2017 18:39:57 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit ed824a36c453c31118bb54e4d4349e5dc6907b83
Author: Ludovic Courtès <address@hidden>
Date:   Sat Jan 14 19:37:52 2017 +0100

    gnu: xorg: Make font packages bit-reproducible.
    
    * gnu/packages/xorg.scm (%xorg-font-origin): Add 'snippet' and 'modules'
    fields.
---
 gnu/packages/xorg.scm |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index bbd0203..b780d47 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -404,7 +404,14 @@ Resources file.")
     (method url-fetch)
     (uri (string-append "mirror://xorg/individual/font/" font "-"
                         version ".tar.bz2"))
-    (sha256 hash)))
+    (sha256 hash)
+    (modules '((guix build utils)))
+    (snippet
+     ;; Do not include timestamps in '.pcf.gz' files.
+     '(substitute* "Makefile.in"
+        (("^COMPRESS = (.*)$" _ rest)
+         (string-append "COMPRESS = " (string-trim-right rest)
+                        " --no-name\n"))))))
 
 (define-syntax-rule (xorg-font-origin font version hash)
   "Expand to the 'origin' form for the given Xorg font package."



reply via email to

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