From ce43ae9d7a9b4aad8081bcc2bb4a67f4d9d1f4c0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jul 27 2021 04:19:04 +0000 Subject: import cups-filters-1.20.0-27.el8 --- diff --git a/SOURCES/0001-libcupsfilters-Fix-page-range-like-10-in-pdftopdf-fi.patch b/SOURCES/0001-libcupsfilters-Fix-page-range-like-10-in-pdftopdf-fi.patch new file mode 100644 index 0000000..1baab50 --- /dev/null +++ b/SOURCES/0001-libcupsfilters-Fix-page-range-like-10-in-pdftopdf-fi.patch @@ -0,0 +1,26 @@ +From 022c34fedb66f706b2ab82d7506d5b5b1fa18e1f Mon Sep 17 00:00:00 2001 +From: Bryan Mason +Date: Fri, 16 Jul 2021 11:19:42 -0700 +Subject: [PATCH] libcupsfilter: Fix page range like "10-" in pdftopdf() + filter function + +--- + filter/pdftopdf/pdftopdf.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/filter/pdftopdf/pdftopdf.cc b/filter/pdftopdf/pdftopdf.cc +index 5725e199..979644f1 100644 +--- a/filter/pdftopdf/pdftopdf.cc ++++ b/filter/pdftopdf/pdftopdf.cc +@@ -256,7 +256,7 @@ static void parseRanges(const char *range,IntervalSet &ret) // {{{ + } else { + upper=strtol(range,(char **)&range,10); + if (upper>=2147483647) { +- ret.add(1); ++ ret.add(lower); + } else { + ret.add(lower,upper+1); + } +-- +2.31.1 + diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index 24096bc..2bfcc00 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: 26%{?dist} +Release: 27%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -53,6 +53,8 @@ Patch13: 0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch Patch14: 0001-cups-browsed-Always-save-.-default-option-entries-fr.patch # 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt Patch15: cups-browsed-renew.patch +# 1981612 - [RHEL 8] pdftopdf doesn't handle "page-range=10-2147483647" correctly +Patch16: 0001-libcupsfilters-Fix-page-range-like-10-in-pdftopdf-fi.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -195,6 +197,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch14 -p1 -b .cups-browsed-save-default-options # 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt %patch15 -p1 -b .renew +# 1981612 - [RHEL 8] pdftopdf doesn't handle "page-range=10-2147483647" correctly +%patch16 -p1 -b .ranges %build @@ -342,6 +346,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Tue Jul 13 2021 Zdenek Dohnal - 1.20.0-27 +- 1981612 - [RHEL 8] pdftopdf doesn't handle "page-range=10-2147483647" correctly + * Mon Jun 21 2021 Zdenek Dohnal - 1.20.0-26 - 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt