[Reproducible-commits] [fontforge] 01/02: Add a patch to propagate creation and modification times to TTF files

Jérémy Bobbio lunar at moszumanska.debian.org
Tue Dec 30 20:15:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository fontforge.

commit d9a8584451f6709f9b738acc3d5efc6922cb6249
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon Dec 29 11:07:52 2014 +0000

    Add a patch to propagate creation and modification times to TTF files
    
    This enable TrueType Font to be built reproducibly.
    
    Closes: #774148
---
 ...te-creation-and-modification-times-to-ttf.patch | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 36 insertions(+)

diff --git a/debian/patches/propagate-creation-and-modification-times-to-ttf.patch b/debian/patches/propagate-creation-and-modification-times-to-ttf.patch
new file mode 100644
index 0000000..251ca21
--- /dev/null
+++ b/debian/patches/propagate-creation-and-modification-times-to-ttf.patch
@@ -0,0 +1,35 @@
+commit c2bba17085e0b3521aa4985d98962804d8cb5d5a
+Author: Jérémy Bobbio <lunar at debian.org>
+Date:   Mon Dec 29 11:07:52 2014 +0000
+
+    Add a patch to propagate creation and modification times to TTF files
+    
+    This enable TrueType Font to be built reproducibly.
+    
+    Closes: #774148
+
+diff --git a/fontforge/tottf.c b/fontforge/tottf.c
+index 95fb3d7..5a94225 100644
+--- a/fontforge/tottf.c
++++ b/fontforge/tottf.c
+@@ -2816,7 +2816,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;
+@@ -2924,10 +2923,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->creationtime,head->createtime);
++    cvt_unix_to_1904(sf->modificationtime,head->modtime);
+ }
+ 
+ static void sethhead(struct hhead *hhead,struct hhead *vhead,struct alltabs *at, SplineFont *sf) {
diff --git a/debian/patches/series b/debian/patches/series
index b2bb030..b223c99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
 901_ld_as_needed.diff
 671971.diff
 gitignore
+propagate-creation-and-modification-times-to-ttf.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/fontforge.git



More information about the Reproducible-commits mailing list