unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: fontforge: Build fonts bit-reproducibly.
@ 2016-03-23 13:21 alírio eyng
  2016-03-23 22:21 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: alírio eyng @ 2016-03-23 13:21 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-fontforge-Build-fonts-bit-reproducibly.patch --]
[-- Type: text/x-patch, Size: 1805 bytes --]

From 701b9711b870ad4abdbea17616c98a456b93f86d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?al=C3=ADrio=20eyng?= <alirioeyng@gmail.com>
Date: Wed, 23 Mar 2016 13:13:35 +0000
Subject: [PATCH] gnu: fontforge: Build fonts bit-reproducibly.

* gnu/packages/fontutils.scm (fontforge)[source](snippet): Remove time dump on ttf.
---
 gnu/packages/fontutils.scm | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 34f391e..0f57675 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -352,13 +352,17 @@ definitions.")
             (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")))))
+             '(begin
+               (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"))
+               (substitute* "fontforge/tottf.c"
+                 (("at.>head\\.createtime\\[0\\]") "0")
+                 (("at.>head\\.modtime\\[0\\]") "0"))))))
    (build-system gnu-build-system)
    (native-inputs
     `(("pkg-config" ,pkg-config)))
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-31 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 13:21 [PATCH] gnu: fontforge: Build fonts bit-reproducibly alírio eyng
2016-03-23 22:21 ` Ludovic Courtès
2016-03-24  6:43   ` alírio eyng
2016-03-31 22:05     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).