Hello community,

here is the log from the commit of package fontforge for openSUSE:Factory 
checked in at 2015-02-06 10:55:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fontforge (Old)
 and      /work/SRC/openSUSE:Factory/.fontforge.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fontforge"

Changes:
--------
--- /work/SRC/openSUSE:Factory/fontforge/fontforge.changes      2014-10-06 
22:04:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.fontforge.new/fontforge.changes 2015-02-06 
10:55:18.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Feb  5 08:45:26 UTC 2015 - co...@suse.com
+
+- added propagate-creation-and-modification-times-to-ttf.patch from
+  debian's reproducible build project to get reproducible font builds
+
+-------------------------------------------------------------------

New:
----
  propagate-creation-and-modification-times-to-ttf.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fontforge.spec ++++++
--- /var/tmp/diff_new_pack.iSmOUW/_old  2015-02-06 10:55:19.000000000 +0100
+++ /var/tmp/diff_new_pack.iSmOUW/_new  2015-02-06 10:55:19.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package fontforge
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -36,6 +36,8 @@
 Patch4:         fontforge-fixgiflib.patch
 # PATCH-FIX-UPSTREAM http://sourceforge.net/p/fontforge/git/ci/9ae25e0
 Patch5:         fontforge-arraysubscript.patch
+# suse specific
+Patch6:         propagate-creation-and-modification-times-to-ttf.patch
 BuildRequires:  cairo-devel
 BuildRequires:  fdupes
 BuildRequires:  fontconfig-devel
@@ -109,6 +111,7 @@
 %patch4 -p1
 %endif
 %patch5 -p1
+%patch6 -p1
 mkdir docs
 tar -jxvf %{SOURCE1} -C docs
 chmod 644 docs/quadraticspline.gif

++++++ propagate-creation-and-modification-times-to-ttf.patch ++++++
From: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774148

Description: propagate creation and modification times to TTF
 Instead of using the current time as creation and modification
 times when writing a TrueType Font file, we now propagate those
 coming from the source. This enables TrueType Font to be built
 reproducibly.

diff --git a/fontforge/tottf.c b/fontforge/tottf.c
index a980610..3d488b0 100644
--- a/fontforge/tottf.c
+++ b/fontforge/tottf.c
@@ -2812,7 +2812,6 @@ void cvt_unix_to_1904( long time, int32 result[2]) {
 
 static void sethead(struct head *head,SplineFont *sf,struct alltabs *at,
        enum fontformat format, int32 *bsizes) {
-    time_t now;
     int i, lr, rl, indic_rearrange, arabic;
     ASM *sm;
     struct ttflangname *useng;
@@ -2920,10 +2919,8 @@ static void sethead(struct head *head,SplineFont 
*sf,struct alltabs *at,
        head->flags |= (1<<9);          /* Apple documents this */
     /* if there are any indic characters, set bit 10 */
 
-    time(&now);                /* seconds since 1970, need to convert to 
seconds since 1904 */
-    cvt_unix_to_1904(now,head->modtime);
-    memcpy(head->createtime,head->modtime,sizeof(head->modtime));
-
+    cvt_unix_to_1904(sf->modificationtime,head->modtime);
+    cvt_unix_to_1904(sf->creationtime,head->createtime);
 }
 
 static void sethhead(struct hhead *hhead,struct hhead *vhead,struct alltabs 
*at, SplineFont *sf) {
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to