Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cups-filters for openSUSE:Factory checked in at 2025-11-20 14:47:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cups-filters (Old) and /work/SRC/openSUSE:Factory/.cups-filters.new.2061 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cups-filters" Thu Nov 20 14:47:26 2025 rev:61 rq:1318601 version:1.28.17 Changes: -------- --- /work/SRC/openSUSE:Factory/cups-filters/cups-filters.changes 2025-09-18 21:08:27.977873132 +0200 +++ /work/SRC/openSUSE:Factory/.cups-filters.new.2061/cups-filters.changes 2025-11-20 14:47:39.623486157 +0100 @@ -1,0 +2,6 @@ +Wed Nov 19 08:15:32 UTC 2025 - [email protected] + +- added patches [bsc#1253678] + * cups-filters-qpdf12.patch + +------------------------------------------------------------------- New: ---- cups-filters-qpdf12.patch ----------(New B)---------- New:- added patches [bsc#1253678] * cups-filters-qpdf12.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cups-filters.spec ++++++ --- /var/tmp/diff_new_pack.w2sjpb/_old 2025-11-20 14:47:40.535524665 +0100 +++ /var/tmp/diff_new_pack.w2sjpb/_new 2025-11-20 14:47:40.539524834 +0100 @@ -1,7 +1,7 @@ # # spec file for package cups-filters # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -111,6 +111,9 @@ # "lack of input sanitization in _ppdCreateFromIPP()" # see https://bugzilla.suse.com/show_bug.cgi?id=1230932 Patch110: cups-filters-1.28.17-CVE-2024-47175.patch +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285412 +# newer cups code in git does not use qpdf, no upstream handling required +Patch111: cups-filters-qpdf12.patch # Support for cups154 in the SLE12 legacy module is abandoned (by default SLE12 has CUPS 1.7.5) # because newer cups-filters versions use stuff that is provided since CUPS > 1.5.4 so that it does # no longer build with CUPS 1.5.4 so that cups-filters does not work with CUPS 1.5.4: @@ -281,6 +284,7 @@ # https://bugs.linuxfoundation.org for "Product: OpenPrinting" and "Component: cups-filters" ./autogen.sh export CFLAGS="%{optflags} -std=gnu11" +export CXXFLAGS="%{optflags} -DPOINTERHOLDER_TRANSITION=0" # No need to set our preferred architecture-specific flags for the compiler and linker # via export CFLAGS="$RPM_OPT_FLAGS" and export CXXFLAGS="$RPM_OPT_FLAGS" # because the RPM macro configure does that. ++++++ cups-filters-qpdf12.patch ++++++ Index: cups-filters-1.28.17/filter/pdftopdf/qpdf_pdftopdf_processor.cc =================================================================== --- cups-filters-1.28.17.orig/filter/pdftopdf/qpdf_pdftopdf_processor.cc +++ cups-filters-1.28.17/filter/pdftopdf/qpdf_pdftopdf_processor.cc @@ -83,10 +83,10 @@ QPDFObjectHandle QPDF_PDFTOPDF_PageHandl page.getKey("/Resources").replaceKey("/XObject",QPDFObjectHandle::newDictionary(xobjs)); content.append("Q\n"); page.getKey("/Contents").replaceStreamData(content,QPDFObjectHandle::newNull(),QPDFObjectHandle::newNull()); - page.replaceOrRemoveKey("/Rotate",makeRotate(rotation)); + page.replaceKey("/Rotate",makeRotate(rotation)); } else { Rotation rot=getRotate(page)+rotation; - page.replaceOrRemoveKey("/Rotate",makeRotate(rot)); + page.replaceKey("/Rotate",makeRotate(rot)); } page=QPDFObjectHandle(); // i.e. uninitialized return ret; @@ -181,9 +181,9 @@ Rotation QPDF_PDFTOPDF_PageHandle::crop( page.assertInitialized(); Rotation save_rotate = getRotate(page); if(orientation==ROT_0||orientation==ROT_180) - page.replaceOrRemoveKey("/Rotate",makeRotate(ROT_90)); + page.replaceKey("/Rotate",makeRotate(ROT_90)); else - page.replaceOrRemoveKey("/Rotate",makeRotate(ROT_0)); + page.replaceKey("/Rotate",makeRotate(ROT_0)); PageRect currpage= getBoxAsRect(getTrimBox(page)); double width = currpage.right-currpage.left; @@ -242,7 +242,7 @@ Rotation QPDF_PDFTOPDF_PageHandle::crop( //Cropping. // TODO: Borders are covered by the image. buffer space? page.replaceKey("/TrimBox",makeBox(currpage.left,currpage.bottom,currpage.right,currpage.top)); - page.replaceOrRemoveKey("/Rotate",makeRotate(save_rotate)); + page.replaceKey("/Rotate",makeRotate(save_rotate)); return getRotate(page); } @@ -251,14 +251,14 @@ bool QPDF_PDFTOPDF_PageHandle::is_landsc page.assertInitialized(); Rotation save_rotate = getRotate(page); if(orientation==ROT_0||orientation==ROT_180) - page.replaceOrRemoveKey("/Rotate",makeRotate(ROT_90)); + page.replaceKey("/Rotate",makeRotate(ROT_90)); else - page.replaceOrRemoveKey("/Rotate",makeRotate(ROT_0)); + page.replaceKey("/Rotate",makeRotate(ROT_0)); PageRect currpage= getBoxAsRect(getTrimBox(page)); double width = currpage.right-currpage.left; double height = currpage.top-currpage.bottom; - page.replaceOrRemoveKey("/Rotate",makeRotate(save_rotate)); + page.replaceKey("/Rotate",makeRotate(save_rotate)); if(width>height) return true; return false; @@ -662,7 +662,7 @@ void QPDF_PDFTOPDF_Processor::autoRotate // TODO? other rotation direction, e.g. if (src_rot==ROT_0)&&(param.orientation==ROT_270) ... etc. // rotation=ROT_270; - page.replaceOrRemoveKey("/Rotate",makeRotate(src_rot+rotation)); + page.replaceKey("/Rotate",makeRotate(src_rot+rotation)); } } } Index: cups-filters-1.28.17/filter/pdf.cxx =================================================================== --- cups-filters-1.28.17.orig/filter/pdf.cxx +++ cups-filters-1.28.17/filter/pdf.cxx @@ -26,6 +26,7 @@ #include <qpdf/QPDFWriter.hh> #include <qpdf/QPDFAcroFormDocumentHelper.hh> #include <qpdf/QPDFPageDocumentHelper.hh> +#include <qpdf/PointerHolder.hh> /* * Useful reference: Index: cups-filters-1.28.17/filter/pdftopdf/qpdf_xobject.cc =================================================================== --- cups-filters-1.28.17.orig/filter/pdftopdf/qpdf_xobject.cc +++ cups-filters-1.28.17/filter/pdftopdf/qpdf_xobject.cc @@ -4,6 +4,7 @@ #include <qpdf/Pl_Discard.hh> #include <qpdf/Pl_Count.hh> #include <qpdf/Pl_Concatenate.hh> +#include <qpdf/PointerHolder.hh> #include "qpdf_tools.h" #include "qpdf_pdftopdf.h" Index: cups-filters-1.28.17/filter/rastertopdf.cpp =================================================================== --- cups-filters-1.28.17.orig/filter/rastertopdf.cpp +++ cups-filters-1.28.17/filter/rastertopdf.cpp @@ -45,6 +45,7 @@ #include <qpdf/Pl_Flate.hh> #include <qpdf/Pl_Buffer.hh> +#include <qpdf/PointerHolder.hh> #ifdef QPDF_HAVE_PCLM #include <qpdf/Pl_RunLength.hh> #include <qpdf/Pl_DCT.hh> Index: cups-filters-1.28.17/filter/urftopdf.cpp =================================================================== --- cups-filters-1.28.17.orig/filter/urftopdf.cpp +++ cups-filters-1.28.17/filter/urftopdf.cpp @@ -38,6 +38,7 @@ #include <qpdf/Pl_Flate.hh> #include <qpdf/Pl_Buffer.hh> +#include <qpdf/PointerHolder.hh> #include "unirast.h"
