From 64b4f42853f17582924e4d01ff812d9f1ee8b5dc Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jul 30 2019 09:17:42 +0000 Subject: import cups-filters-1.20.0-14.el8_0.1 --- diff --git a/SOURCES/0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch b/SOURCES/0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch new file mode 100644 index 0000000..69adc6f --- /dev/null +++ b/SOURCES/0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch @@ -0,0 +1,22 @@ +From 297cc2decc53e0b08eb03049fce375db33df2131 Mon Sep 17 00:00:00 2001 +From: Till Kamppeter +Date: Sun, 7 Apr 2019 16:34:16 +0200 +Subject: [PATCH] foomatic-rip: Changed Ghostscript call to count pages in a + PDF file so that it works with GS 9.27. + +diff --git a/filter/foomatic-rip/pdf.c b/filter/foomatic-rip/pdf.c +index 9c3979bb..bc739bd8 100644 +--- a/filter/foomatic-rip/pdf.c ++++ b/filter/foomatic-rip/pdf.c +@@ -47,9 +47,8 @@ static int pdf_count_pages(const char *filename) + size_t bytes; + + snprintf(gscommand, CMDLINE_MAX, "%s -dNODISPLAY -q -c " +- "'/pdffile (%s) (r) file def pdfdict begin pdffile pdfopen begin " +- "(PageCount: ) print pdfpagecount == flush currentdict pdfclose " +- "end end quit'", ++ "'/pdffile (%s) (r) file runpdfbegin (PageCount: ) print " ++ "pdfpagecount = quit'", + gspath, filename); + + FILE *pd = popen(gscommand, "r"); diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index 3201013..8c5842e 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: 14%{?dist} +Release: 14%{?dist}.1 # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -31,6 +31,7 @@ Patch04: cups-filters-cleareof.patch # instead of 'cups-browsed' as Ubuntu does. I can repack the project later, # so cups-browsed would have separate sub package, so the link would be correct Patch05: cups-browsed.8.patch +Patch06: 0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -142,6 +143,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch04 -p1 -b .cleareof # 1609264 - man pages: wrong links in man cups-browsed %patch05 -p1 -b .manpage +# 1713461 - Removed option from Ghostscript causes breakage of printing by foomatic-rip filter +%patch06 -p1 -b .foomatic-rip-crash %build # work-around Rpath @@ -314,6 +317,9 @@ fi %{_libdir}/libfontembed.so %changelog +* Mon May 27 2019 Zdenek Dohnal - 1.20.0-14.1 +- 1713461 - Removed option from Ghostscript causes breakage of printing by foomatic-rip filter + * Mon Nov 12 2018 Zdenek Dohnal - 1.20.0-14 - 1609264 - man pages: wrong links in man cups-browsed