guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: fontforge: Make builds bit-reproducible.


From: Ludovic Courtès
Subject: 02/02: gnu: fontforge: Make builds bit-reproducible.
Date: Sat, 19 Mar 2016 15:07:02 +0000

civodul pushed a commit to branch master
in repository guix.

commit 329a702634ec9b12f41676fb7b0680f0797f5907
Author: Ludovic Courtès <address@hidden>
Date:   Sat Mar 19 15:57:07 2016 +0100

    gnu: fontforge: Make builds bit-reproducible.
    
    * gnu/packages/fontutils.scm (fontforge)[source](snippet, modules): New
    fields.
---
 gnu/packages/fontutils.scm |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 1fcd173..01a0ee7 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -360,7 +360,17 @@ definitions.")
                   "https://github.com/fontforge/fontforge/releases/download/";
                   version "/fontforge-" version ".tar.gz"))
             (sha256 (base32
-                     "0gfcm8yn1d30giqhdwbchnfnspcqypqdzrxlhqhwy1i18wgl0v2v"))))
+                     "0gfcm8yn1d30giqhdwbchnfnspcqypqdzrxlhqhwy1i18wgl0v2v"))
+            (modules '((guix build utils)))
+            (snippet
+             ;; Make builds bit-reproducible by using fixed date strings.
+             '(substitute* "configure"
+                (("^FONTFORGE_MODTIME=.*$")
+                 "FONTFORGE_MODTIME=\"1458399002\"\n")
+                (("^FONTFORGE_MODTIME_STR=.*$")
+                 "FONTFORGE_MODTIME_STR=\"15:50 CET 19-Mar-2016\"\n")
+                (("^FONTFORGE_VERSIONDATE=.*$")
+                 "FONTFORGE_VERSIONDATE=\"20160319\"\n")))))
    (build-system gnu-build-system)
    (native-inputs
     `(("pkg-config" ,pkg-config)))



reply via email to

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