[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: gnu: ghostscript: Fix build with FreeType 2.10.4.
From: |
guix-commits |
Subject: |
02/07: gnu: ghostscript: Fix build with FreeType 2.10.4. |
Date: |
Tue, 8 Dec 2020 16:59:22 -0500 (EST) |
mbakke pushed a commit to branch ungrafting
in repository guix.
commit 9337c16cb69fd47ca31ebe184d2a37028b978249
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Dec 8 22:18:30 2020 +0100
gnu: ghostscript: Fix build with FreeType 2.10.4.
This fixes a build failure from 79b31767d084a2feeb2edcb41ae863a0d534b847.
* gnu/packages/patches/ghostscript-freetype-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/ghostscript.scm (ghostscript)[source](patches): Add it.
---
gnu/local.mk | 1 +
gnu/packages/ghostscript.scm | 3 +-
.../patches/ghostscript-freetype-compat.patch | 35 ++++++++++++++++++++++
3 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index f59d254..97dd9a7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1055,6 +1055,7 @@ dist_patch_DATA =
\
%D%/packages/patches/ghc-monad-par-fix-tests.patch \
%D%/packages/patches/ghc-pandoc-fix-html-tests.patch \
%D%/packages/patches/ghc-pandoc-fix-latex-test.patch \
+ %D%/packages/patches/ghostscript-freetype-compat.patch \
%D%/packages/patches/ghostscript-no-header-id.patch \
%D%/packages/patches/ghostscript-no-header-uuid.patch \
%D%/packages/patches/ghostscript-no-header-creationdate.patch \
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 4d56f05..b132fba 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -170,7 +170,8 @@ printing, and psresize, for adjusting page sizes.")
(sha256
(base32
"0z1w42y2jmcpl2m1l3z0sfii6zmvzcwcgzn6bydklia6ig7jli2p"))
- (patches (search-patches "ghostscript-no-header-creationdate.patch"
+ (patches (search-patches "ghostscript-freetype-compat.patch"
+ "ghostscript-no-header-creationdate.patch"
"ghostscript-no-header-id.patch"
"ghostscript-no-header-uuid.patch"))
(modules '((guix build utils)))
diff --git a/gnu/packages/patches/ghostscript-freetype-compat.patch
b/gnu/packages/patches/ghostscript-freetype-compat.patch
new file mode 100644
index 0000000..cc225b5
--- /dev/null
+++ b/gnu/packages/patches/ghostscript-freetype-compat.patch
@@ -0,0 +1,35 @@
+Fix build with FreeType 2.10.3 and newer.
+
+Taken from upstream:
+https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=41ef9a0bc36b9db7115fbe9623f989bfb47bbade
+
+diff --git a/base/fapi_ft.c b/base/fapi_ft.c
+--- a/base/fapi_ft.c
++++ b/base/fapi_ft.c
+@@ -125,7 +125,7 @@ static void
+ delete_inc_int_info(gs_fapi_server * a_server,
+ FT_IncrementalRec * a_inc_int_info);
+
+-FT_CALLBACK_DEF(void *)
++static void *
+ FF_alloc(FT_Memory memory, long size)
+ {
+ gs_memory_t *mem = (gs_memory_t *) memory->user;
+@@ -133,7 +133,7 @@ FF_alloc(FT_Memory memory, long size)
+ return (gs_malloc(mem, size, 1, "FF_alloc"));
+ }
+
+-FT_CALLBACK_DEF(void *)
++static void *
+ FF_realloc(FT_Memory memory, long cur_size, long new_size, void *block)
+ {
+ gs_memory_t *mem = (gs_memory_t *) memory->user;
+@@ -153,7 +153,7 @@ FT_CALLBACK_DEF(void *)
+ return (tmp);
+ }
+
+-FT_CALLBACK_DEF(void)
++static void
+ FF_free(FT_Memory memory, void *block)
+ {
+ gs_memory_t *mem = (gs_memory_t *) memory->user;
- branch ungrafting updated (3eb34c66 -> f936a30), guix-commits, 2020/12/08
- 06/07: gnu: OpenSSL: Update to 1.1.1i [fixes CVE-2020-1971]., guix-commits, 2020/12/08
- 01/07: gnu: node: Update to 10.22.1., guix-commits, 2020/12/08
- 04/07: gnu: libspiro: Update source URI., guix-commits, 2020/12/08
- 07/07: gnu: Python: Fix CVE-2020-26116., guix-commits, 2020/12/08
- 03/07: gnu: ghostscript: Fix CVE-2020-15900., guix-commits, 2020/12/08
- 02/07: gnu: ghostscript: Fix build with FreeType 2.10.4.,
guix-commits <=
- 05/07: gnu: cURL: Update to 7.73.0 [fixes CVE-2020-8231]., guix-commits, 2020/12/08