guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 6/9] gnu: fontforge: Make SVG builds reproducible.


From: Eric Bavier
Subject: Re: [PATCH 6/9] gnu: fontforge: Make SVG builds reproducible.
Date: Wed, 06 Apr 2016 12:44:31 -0500
User-agent: Roundcube Webmail/1.0.6

On 2016-04-06 12:36, Leo Famulari wrote:
On Tue, Apr 05, 2016 at 11:32:58PM -0500, address@hidden wrote:
From: Eric Bavier <address@hidden>

* gnu/packages/fontutils.scm (fontforge)[source]: Add snippet to clear
  timestamp in svg.c.
---
 gnu/packages/fontutils.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 75edd55..5ca9835 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -512,7 +512,12 @@ definitions.")
;; Make TTF builds bit-reproducible by clearing the timestamp
                ;; that goes in TTF files.
                (substitute* "fontforge/tottf.c"
- (("cvt_unix_to_1904\\(now") "cvt_unix_to_1904(0"))))))
+                 (("cvt_unix_to_1904\\(now") "cvt_unix_to_1904(0"))
+
+ ;; Make SVG builds bit-reproducible by clearing the timestamp
+               ;; that goes in SVG files.
+               (substitute* "fontforge/svg.c"
+                 (("ctime\\(&now\\)") "ctime(0)"))))))

Could you use the value of the environment variable SOURCE_DATE_EPOCH
instead of 0?

Probably. But I'd save that for a later update, since it would be a much bigger change (that we could hopefully move upstream).

`~Eric



reply via email to

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