- update to 1.2.4
* unifdef __UNIXOS2__ * unifdef __SCO__ * unifdef NEED_SNPRINTF * Use long long for timestamp diff * Allow to override build date with SOURCE_DATE_EPOCH * Use FONT_UNITS_FLOOR for ascent/descent * Fix `cmap` Subtable Format 4 `entrySelector` - supersedes reproducible.patch OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/fonttosfnt?expand=0&rev=22
This commit is contained in:
parent
d6462de19a
commit
fac59dafcd
BIN
fonttosfnt-1.2.3.tar.xz
(Stored with Git LFS)
BIN
fonttosfnt-1.2.3.tar.xz
(Stored with Git LFS)
Binary file not shown.
3
fonttosfnt-1.2.4.tar.xz
Normal file
3
fonttosfnt-1.2.4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:249635f67fb94fabd46837283c40ba8dd5e7b774df2bac03d5026a3480766372
|
||||||
|
size 143928
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 12 17:41:37 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
- update to 1.2.4
|
||||||
|
* unifdef __UNIXOS2__
|
||||||
|
* unifdef __SCO__
|
||||||
|
* unifdef NEED_SNPRINTF
|
||||||
|
* Use long long for timestamp diff
|
||||||
|
* Allow to override build date with SOURCE_DATE_EPOCH
|
||||||
|
* Use FONT_UNITS_FLOOR for ascent/descent
|
||||||
|
* Fix `cmap` Subtable Format 4 `entrySelector`
|
||||||
|
- supersedes reproducible.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 9 09:48:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Wed Oct 9 09:48:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -17,14 +17,13 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: fonttosfnt
|
Name: fonttosfnt
|
||||||
Version: 1.2.3
|
Version: 1.2.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility to wrap a bitmap font in a sfnt (TrueType) wrapper
|
Summary: Utility to wrap a bitmap font in a sfnt (TrueType) wrapper
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System/X11/Utilities
|
Group: System/X11/Utilities
|
||||||
URL: https://xorg.freedesktop.org/
|
URL: https://xorg.freedesktop.org/
|
||||||
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
|
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
|
||||||
Patch0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/22.patch#/reproducible.patch
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(fontenc)
|
BuildRequires: pkgconfig(fontenc)
|
||||||
BuildRequires: pkgconfig(freetype2)
|
BuildRequires: pkgconfig(freetype2)
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
From 5fb8b61537b832561f074a6d400956c8cb6b31a5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
|
||||||
Date: Wed, 24 Jul 2024 16:27:35 +0200
|
|
||||||
Subject: [PATCH 1/2] Use long long for timestamp diff
|
|
||||||
|
|
||||||
to avoid integer overflows in the future
|
|
||||||
|
|
||||||
Part-of: <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/22>
|
|
||||||
---
|
|
||||||
util.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/util.c b/util.c
|
|
||||||
index a393e55..a810c87 100644
|
|
||||||
--- a/util.c
|
|
||||||
+++ b/util.c
|
|
||||||
@@ -181,7 +181,7 @@ mktime_gmt(struct tm *tm)
|
|
||||||
int
|
|
||||||
macTime(int *hi, unsigned *lo)
|
|
||||||
{
|
|
||||||
- unsigned long diff; /* Not time_t */
|
|
||||||
+ unsigned long long diff; /* Not time_t */
|
|
||||||
time_t macEpoch, current;
|
|
||||||
struct tm tm;
|
|
||||||
tm.tm_sec = 0;
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
||||||
|
|
||||||
From 2a6a5574001d7a9959ba4d924522b96f8cc57b43 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
|
||||||
Date: Wed, 24 Jul 2024 16:28:43 +0200
|
|
||||||
Subject: [PATCH 2/2] Allow to override build date with SOURCE_DATE_EPOCH
|
|
||||||
|
|
||||||
to make builds reproducible.
|
|
||||||
See https://reproducible-builds.org/ for why this is good
|
|
||||||
and https://reproducible-builds.org/specs/source-date-epoch/
|
|
||||||
for the definition of this variable.
|
|
||||||
|
|
||||||
This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.
|
|
||||||
|
|
||||||
Part-of: <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/22>
|
|
||||||
---
|
|
||||||
util.c | 7 ++++++-
|
|
||||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/util.c b/util.c
|
|
||||||
index a810c87..a7207f8 100644
|
|
||||||
--- a/util.c
|
|
||||||
+++ b/util.c
|
|
||||||
@@ -182,6 +182,7 @@ int
|
|
||||||
macTime(int *hi, unsigned *lo)
|
|
||||||
{
|
|
||||||
unsigned long long diff; /* Not time_t */
|
|
||||||
+ char *source_date_epoch;
|
|
||||||
time_t macEpoch, current;
|
|
||||||
struct tm tm;
|
|
||||||
tm.tm_sec = 0;
|
|
||||||
@@ -195,7 +196,11 @@ macTime(int *hi, unsigned *lo)
|
|
||||||
macEpoch = mktime_gmt(&tm);
|
|
||||||
if(macEpoch == -1) return -1;
|
|
||||||
|
|
||||||
- current = time(NULL);
|
|
||||||
+ /* This assumes that the SOURCE_DATE_EPOCH environment variable will contain
|
|
||||||
+ a correct, positive integer in the time_t range */
|
|
||||||
+ if ((source_date_epoch = getenv("SOURCE_DATE_EPOCH")) == NULL ||
|
|
||||||
+ (current = (time_t)strtoll(source_date_epoch, NULL, 10)) <= 0)
|
|
||||||
+ current = time(NULL);
|
|
||||||
if(current == -1)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user