diff mbox series

[meta-oe] libcupsfilters: upgrade 2.0.0 -> 2.1.1

Message ID 20251007180558.97431-1-skandigraun@gmail.com
State Under Review
Headers show
Series [meta-oe] libcupsfilters: upgrade 2.0.0 -> 2.1.1 | expand

Commit Message

Gyorgy Sarvari Oct. 7, 2025, 6:05 p.m. UTC
This contains a fix for CVE-2024-47076

Changelog: https://github.com/OpenPrinting/libcupsfilters/blob/2.1.1/CHANGES.md

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 ...t-false-instead-of-throw-from-c-17-onward.patch | 14 +++++++-------
 ...upsfilters_2.0.0.bb => libcupsfilters_2.1.1.bb} |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)
 rename meta-oe/recipes-printing/cups/{libcupsfilters_2.0.0.bb => libcupsfilters_2.1.1.bb} (86%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch b/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch
index 72bbf10a14..0e0eb731a5 100644
--- a/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch
+++ b/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch
@@ -9,7 +9,7 @@  throw(whatever) with noexcept(false).
 
 [1] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0003r5.html
 
-Upstream-Status: Submitted [https://github.com/OpenPrinting/cups-filters/pull/505]
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups-filters/commit/2076627d33477212f21352ad39e9d305adb63af3]
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
 ---
  filter/pdftoraster.cxx | 4 ++++
@@ -17,11 +17,15 @@  Signed-off-by: Khem Raj <raj.khem@gmail.com>
 
 diff --git a/cupsfilters/pdftoraster.cxx b/cupsfilters/pdftoraster.cxx
 index e8af184fb..e91e22459 100755
-@@ -2198,7 +2198,11 @@
+@@ -2199,11 +2199,11 @@
  // For compatibility with g++ >= 4.7 compilers _GLIBCXX_THROW
  // should be used as a guard, otherwise use traditional definition
  #ifndef _GLIBCXX_THROW
--#define _GLIBCXX_THROW throw
+-#  if __cplusplus >= 201103L
+-#    define _GLIBCXX_THROW(_EXC)
+-#  else
+-#    define _GLIBCXX_THROW(_EXC) throw(_EXC)
+-#  endif
 +#if __cplusplus < 201703L
 +#define _GLIBCXX_THROW throw
 +#else
@@ -30,7 +34,3 @@  index e8af184fb..e91e22459 100755
  #endif
  
  void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc)
-
--- 
-2.39.1
-
diff --git a/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb b/meta-oe/recipes-printing/cups/libcupsfilters_2.1.1.bb
similarity index 86%
rename from meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb
rename to meta-oe/recipes-printing/cups/libcupsfilters_2.1.1.bb
index 7f7174d940..51d8c4f18b 100644
--- a/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb
+++ b/meta-oe/recipes-printing/cups/libcupsfilters_2.1.1.bb
@@ -9,7 +9,7 @@  SRC_URI = " \
 	https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \
 	file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch \
 "
-SRC_URI[sha256sum] = "542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601"
+SRC_URI[sha256sum] = "6c303e36cfde05a6c88fb940c62b6a18e7cdbfb91f077733ebc98f104925ce36"
 
 inherit autotools gettext pkgconfig github-releases