diff --git a/0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch b/0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch new file mode 100644 index 0000000..4fcd14a --- /dev/null +++ b/0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch @@ -0,0 +1,25 @@ +From b7beb19ad06e08b889a44694ff813ed5f6c96da4 Mon Sep 17 00:00:00 2001 +From: Chris Liddell +Date: Thu, 14 Sep 2023 09:01:43 +0100 +Subject: [PATCH] Bug 707130: Cast to void ** to avoid compiler warning + +--- + base/fapi_ft.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/base/fapi_ft.c b/base/fapi_ft.c +index ccd629757..fc185bfd7 100644 +--- a/base/fapi_ft.c ++++ b/base/fapi_ft.c +@@ -1280,7 +1280,7 @@ gs_fapi_ft_get_scaled_font(gs_fapi_server * a_server, gs_fapi_font * a_font, + + if (a_font->retrieve_tt_font != NULL) { + unsigned int ms; +- code = a_font->retrieve_tt_font(a_font, &own_font_data, &ms); ++ code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms); + if (code == 0) { + data_owned = false; + open_args.memory_base = own_font_data; +-- +2.43.0 + diff --git a/ghostscript.spec b/ghostscript.spec index bf51159..ea839c2 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -45,7 +45,7 @@ Name: ghostscript Summary: Interpreter for PostScript language & PDF Version: 10.02.1 -Release: 4%{?dist} +Release: 5%{?dist} License: AGPL-3.0-or-later @@ -107,6 +107,8 @@ BuildRequires: make #Patch000: example000.patch Patch: ghostscript-10.02.1-txtwrite-device-needs-to-countdown-the-device-on-tex.patch Patch: ghostscript-10.02.1-PostScript-Fix-selectdevice.patch +# https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=b7beb19ad06e +Patch: 0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch # Downstream patches -- these should be always included when doing rebase: # ------------------ @@ -420,6 +422,9 @@ done # ============================================================================= %changelog +* Tue Jan 09 2024 Zdenek Dohnal - 10.02.1-5 +- fix FTBFS with GCC 14 + * Tue Nov 07 2023 Michael J Gruber - 10.02.1-4 - fix txtwrite device and /selectdevice