From: Leo Famulari <leo@famulari.name>
To: Eric Bavier <bavier@member.fsf.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 6/9] gnu: fontforge: Make SVG builds reproducible.
Date: Wed, 6 Apr 2016 13:56:57 -0400 [thread overview]
Message-ID: <20160406175657.GC484@jasmine> (raw)
In-Reply-To: <b7076617f3d8982a1574813fe5423fea@openmailbox.org>
On Wed, Apr 06, 2016 at 12:44:31PM -0500, Eric Bavier wrote:
> On 2016-04-06 12:36, Leo Famulari wrote:
> >On Tue, Apr 05, 2016 at 11:32:58PM -0500, ericbavier@openmailbox.org
> >wrote:
> >>From: Eric Bavier <bavier@member.fsf.org>
> >>
> >>* 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).
You could put the logic in the package definition and string-append the
value into svg.c.
If not, can you set the ctime to '1'? That is what we are using as the
value of SOURCE_DATE_EPOCH on Guix:
http://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/gnu-build-system.scm#n46
next prev parent reply other threads:[~2016-04-06 17:57 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 4:32 [PATCH 1/9] gnu: Add ttfautohint ericbavier
2016-04-06 4:32 ` [PATCH 2/9] gnu: Add woff-tools ericbavier
2016-04-07 6:18 ` Efraim Flashner
2016-04-07 14:25 ` Eric Bavier
2016-04-13 21:37 ` Ludovic Courtès
2016-04-06 4:32 ` [PATCH 3/9] gnu: Add ttf2eot ericbavier
2016-04-07 6:24 ` Efraim Flashner
2016-04-07 14:30 ` Eric Bavier
2016-04-08 3:49 ` Eric Bavier
2016-04-13 21:39 ` Ludovic Courtès
2016-04-06 4:32 ` [PATCH 4/9] gnu: Add brotli ericbavier
2016-04-13 21:44 ` Ludovic Courtès
2016-04-06 4:32 ` [PATCH 5/9] gnu: Add woff2 ericbavier
2016-04-06 4:32 ` [PATCH 6/9] gnu: fontforge: Make SVG builds reproducible ericbavier
2016-04-06 17:36 ` Leo Famulari
2016-04-06 17:44 ` Eric Bavier
2016-04-06 17:56 ` Leo Famulari [this message]
2016-04-06 4:32 ` [PATCH 7/9] gnu: Add font-fantasque-sans ericbavier
2016-04-06 4:33 ` [PATCH 8/9] gnu: fontforge: Use modify-phases ericbavier
2016-04-06 4:33 ` [PATCH 9/9] gnu: fontforge: Install 'showttf' tool ericbavier
2016-04-06 12:13 ` [PATCH 1/9] gnu: Add ttfautohint Alex Kost
2016-04-06 14:57 ` Eric Bavier
2016-04-07 9:52 ` Specifying package patches in a more convenient form Alex Kost
2016-04-07 10:08 ` Andy Wingo
2016-04-07 14:41 ` Eric Bavier
2016-04-08 8:05 ` Alex Kost
2016-04-09 14:43 ` Ludovic Courtès
2016-04-07 21:54 ` Ludovic Courtès
2016-04-09 8:22 ` Alex Kost
2016-04-09 11:42 ` Andreas Enge
2016-04-09 16:40 ` Alex Kost
2016-04-13 21:40 ` [PATCH 1/9] gnu: Add ttfautohint Ludovic Courtès
2016-04-13 21:36 ` Ludovic Courtès
2016-04-14 14:43 ` Eric Bavier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160406175657.GC484@jasmine \
--to=leo@famulari.name \
--cc=bavier@member.fsf.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.