From 6439c2477a766e33983393a01f4714b78a3a0968 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Thu, 30 Dec 2021 18:59:11 -0500 Subject: [PATCH] apply fix from upstream bug 704737, preventing asymptote from working properly --- ...fault_copy_alpha-calling-get_bits_rectangle.patch | 12 ++++++++++++ ghostscript.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ghostscript-9.55.0-fix-gx_default_copy_alpha-calling-get_bits_rectangle.patch diff --git a/ghostscript-9.55.0-fix-gx_default_copy_alpha-calling-get_bits_rectangle.patch b/ghostscript-9.55.0-fix-gx_default_copy_alpha-calling-get_bits_rectangle.patch new file mode 100644 index 0000000..c25e9ca --- /dev/null +++ b/ghostscript-9.55.0-fix-gx_default_copy_alpha-calling-get_bits_rectangle.patch @@ -0,0 +1,12 @@ +diff -up ghostscript-9.55.0/base/gdevdbit.c.fix-gx_default_copy_alpha-calling-get_bits_rectangle ghostscript-9.55.0/base/gdevdbit.c +--- ghostscript-9.55.0/base/gdevdbit.c.fix-gx_default_copy_alpha-calling-get_bits_rectangle 2021-12-30 18:39:58.655089208 -0500 ++++ ghostscript-9.55.0/base/gdevdbit.c 2021-12-30 18:40:57.458462173 -0500 +@@ -379,7 +379,7 @@ gx_default_copy_alpha(gx_device * dev, c + int l_xprev = x; + gs_get_bits_params_t params; + +- params.options = (GB_ALIGN_ANY | ++ params.options = (GB_ALIGN_STANDARD | + (GB_RETURN_COPY | GB_RETURN_POINTER) | + GB_OFFSET_0 | + GB_RASTER_STANDARD | GB_PACKING_CHUNKY | diff --git a/ghostscript.spec b/ghostscript.spec index ffcf02a..7f5868c 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -45,7 +45,7 @@ Name: ghostscript Summary: Interpreter for PostScript language & PDF Version: 9.55.0 -Release: 1%{?dist} +Release: 2%{?dist} License: AGPLv3+ @@ -104,6 +104,10 @@ BuildRequires: make # ---------------- last rebase that are necessary for any reason: #Patch000: example000.patch Patch001: ghostscript-9.55-fix-typo-in-gsicc-lcms2.patch +# https://bugs.ghostscript.com/show_bug.cgi?id=704737 +# https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=d9d8db23e862707795e76ea8f8cdcf7434b2df65 +Patch002: ghostscript-9.55.0-fix-gx_default_copy_alpha-calling-get_bits_rectangle.patch + # Downstream patches -- these should be always included when doing rebase: # ------------------ @@ -434,6 +438,9 @@ done # ============================================================================= %changelog +* Thu Dec 30 2021 Tom Callaway - 9.55.0-2 +- apply fix from upstream bug 704737, preventing asymptote from working properly + * Mon Oct 11 2021 Richard Lescak - 9.55.0-1 - Rebase to new gs version (#2008146)