Hello community,

here is the log from the commit of package cups-filters for openSUSE:Factory 
checked in at 2020-01-19 20:53:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cups-filters (Old)
 and      /work/SRC/openSUSE:Factory/.cups-filters.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cups-filters"

Sun Jan 19 20:53:17 2020 rev:44 rq:764966 version:1.25.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/cups-filters/cups-filters.changes        
2019-09-11 10:20:46.471507925 +0200
+++ /work/SRC/openSUSE:Factory/.cups-filters.new.26092/cups-filters.changes     
2020-01-19 20:53:46.203934661 +0100
@@ -1,0 +2,8 @@
+Thu Jan  9 09:32:15 UTC 2020 - Martin Wilck <[email protected]>
+
+- Fix compilation with -fno-common, in preparation for gcc 10
+  (boo#1160387)
+  * Added foomatic-rip-fix-compilation-with-fno-common.patch
+  (merged upstream as commit e6c5025)
+
+-------------------------------------------------------------------

New:
----
  foomatic-rip-fix-compilation-with-fno-common.patch

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

Other differences:
------------------
++++++ cups-filters.spec ++++++
--- /var/tmp/diff_new_pack.iT6Xvy/_old  2020-01-19 20:53:47.951935580 +0100
+++ /var/tmp/diff_new_pack.iT6Xvy/_new  2020-01-19 20:53:47.967935588 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package cups-filters
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
 
 
 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-only AND GPL-2.0-or-later AND GPL-3.0-only 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
+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*,
 #                   imagetopdf, pstopdf, texttopdf
@@ -41,6 +41,8 @@
 Release:        0
 Source0:        
http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
 Patch1:         add-cstring-include.patch
+# https://github.com/OpenPrinting/cups-filters/pull/184
+Patch2:         foomatic-rip-fix-compilation-with-fno-common.patch
 # Upstream fix for https://bugs.linuxfoundation.org/show_bug.cgi?id=1421
 # in 
https://github.com/OpenPrinting/cups-filters/commit/6db3b08d3b20332b1525b8dd1a47950381b8f637
 # dowloaded via

++++++ foomatic-rip-fix-compilation-with-fno-common.patch ++++++
>From e6c5025df307d3e8c79c3cd801780e4570f8607e Mon Sep 17 00:00:00 2001
From: Martin Wilck <[email protected]>
Date: Thu, 9 Jan 2020 10:20:46 +0100
Subject: [PATCH] foomatic-rip: fix compilation with -fno-common

Starting from the upcoming GCC release 10, the default of -fcommon option will
change to -fno-common. This causes compilation errors in foomatic-rip. These
seem to be due to missing "external" declarations.

https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Code-Gen-Options.html#index-fno-common
---
 filter/foomatic-rip/foomaticrip.c | 2 +-
 filter/foomatic-rip/options.c     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/filter/foomatic-rip/foomaticrip.c 
b/filter/foomatic-rip/foomaticrip.c
index 3b27ce93..2c6cdb66 100644
--- a/filter/foomatic-rip/foomaticrip.c
+++ b/filter/foomatic-rip/foomaticrip.c
@@ -105,7 +105,7 @@ jobparams_t * get_current_job()
 }
 
 
-dstr_t *postpipe;  /* command into which the output of this filter should be 
piped */
+dstr_t *postpipe = NULL;  /* command into which the output of this filter 
should be piped */
 FILE *postpipe_fh = NULL;
 
 FILE * open_postpipe()
diff --git a/filter/foomatic-rip/options.c b/filter/foomatic-rip/options.c
index 481e5c54..3c6b63d4 100644
--- a/filter/foomatic-rip/options.c
+++ b/filter/foomatic-rip/options.c
@@ -38,14 +38,14 @@ typedef struct icc_mapping_entry_s {
 } icc_mapping_entry_t;
 
 /* Values from foomatic keywords in the ppd file */
-char printer_model [256];
+extern char printer_model [256];
 char printer_id [256];
 char driver [128];
 char cmd [4096];
 char cmd_pdf [4096];
-dstr_t *postpipe = NULL;  /* command into which the output of this
+extern dstr_t *postpipe;  /* command into which the output of this
                              filter should be piped */
-char cupsfilter [256];
+extern char cupsfilter [256];
 int jobentitymaxlen = 0;
 int userentitymaxlen = 0;
 int hostentitymaxlen = 0;

Reply via email to