diff --git a/SOURCES/0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch b/SOURCES/0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch new file mode 100644 index 0000000..aeaef68 --- /dev/null +++ b/SOURCES/0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch @@ -0,0 +1,27 @@ +From e7103a7aaa43ab613701cbf094e0aa91e6526112 Mon Sep 17 00:00:00 2001 +From: Till Kamppeter +Date: Tue, 8 Oct 2019 23:38:54 +0200 +Subject: [PATCH] gstoraster: Use ".setfilladjust2" PostScript command for + Center-of-Pixel method to fill paths. + +--- + NEWS | 6 ++++++ + filter/gstoraster.c | 2 +- + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/filter/gstoraster.c b/filter/gstoraster.c +index 4aec0799..59f39927 100644 +--- a/filter/gstoraster.c ++++ b/filter/gstoraster.c +@@ -895,7 +895,7 @@ main (int argc, char **argv, char *envp[]) + (t && (!strcasecmp(t, "true") || !strcasecmp(t, "on") || + !strcasecmp(t, "yes")))) { + fprintf(stderr, "DEBUG: Ghostscript using Center-of-Pixel method to fill paths.\n"); +- cupsArrayAdd(gs_args, strdup("0 .setfilladjust")); ++ cupsArrayAdd(gs_args, strdup("0 0 .setfilladjust2")); + } else + fprintf(stderr, "DEBUG: Ghostscript using Any-Part-of-Pixel method to fill paths.\n"); + +-- +2.26.2 + diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index fdfa495..48382e3 100644 --- a/SPECS/cups-filters.spec +++ b/SPECS/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.20.0 -Release: 22%{?dist} +Release: 23%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -47,6 +47,8 @@ Patch10: cups-browsed-memory-leaks.patch Patch11: foomatic-remove-tmpfile.patch # 1889798 - Rebuild cups-filters due to rebase of poppler Patch12: poppler-20.11.0.patch +# 1894543 - Fix '.setfilladjust' usage after gs upgrade to 9.27 +Patch13: 0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -180,6 +182,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch11 -p1 -b .remove-tmpfile # 1889798 - Rebuild cups-filters due to rebase of poppler %patch12 -p1 -b .poppler2011 +# 1894543 - Fix '.setfilladjust' usage after gs upgrade to 9.27 +%patch13 -p1 -b .setfilladjust %build # work-around Rpath @@ -326,6 +330,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Tue Dec 08 2020 Zdenek Dohnal - 1.20.0-23 +- 1894543 - Fix '.setfilladjust' usage after gs upgrade to 9.27 + * Wed Nov 18 2020 Zdenek Dohnal - 1.20.0-22 - 1889798 - Rebuild cups-filters due to rebase of poppler