diff options
| author | Marius Bakke <marius@gnu.org> | 2020-12-08 22:18:30 +0100 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2020-12-08 22:57:53 +0100 |
| commit | 9337c16cb69fd47ca31ebe184d2a37028b978249 (patch) | |
| tree | 7b27526b99a20a3f34f7ad66fadcb4da1c58db34 /gnu/packages | |
| parent | 18f10c0b12dd369507fd2821dcf748fc9b13053a (diff) | |
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.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/ghostscript.scm | 3 | ||||
| -rw-r--r-- | gnu/packages/patches/ghostscript-freetype-compat.patch | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 4d56f05cf20..b132fba7eb7 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm | |||
| @@ -170,7 +170,8 @@ printing, and psresize, for adjusting page sizes.") | |||
| 170 | (sha256 | 170 | (sha256 |
| 171 | (base32 | 171 | (base32 |
| 172 | "0z1w42y2jmcpl2m1l3z0sfii6zmvzcwcgzn6bydklia6ig7jli2p")) | 172 | "0z1w42y2jmcpl2m1l3z0sfii6zmvzcwcgzn6bydklia6ig7jli2p")) |
| 173 | (patches (search-patches "ghostscript-no-header-creationdate.patch" | 173 | (patches (search-patches "ghostscript-freetype-compat.patch" |
| 174 | "ghostscript-no-header-creationdate.patch" | ||
| 174 | "ghostscript-no-header-id.patch" | 175 | "ghostscript-no-header-id.patch" |
| 175 | "ghostscript-no-header-uuid.patch")) | 176 | "ghostscript-no-header-uuid.patch")) |
| 176 | (modules '((guix build utils))) | 177 | (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 00000000000..cc225b5ad64 --- /dev/null +++ b/gnu/packages/patches/ghostscript-freetype-compat.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | Fix build with FreeType 2.10.3 and newer. | ||
| 2 | |||
| 3 | Taken from upstream: | ||
| 4 | https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=41ef9a0bc36b9db7115fbe9623f989bfb47bbade | ||
| 5 | |||
| 6 | diff --git a/base/fapi_ft.c b/base/fapi_ft.c | ||
| 7 | --- a/base/fapi_ft.c | ||
| 8 | +++ b/base/fapi_ft.c | ||
| 9 | @@ -125,7 +125,7 @@ static void | ||
| 10 | delete_inc_int_info(gs_fapi_server * a_server, | ||
| 11 | FT_IncrementalRec * a_inc_int_info); | ||
| 12 | |||
| 13 | -FT_CALLBACK_DEF(void *) | ||
| 14 | +static void * | ||
| 15 | FF_alloc(FT_Memory memory, long size) | ||
| 16 | { | ||
| 17 | gs_memory_t *mem = (gs_memory_t *) memory->user; | ||
| 18 | @@ -133,7 +133,7 @@ FF_alloc(FT_Memory memory, long size) | ||
| 19 | return (gs_malloc(mem, size, 1, "FF_alloc")); | ||
| 20 | } | ||
| 21 | |||
| 22 | -FT_CALLBACK_DEF(void *) | ||
| 23 | +static void * | ||
| 24 | FF_realloc(FT_Memory memory, long cur_size, long new_size, void *block) | ||
| 25 | { | ||
| 26 | gs_memory_t *mem = (gs_memory_t *) memory->user; | ||
| 27 | @@ -153,7 +153,7 @@ FT_CALLBACK_DEF(void *) | ||
| 28 | return (tmp); | ||
| 29 | } | ||
| 30 | |||
| 31 | -FT_CALLBACK_DEF(void) | ||
| 32 | +static void | ||
| 33 | FF_free(FT_Memory memory, void *block) | ||
| 34 | { | ||
| 35 | gs_memory_t *mem = (gs_memory_t *) memory->user; | ||
