@@ -13,6 +13,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://0002-don-t-try-to-run-generated-binaries.patch \
file://libexecdir.patch \
file://0004-cups-fix-multilib-install-file-conflicts.patch \
+ file://0005-Fix-regression-with-temporary-queues.patch \
file://volatiles.99_cups \
file://cups-volatiles.conf \
"
new file mode 100644
@@ -0,0 +1,43 @@
+From 67dcee9f60a2a1410993510ab00c7203af5c5804 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Fri, 9 Oct 2026 12:01:20 -0400
+Subject: [PATCH] Fix regression with temporary queues (Issue #1751)
+
+create_local_printer() took the device URI into device_uri_ptr, but still
+split and stored the former printer-name pointer, so every temporary queue
+got the device URI "://" and failed.
+
+Combines the upstream commits 67dcee9f60 and e11ff1a9e8 on the 2.4.x
+branch, without the CHANGES.md entry.
+
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/67dcee9f60a2a1410993510ab00c7203af5c5804, https://github.com/OpenPrinting/cups/commit/e11ff1a9e8c6ec71edbaac5d5e5590d11aff64ef]
+Signed-off-by: Markus Volk <f_l_k@t-online.de>
+---
+diff --git a/scheduler/ipp.c b/scheduler/ipp.c
+index af8cf12..96364f4 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -5796,11 +5796,11 @@ create_local_printer(
+
+ if (nameptr)
+ {
+- size_t host_len,
+- server_name_len;
++ size_t host_len, /* Length of hostname */
++ server_name_len; /* Length of server name */
+
+ /* Get host name of device URI */
+- httpSeparateURI(HTTP_URI_CODING_ALL, ptr,
++ httpSeparateURI(HTTP_URI_CODING_ALL, device_uri_ptr,
+ scheme, sizeof(scheme), userpass, sizeof(userpass), host,
+ sizeof(host), &port, resource, sizeof(resource));
+
+@@ -5832,7 +5832,7 @@ create_local_printer(
+ cupsdSetDeviceURI(printer, uri);
+ }
+ else
+- cupsdSetDeviceURI(printer, ptr);
++ cupsdSetDeviceURI(printer, device_uri_ptr);
+
+ if (printer_geo_location)
+ cupsdSetString(&printer->geo_location, ippGetString(printer_geo_location, 0, NULL));
Since 2.4.20 cupsd stores the device URI "://" for every temporary queue: create_local_printer() reads the URI into device_uri_ptr but still splits and stores the former printer-name pointer. Discovered IPP Everywhere printers without a configured queue can no longer be used. Backport the two upstream fixes from the 2.4.x branch. Tested by printing to a discovered IPP Everywhere printer without a configured queue. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta/recipes-extended/cups/cups.inc | 1 + ...Fix-regression-with-temporary-queues.patch | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 meta/recipes-extended/cups/cups/0005-Fix-regression-with-temporary-queues.patch