From 0dde3aaf3ec712b34567f82ccf6894b5522de5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?al=C3=ADrio=20eyng?= Date: Thu, 24 Mar 2016 06:17:04 +0000 Subject: [PATCH] gnu: fontforge: Build fonts bit-reproducibly. * gnu/packages/fontutils.scm (fontforge)[source](snippet): Remove timestamp on ttf. --- gnu/packages/fontutils.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 34f391e..2821867 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -352,13 +352,16 @@ 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" + (("cvt_unix_to_1904\\(now") "cvt_unix_to_1904(0")))))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) -- 1.9.1