Accepting request 284167 from M17N
- added propagate-creation-and-modification-times-to-ttf.patch from debian's reproducible build project to get reproducible font builds OBS-URL: https://build.opensuse.org/request/show/284167 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fontforge?expand=0&rev=38
This commit is contained in:
commit
1b0ad53491
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 5 08:45:26 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- added propagate-creation-and-modification-times-to-ttf.patch from
|
||||||
|
debian's reproducible build project to get reproducible font builds
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 2 22:54:57 UTC 2014 - crrodriguez@opensuse.org
|
Thu Oct 2 22:54:57 UTC 2014 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package fontforge
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -36,6 +36,8 @@ Patch3: fontforge-python-module-name.diff
|
|||||||
Patch4: fontforge-fixgiflib.patch
|
Patch4: fontforge-fixgiflib.patch
|
||||||
# PATCH-FIX-UPSTREAM http://sourceforge.net/p/fontforge/git/ci/9ae25e0
|
# PATCH-FIX-UPSTREAM http://sourceforge.net/p/fontforge/git/ci/9ae25e0
|
||||||
Patch5: fontforge-arraysubscript.patch
|
Patch5: fontforge-arraysubscript.patch
|
||||||
|
# suse specific
|
||||||
|
Patch6: propagate-creation-and-modification-times-to-ttf.patch
|
||||||
BuildRequires: cairo-devel
|
BuildRequires: cairo-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: fontconfig-devel
|
BuildRequires: fontconfig-devel
|
||||||
@ -109,6 +111,7 @@ to develop applications that use FontForge libraries.
|
|||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
mkdir docs
|
mkdir docs
|
||||||
tar -jxvf %{SOURCE1} -C docs
|
tar -jxvf %{SOURCE1} -C docs
|
||||||
chmod 644 docs/quadraticspline.gif
|
chmod 644 docs/quadraticspline.gif
|
||||||
|
33
propagate-creation-and-modification-times-to-ttf.patch
Normal file
33
propagate-creation-and-modification-times-to-ttf.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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) {
|
Loading…
Reference in New Issue
Block a user