From 5b19b86468ff341c56f8879dcd6c4b87a67de892 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 20 Jul 2020 14:55:43 +0200 Subject: [PATCH] 1848575 - [cups, cups-filters] PPD generators creates invalid cupsManualCopies entry --- cups-filters-manual-copies.patch | 13 +++++++++++++ cups-filters.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 cups-filters-manual-copies.patch diff --git a/cups-filters-manual-copies.patch b/cups-filters-manual-copies.patch new file mode 100644 index 0000000..edf2175 --- /dev/null +++ b/cups-filters-manual-copies.patch @@ -0,0 +1,13 @@ +diff --git a/cupsfilters/ppdgenerator.c b/cupsfilters/ppdgenerator.c +index 55801af..428a23e 100644 +--- a/cupsfilters/ppdgenerator.c ++++ b/cupsfilters/ppdgenerator.c +@@ -2062,7 +2062,7 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */ + format, we need to create multiple copies on the client. We add a line to + the PPD which tells the pdftopdf filter to generate the copies */ + if (manual_copies == 1) +- cupsFilePuts(fp, "*cupsManualCopies: true\n"); ++ cupsFilePuts(fp, "*cupsManualCopies: True\n"); + + /* No resolution requirements by any of the supported PDLs? + Use "printer-resolution-supported" attribute */ diff --git a/cups-filters.spec b/cups-filters.spec index 0ad3943..ab2b79a 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.27.5 -Release: 1%{?dist} +Release: 2%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -30,6 +30,8 @@ Patch02: cups-browsed.8.patch # upstream decided on keep queues after restart - IMO it causes more issues than it # solves https://github.com/OpenPrinting/cups-filters/issues/241 Patch03: cups-filters-remove-queues-on-restart.patch +# backported from upstream, copies were ignored because typo in ppdgenerator +Patch04: cups-filters-manual-copies.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -147,6 +149,7 @@ This is the development package for OpenPrinting CUPS filters and backends. # links in manpage %patch02 -p1 -b .manpage %patch03 -p1 -b .remove-queues-on-restart +%patch04 -p1 -b .manual-copies %build # work-around Rpath @@ -312,6 +315,9 @@ done %{_libdir}/libfontembed.so %changelog +* Mon Jul 20 2020 Zdenek Dohnal - 1.27.5-2 +- 1848575 - [cups, cups-filters] PPD generators creates invalid cupsManualCopies entry + * Mon Jun 08 2020 Zdenek Dohnal - 1.27.5-1 - 1.27.5