diff --git a/cups-filters-setfilladjust.patch b/cups-filters-setfilladjust.patch new file mode 100644 index 0000000..c9d3be2 --- /dev/null +++ b/cups-filters-setfilladjust.patch @@ -0,0 +1,13 @@ +diff --git a/filter/gstoraster.c b/filter/gstoraster.c +index 4aec079..f3424f3 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"); + diff --git a/cups-filters.spec b/cups-filters.spec index 06838f0..5b6c52f 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.22.5 -Release: 6%{?dist} +Release: 7%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -34,6 +34,8 @@ Patch03: cups-filters-foomaticrip-segfault.patch Patch04: pdftopdf-nocrypt.patch # backported from upstream, ftbfs with qpdf-9.0.0 Patch05: cups-filters-qpdf-9.patch +# backported from upstream, gs 9.27 uses now setfilladjust2 +Patch06: cups-filters-setfilladjust.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -148,6 +150,7 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch03 -p1 -b .foomaticrip-segfault %patch04 -p1 -b .pdftopdf-nocrypt %patch05 -p1 -b .qpdf-9 +%patch06 -p1 -b .setfilladjust %build # work-around Rpath @@ -296,6 +299,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Wed Oct 09 2019 Zdenek Dohnal - 1.22.5-7 +- gs 9.27 now uses setfilladjust2 + * Tue Sep 17 2019 Zdenek Dohnal - 1.22.5-6 - ftbfs with qpdf-9.0.0 - pdftopdf output should not be encrypted