Hello community,

here is the log from the commit of package cups-filters for openSUSE:Factory 
checked in at 2017-03-24 01:52:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cups-filters (Old)
 and      /work/SRC/openSUSE:Factory/.cups-filters.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cups-filters"

Fri Mar 24 01:52:40 2017 rev:25 rq:481340 version:1.13.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/cups-filters/cups-filters.changes        
2017-02-07 11:57:10.843058929 +0100
+++ /work/SRC/openSUSE:Factory/.cups-filters.new/cups-filters.changes   
2017-03-24 01:52:42.145932908 +0100
@@ -1,0 +2,8 @@
+Mon Mar 13 14:28:06 CET 2017 - jsm...@suse.de
+
+- fallback_read_ppd_file_from_environment.patch
+  lets foomatic-rip call read_ppd_file() with
+  PPD filename from environment as fallback, see
+  https://bugs.linuxfoundation.org/show_bug.cgi?id=1388
+
+-------------------------------------------------------------------

New:
----
  fallback_read_ppd_file_from_environment.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cups-filters.spec ++++++
--- /var/tmp/diff_new_pack.K2nT7r/_old  2017-03-24 01:52:44.329623754 +0100
+++ /var/tmp/diff_new_pack.K2nT7r/_new  2017-03-24 01:52:44.333623188 +0100
@@ -17,9 +17,9 @@
 
 
 Summary:        OpenPrinting CUPS filters, backends, and cups-browsed
-# See also 
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
 License:        GPL-2.0 and GPL-2.0+ and GPL-3.0 and MIT
 Group:          Hardware/Printing
+# See also 
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
 Url:            
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
 # For a breakdown of the licensing, see COPYING file
 # GPLv2:   filters: commandto*, imagetoraster, pdftops, rasterto*,
@@ -40,6 +40,9 @@
 Version:        1.13.3
 Release:        0
 Source0:        
http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
+# Patch 100 fallback_read_ppd_file_from_environment.patch
+# lets read_ppd_file() fallback to use PPD filename from environment:
+Patch100:       fallback_read_ppd_file_from_environment.patch
 # Since cups-filters version 1.0.42 foomatic-rip is also provided by 
cups-filters.
 # The foomatic-rip version that is provided by cups-filters is not specified 
in the cups-filters sources
 # but on http://www.openprinting.org/download/foomatic/ the 
foomatic-filters-4.0-current.tar.gz
@@ -162,8 +165,8 @@
 
 %package ghostscript
 Summary:        OpenPrinting CUPS filters for Ghostscript
-# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Requires:       cups > 1.5.4
 # Provide the well known generic name "gstoraster" so that it is easier for 
users
 # to find or install the RPM package name "cups-filters-ghostscript" that 
actually provides it
@@ -187,8 +190,8 @@
 
 %package foomatic-rip
 Summary:        OpenPrinting CUPS filter foomatic-rip
-# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Requires:       cups > 1.5.4
 # Because gstoraster is linked with libcupsfilters.so
 # that library is in the cups-filters-ghostscript sub-package
@@ -229,8 +232,8 @@
 
 %package cups-browsed
 Summary:        OpenPrinting cups-browsed for CUPS Browsing
-# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
 Requires:       cups > 1.5.4
 # Do not conflict with CUPS < 1.6 regardless that up to CUPS 1.5.4
 # the CUPS Browsing functionality is provided by the cupsd
@@ -275,6 +278,9 @@
 
 %prep
 %setup -q
+# Patch 100 fallback_read_ppd_file_from_environment.patch
+# lets read_ppd_file() fallback to use PPD filename from environment:
+%patch100
 
 %build
 # Just do what is described in the upstream INSTALL file

++++++ fallback_read_ppd_file_from_environment.patch ++++++
--- filter/foomatic-rip/foomaticrip.c.orig      2016-11-23 22:36:11.000000000 
+0100
+++ filter/foomatic-rip/foomaticrip.c   2017-03-13 12:52:26.000000000 +0100
@@ -931,8 +931,11 @@
        command line and the options */
     if (spooler == SPOOLER_CUPS && job->printer && strlen(job->printer) > 0) {
       str = cupsGetPPD(job->printer);
-      read_ppd_file(str);
-      unlink(str);
+      if (str) {
+        read_ppd_file(str);
+        unlink(str);
+      } else
+        read_ppd_file(job->ppdfile);
     } else 
       read_ppd_file(job->ppdfile);
 

Reply via email to