public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cups] rawhide: 2.4.20 (fedora#2545947)
Date: Fri, 27 Nov 2026 11:44:12 GMT [thread overview]
Message-ID: <179577985212.1.2080078480286331948.rpms-cups-3f52072f2139@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cups
Branch : rawhide
Commit : 3f52072f2139fb33adc9e78bf70b7f7d956bd49f
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date : 2026-11-27T12:42:55+01:00
Stats : +131/-231 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/cups/c/3f52072f2139fb33adc9e78bf70b7f7d956bd49f?branch=rawhide
Log:
2.4.20 (fedora#2545947)
---
diff --git a/.gitignore b/.gitignore
index f4efce6..2d5d5c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,5 @@
/cups-2.4.18-source.tar.gz.sig
/cups-2.4.19-source.tar.gz
/cups-2.4.19-source.tar.gz.sig
+/cups-2.4.20-source.tar.gz
+/cups-2.4.20-source.tar.gz.sig
diff --git a/0001-Fix-filter-PPD-keyword-processing-Issue-1562.patch b/0001-Fix-filter-PPD-keyword-processing-Issue-1562.patch
deleted file mode 100644
index 642c9fc..0000000
--- a/0001-Fix-filter-PPD-keyword-processing-Issue-1562.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 3f2bdc293243bca938c6de23ba50e6d783189629 Mon Sep 17 00:00:00 2001
-From: Michael R Sweet <msweet@msweet.org>
-Date: Tue, 28 Apr 2026 17:42:41 -0400
-Subject: [PATCH] Fix filter PPD keyword processing (Issue #1562)
-
----
- scheduler/job.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/scheduler/job.c b/scheduler/job.c
-index 7cc7195ef..f09751591 100644
---- a/scheduler/job.c
-+++ b/scheduler/job.c
-@@ -5415,7 +5415,7 @@ update_job(cupsd_job_t *job) /* I - Job to check */
- keywords = NULL;
- num_keywords = cupsParseOptions(message, 0, &keywords);
-
-- for (i = 0, keyword = keywords; i < num_keywords; i ++)
-+ for (i = 0, keyword = keywords; i < num_keywords; i ++, keyword ++)
- {
- /*
- * Filter out "special" PPD keywords...
diff --git a/0001-Fixed-Coverity-issues.patch b/0001-Fixed-Coverity-issues.patch
deleted file mode 100644
index 9948a24..0000000
--- a/0001-Fixed-Coverity-issues.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From de63068ba5a742b3437b3e0c2e67d7704657a562 Mon Sep 17 00:00:00 2001
-From: Zdenek Dohnal <zdohnal@redhat.com>
-Date: Mon, 18 May 2026 17:46:01 +0200
-Subject: [PATCH] Fixed Coverity issues
-
----
- scheduler/ipp.c | 13 +++++--------
- scheduler/job.c | 2 --
- 2 files changed, 5 insertions(+), 10 deletions(-)
-
-diff --git a/scheduler/ipp.c b/scheduler/ipp.c
-index 9a280e752..87670c326 100644
---- a/scheduler/ipp.c
-+++ b/scheduler/ipp.c
-@@ -5900,7 +5900,7 @@ create_subscriptions(
- int interval, /* notify-time-interval */
- lease; /* notify-lease-duration */
- unsigned mask; /* notify-events */
-- ipp_attribute_t *notify_events,/* notify-events(-default) */
-+ ipp_attribute_t *notify_events, /* notify-events(-default) */
- *notify_lease; /* notify-lease-duration(-default) */
-
-
-@@ -6010,19 +6010,16 @@ create_subscriptions(
-
- if (printer)
- {
-- notify_events = ippFindAttribute(printer->attrs, "notify-events-default",
-- IPP_TAG_KEYWORD);
-- notify_lease = ippFindAttribute(printer->attrs,
-- "notify-lease-duration-default",
-- IPP_TAG_INTEGER);
-+ // Get default events and lease duration for printer/class...
-+ notify_events = ippFindAttribute(printer->attrs, "notify-events-default", IPP_TAG_KEYWORD);
-
-- if (notify_lease)
-+ if ((notify_lease = ippFindAttribute(printer->attrs, "notify-lease-duration-default", IPP_TAG_INTEGER)) != NULL)
- lease = notify_lease->values[0].integer;
- }
- else
- {
-+ // No defaults...
- notify_events = NULL;
-- notify_lease = NULL;
- }
-
- while (attr && attr->group_tag != IPP_TAG_ZERO)
-diff --git a/scheduler/job.c b/scheduler/job.c
-index f09751591..cc7bd4ba7 100644
---- a/scheduler/job.c
-+++ b/scheduler/job.c
-@@ -767,8 +767,6 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */
- cupsdLogJob(job, CUPSD_LOG_DEBUG,
- "Unable to add decompression filter - %s", strerror(errno));
-
-- cupsArrayDelete(filters);
--
- abort_message = "Stopping job because the scheduler ran out of memory.";
-
- goto abort_job;
diff --git a/cups-lspp.patch b/cups-lspp.patch
index 9f2a156..a12bfcd 100644
--- a/cups-lspp.patch
+++ b/cups-lspp.patch
@@ -1,21 +1,23 @@
-diff --git a/Makedefs.in b/Makedefs.in
-index 725066b..9e7cedd 100644
---- a/Makedefs.in
-+++ b/Makedefs.in
-@@ -160,7 +160,7 @@ ARFLAGS = @ARFLAGS@
- BACKLIBS = @BACKLIBS@
- BUILDDIRS = @BUILDDIRS@
- CFLAGS = @CPPFLAGS@ @CFLAGS@
--COMMONLIBS = @LIBS@
-+COMMONLIBS = @LIBS@ @LIBAUDIT@ @LIBSELINUX@
- CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
- CXXLIBS = @CXXLIBS@
- DBUS_NOTIFIER = @DBUS_NOTIFIER@
-diff --git a/config-scripts/cups-lspp.m4 b/config-scripts/cups-lspp.m4
-new file mode 100644
-index 0000000..55bd1bb
---- /dev/null
-+++ b/config-scripts/cups-lspp.m4
+diff -up cups-2.4.20/config.h.in.lspp cups-2.4.20/config.h.in
+--- cups-2.4.20/config.h.in.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/config.h.in 2026-11-27 12:17:36.116110536 +0100
+@@ -692,6 +692,13 @@ static __inline int _cups_abs(int i) { r
+
+
+ /*
++ * Are we trying to meet LSPP requirements?
++ */
++
++#undef WITH_LSPP
++
++
++/*
+ * Building as a snap (snapcraft.io)?
+ */
+
+diff -up cups-2.4.20/config-scripts/cups-lspp.m4.lspp cups-2.4.20/config-scripts/cups-lspp.m4
+--- cups-2.4.20/config-scripts/cups-lspp.m4.lspp 2026-11-27 12:17:36.116009947 +0100
++++ cups-2.4.20/config-scripts/cups-lspp.m4 2026-11-27 12:17:36.116003068 +0100
@@ -0,0 +1,36 @@
+dnl
+dnl LSPP code for the Common UNIX Printing System (CUPS).
@@ -53,29 +55,10 @@ index 0000000..55bd1bb
+ ;;
+ esac
+fi
-diff --git a/config.h.in b/config.h.in
-index 37c2790..abc28c2 100644
---- a/config.h.in
-+++ b/config.h.in
-@@ -691,6 +691,13 @@ static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
- #endif /* !HAVE_ABS && !abs */
-
-
-+/*
-+ * Are we trying to meet LSPP requirements?
-+ */
-+
-+#undef WITH_LSPP
-+
-+
- /*
- * Building as a snap (snapcraft.io)?
- */
-diff --git a/configure.ac b/configure.ac
-index d83884b..a174b32 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -40,6 +40,8 @@ sinclude(config-scripts/cups-container.m4)
+diff -up cups-2.4.20/configure.ac.lspp cups-2.4.20/configure.ac
+--- cups-2.4.20/configure.ac.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/configure.ac 2026-11-27 12:17:36.116184656 +0100
+@@ -40,6 +40,8 @@ sinclude(config-scripts/cups-container.m
sinclude(config-scripts/cups-startup.m4)
sinclude(config-scripts/cups-defaults.m4)
@@ -84,10 +67,9 @@ index d83884b..a174b32 100644
dnl See what languages are available and make sure we generate the localization
dnl files as needed...
LANGFILES=""
-diff --git a/filter/common.c b/filter/common.c
-index 22217be..b8629e6 100644
---- a/filter/common.c
-+++ b/filter/common.c
+diff -up cups-2.4.20/filter/common.c.lspp cups-2.4.20/filter/common.c
+--- cups-2.4.20/filter/common.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/filter/common.c 2026-11-27 12:17:36.116267966 +0100
@@ -12,6 +12,12 @@
* Include necessary headers...
*/
@@ -101,7 +83,7 @@ index 22217be..b8629e6 100644
#include "common.h"
#include <locale.h>
-@@ -294,6 +300,18 @@ WriteLabelProlog(const char *label, /* I - Page label */
+@@ -294,6 +300,18 @@ WriteLabelProlog(const char *label, /* I
{
const char *classification; /* CLASSIFICATION environment variable */
const char *ptr; /* Temporary string pointer */
@@ -120,7 +102,7 @@ index 22217be..b8629e6 100644
/*
-@@ -316,6 +334,128 @@ WriteLabelProlog(const char *label, /* I - Page label */
+@@ -316,6 +334,128 @@ WriteLabelProlog(const char *label, /* I
return;
}
@@ -249,7 +231,7 @@ index 22217be..b8629e6 100644
/*
* Set the classification + page label string...
*/
-@@ -396,7 +536,10 @@ WriteLabelProlog(const char *label, /* I - Page label */
+@@ -396,7 +536,10 @@ WriteLabelProlog(const char *label, /* I
printf(" %.0f moveto ESPpl show\n", top - 14.0);
puts("pop");
puts("}bind put");
@@ -260,11 +242,10 @@ index 22217be..b8629e6 100644
/*
-diff --git a/filter/pstops.c b/filter/pstops.c
-index 41090c8..585a2aa 100644
---- a/filter/pstops.c
-+++ b/filter/pstops.c
-@@ -3171,6 +3171,18 @@ write_label_prolog(pstops_doc_t *doc, /* I - Document info */
+diff -up cups-2.4.20/filter/pstops.c.lspp cups-2.4.20/filter/pstops.c
+--- cups-2.4.20/filter/pstops.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/filter/pstops.c 2026-11-27 12:17:36.116487242 +0100
+@@ -3171,6 +3171,18 @@ write_label_prolog(pstops_doc_t *doc, /*
{
const char *classification; /* CLASSIFICATION environment variable */
const char *ptr; /* Temporary string pointer */
@@ -283,7 +264,7 @@ index 41090c8..585a2aa 100644
/*
-@@ -3193,6 +3205,124 @@ write_label_prolog(pstops_doc_t *doc, /* I - Document info */
+@@ -3193,6 +3205,124 @@ write_label_prolog(pstops_doc_t *doc, /*
return;
}
@@ -408,7 +389,7 @@ index 41090c8..585a2aa 100644
/*
* Set the classification + page label string...
*/
-@@ -3271,7 +3401,10 @@ write_label_prolog(pstops_doc_t *doc, /* I - Document info */
+@@ -3271,7 +3401,10 @@ write_label_prolog(pstops_doc_t *doc, /*
doc_printf(doc, " %.0f moveto ESPpl show\n", top - 14.0);
doc_puts(doc, "pop\n");
doc_puts(doc, "}bind put\n");
@@ -419,10 +400,21 @@ index 41090c8..585a2aa 100644
/*
-diff --git a/scheduler/client.c b/scheduler/client.c
-index d961c15..bce92cf 100644
---- a/scheduler/client.c
-+++ b/scheduler/client.c
+diff -up cups-2.4.20/Makedefs.in.lspp cups-2.4.20/Makedefs.in
+--- cups-2.4.20/Makedefs.in.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/Makedefs.in 2026-11-27 12:17:36.115912153 +0100
+@@ -160,7 +160,7 @@ ARFLAGS = @ARFLAGS@
+ BACKLIBS = @BACKLIBS@
+ BUILDDIRS = @BUILDDIRS@
+ CFLAGS = @CPPFLAGS@ @CFLAGS@
+-COMMONLIBS = @LIBS@
++COMMONLIBS = @LIBS@ @LIBAUDIT@ @LIBSELINUX@
+ CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
+ CXXLIBS = @CXXLIBS@
+ DBUS_NOTIFIER = @DBUS_NOTIFIER@
+diff -up cups-2.4.20/scheduler/client.c.lspp cups-2.4.20/scheduler/client.c
+--- cups-2.4.20/scheduler/client.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/client.c 2026-11-27 12:17:36.116808630 +0100
@@ -20,12 +20,20 @@
#define _HTTP_NO_PRIVATE
#include "cupsd.h"
@@ -444,7 +436,7 @@ index d961c15..bce92cf 100644
/*
-@@ -264,6 +272,59 @@ cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener socket */
+@@ -264,6 +272,59 @@ cupsdAcceptClient(cupsd_listener_t *lis)
}
#endif /* HAVE_TCPD_H */
@@ -504,7 +496,7 @@ index d961c15..bce92cf 100644
#ifdef AF_LOCAL
if (httpAddrFamily(httpGetAddress(con->http)) == AF_LOCAL)
{
-@@ -539,6 +600,11 @@ cupsdCloseClient(cupsd_client_t *con) /* I - Client to close */
+@@ -539,6 +600,11 @@ cupsdCloseClient(cupsd_client_t *con) /*
}
#endif /* HAVE_AUTHORIZATION_H */
@@ -516,7 +508,7 @@ index d961c15..bce92cf 100644
/*
* Re-enable new client connections if we are going back under the
* limit...
-@@ -579,6 +645,13 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
+@@ -579,6 +645,13 @@ cupsdReadClient(cupsd_client_t *con) /*
struct stat filestats; /* File information */
mime_type_t *type; /* MIME type of file */
static unsigned request_id = 0; /* Request ID for temp files */
@@ -530,7 +522,7 @@ index d961c15..bce92cf 100644
status = HTTP_STATUS_CONTINUE;
-@@ -1755,7 +1828,75 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
+@@ -1755,7 +1828,75 @@ cupsdReadClient(cupsd_client_t *con) /*
fchmod(con->file, 0640);
fchown(con->file, RunUser, Group);
fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
@@ -607,7 +599,7 @@ index d961c15..bce92cf 100644
if (httpGetState(con->http) != HTTP_STATE_POST_SEND)
{
-@@ -3291,6 +3432,49 @@ is_path_absolute(const char *path) /* I - Input path */
+@@ -3288,6 +3429,49 @@ is_path_absolute(const char *path) /* I
return (1);
}
@@ -657,10 +649,9 @@ index d961c15..bce92cf 100644
/*
* 'pipe_command()' - Pipe the output of a command to the remote client.
-diff --git a/scheduler/client.h b/scheduler/client.h
-index 2939ce9..6749374 100644
---- a/scheduler/client.h
-+++ b/scheduler/client.h
+diff -up cups-2.4.20/scheduler/client.h.lspp cups-2.4.20/scheduler/client.h
+--- cups-2.4.20/scheduler/client.h.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/client.h 2026-11-27 12:17:36.117049283 +0100
@@ -14,6 +14,13 @@
#endif /* HAVE_AUTHORIZATION_H */
@@ -697,10 +688,9 @@ index 2939ce9..6749374 100644
#ifdef HAVE_TLS
extern int cupsdEndTLS(cupsd_client_t *con);
extern int cupsdStartTLS(cupsd_client_t *con);
-diff --git a/scheduler/conf.c b/scheduler/conf.c
-index 0e7be0e..c7a2062 100644
---- a/scheduler/conf.c
-+++ b/scheduler/conf.c
+diff -up cups-2.4.20/scheduler/conf.c.lspp cups-2.4.20/scheduler/conf.c
+--- cups-2.4.20/scheduler/conf.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/conf.c 2026-11-27 12:17:36.117244213 +0100
@@ -38,6 +38,9 @@
# define INADDR_NONE 0xffffffff
#endif /* !INADDR_NONE */
@@ -711,7 +701,7 @@ index 0e7be0e..c7a2062 100644
/*
* Configuration variable structure...
-@@ -130,6 +133,10 @@ static const cupsd_var_t cupsd_vars[] =
+@@ -131,6 +134,10 @@ static const cupsd_var_t cupsd_vars[] =
{ "ServerName", &ServerName, CUPSD_VARTYPE_STRING },
{ "StrictConformance", &StrictConformance, CUPSD_VARTYPE_BOOLEAN },
{ "Timeout", &Timeout, CUPSD_VARTYPE_TIME },
@@ -722,7 +712,7 @@ index 0e7be0e..c7a2062 100644
{ "WebInterface", &WebInterface, CUPSD_VARTYPE_BOOLEAN }
};
static const cupsd_var_t cupsfiles_vars[] =
-@@ -541,6 +548,9 @@ cupsdReadConfiguration(void)
+@@ -578,6 +585,9 @@ cupsdReadConfiguration(void)
const char *tmpdir; /* TMPDIR environment variable */
struct stat tmpinfo; /* Temporary directory info */
cupsd_policy_t *p; /* Policy */
@@ -732,7 +722,7 @@ index 0e7be0e..c7a2062 100644
/*
-@@ -876,6 +886,25 @@ cupsdReadConfiguration(void)
+@@ -913,6 +923,25 @@ cupsdReadConfiguration(void)
RunUser = getuid();
@@ -758,7 +748,7 @@ index 0e7be0e..c7a2062 100644
cupsdLogMessage(CUPSD_LOG_INFO, "Remote access is %s.",
RemotePort ? "enabled" : "disabled");
-@@ -1293,7 +1322,19 @@ cupsdReadConfiguration(void)
+@@ -1330,7 +1359,19 @@ cupsdReadConfiguration(void)
cupsdClearString(&Classification);
if (Classification)
@@ -778,7 +768,7 @@ index 0e7be0e..c7a2062 100644
/*
* Check the MaxClients setting, and then allocate memory for it...
-@@ -3939,6 +3980,18 @@ read_location(cups_file_t *fp, /* I - Configuration file */
+@@ -4008,6 +4049,18 @@ read_location(cups_file_t *fp, /* I - C
return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum);
}
@@ -797,10 +787,9 @@ index 0e7be0e..c7a2062 100644
/*
* 'read_policy()' - Read a <Policy name> definition.
-diff --git a/scheduler/conf.h b/scheduler/conf.h
-index a607bf8..1a4a8ee 100644
---- a/scheduler/conf.h
-+++ b/scheduler/conf.h
+diff -up cups-2.4.20/scheduler/conf.h.lspp cups-2.4.20/scheduler/conf.h
+--- cups-2.4.20/scheduler/conf.h.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/conf.h 2026-11-27 12:17:36.117506682 +0100
@@ -244,6 +244,13 @@ VAR char *ServerKeychain VALUE(NULL);
/* Keychain holding cert + key */
#endif /* HAVE_TLS */
@@ -825,10 +814,9 @@ index a607bf8..1a4a8ee 100644
/*
* Prototypes...
-diff --git a/scheduler/cupsd.h b/scheduler/cupsd.h
-index 164df6e..2d66464 100644
---- a/scheduler/cupsd.h
-+++ b/scheduler/cupsd.h
+diff -up cups-2.4.20/scheduler/cupsd.h.lspp cups-2.4.20/scheduler/cupsd.h
+--- cups-2.4.20/scheduler/cupsd.h.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/cupsd.h 2026-11-27 12:17:36.117592235 +0100
@@ -9,6 +9,8 @@
* information.
*/
@@ -853,10 +841,9 @@ index 164df6e..2d66464 100644
#include "mime.h"
#if defined(HAVE_CDSASSL)
-diff --git a/scheduler/ipp.c b/scheduler/ipp.c
-index bedf403..1db5215 100644
---- a/scheduler/ipp.c
-+++ b/scheduler/ipp.c
+diff -up cups-2.4.20/scheduler/ipp.c.lspp cups-2.4.20/scheduler/ipp.c
+--- cups-2.4.20/scheduler/ipp.c.lspp 2026-11-27 12:17:36.107443246 +0100
++++ cups-2.4.20/scheduler/ipp.c 2026-11-27 12:18:48.156201187 +0100
@@ -12,6 +12,9 @@
* information.
*/
@@ -867,7 +854,7 @@ index bedf403..1db5215 100644
/*
* Include necessary headers...
*/
-@@ -28,6 +31,12 @@ extern int mbr_group_name_to_uuid(const char* name, uuid_t uu);
+@@ -28,6 +31,12 @@ extern int mbr_group_name_to_uuid(const
extern int mbr_check_membership_by_id(uuid_t user, gid_t group, int* ismember);
#endif /* __APPLE__ */
@@ -880,7 +867,7 @@ index bedf403..1db5215 100644
/*
* Local functions...
-@@ -52,6 +61,9 @@ static void cancel_all_jobs(cupsd_client_t *con, ipp_attribute_t *uri);
+@@ -52,6 +61,9 @@ static void cancel_all_jobs(cupsd_client
static void cancel_job(cupsd_client_t *con, ipp_attribute_t *uri);
static void cancel_subscription(cupsd_client_t *con, int id);
static int check_rss_recipient(const char *recipient);
@@ -890,9 +877,9 @@ index bedf403..1db5215 100644
static int check_quotas(cupsd_client_t *con, cupsd_printer_t *p);
static void close_job(cupsd_client_t *con, ipp_attribute_t *uri);
static void copy_attrs(ipp_t *to, ipp_t *from, cups_array_t *ra,
-@@ -1188,6 +1200,21 @@ add_job(cupsd_client_t *con, /* I - Client connection */
- "time-at-creation",
- "time-at-processing"
+@@ -1201,6 +1213,21 @@ add_job(cupsd_client_t *con, /* I - Cl
+ "time-at-processing",
+ "warnings-count",
};
+#ifdef WITH_LSPP
+ char *audit_message; /* Audit message string */
@@ -912,7 +899,7 @@ index bedf403..1db5215 100644
cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_job(%p[%d], %p(%s), %p(%s/%s))",
-@@ -1514,6 +1541,106 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1527,6 +1554,106 @@ add_job(cupsd_client_t *con, /* I - Cl
ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, "Untitled");
}
@@ -1019,7 +1006,7 @@ index bedf403..1db5215 100644
if ((job = cupsdAddJob(priority, printer->name)) == NULL)
{
send_ipp_status(con, IPP_INTERNAL_ERROR,
-@@ -1534,6 +1661,32 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1547,6 +1674,32 @@ add_job(cupsd_client_t *con, /* I - Cl
job->print_as_raster = 1;
}
@@ -1052,7 +1039,7 @@ index bedf403..1db5215 100644
attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME);
job->dtype = printer->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE);
-@@ -1723,6 +1876,29 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1736,6 +1889,29 @@ add_job(cupsd_client_t *con, /* I - Cl
ippSetString(job->attrs, &attr, 0, printer->job_sheets[0]);
ippSetString(job->attrs, &attr, 1, printer->job_sheets[1]);
}
@@ -1082,7 +1069,7 @@ index bedf403..1db5215 100644
job->job_sheets = attr;
-@@ -1753,6 +1929,9 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1766,6 +1942,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s,none\", "
"job-originating-user-name=\"%s\"",
Classification, job->username);
@@ -1092,7 +1079,7 @@ index bedf403..1db5215 100644
}
else if (attr->num_values == 2 &&
strcmp(attr->values[0].string.text,
-@@ -1771,6 +1950,9 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1784,6 +1963,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"",
attr->values[0].string.text,
attr->values[1].string.text, job->username);
@@ -1102,7 +1089,7 @@ index bedf403..1db5215 100644
}
else if (strcmp(attr->values[0].string.text, Classification) &&
strcmp(attr->values[0].string.text, "none") &&
-@@ -1791,6 +1973,9 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1804,6 +1986,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"",
attr->values[0].string.text,
attr->values[1].string.text, job->username);
@@ -1112,7 +1099,7 @@ index bedf403..1db5215 100644
}
}
else if (strcmp(attr->values[0].string.text, Classification) &&
-@@ -1831,9 +2016,55 @@ add_job(cupsd_client_t *con, /* I - Client connection */
+@@ -1844,9 +2029,55 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s\", "
"job-originating-user-name=\"%s\"",
Classification, job->username);
@@ -1168,7 +1155,7 @@ index bedf403..1db5215 100644
/*
* See if we need to add the starting sheet...
*/
-@@ -3667,6 +3898,128 @@ check_rss_recipient(
+@@ -3689,6 +3920,128 @@ check_rss_recipient(
}
@@ -1297,7 +1284,7 @@ index bedf403..1db5215 100644
/*
* 'check_quotas()' - Check quotas for a printer and user.
*/
-@@ -4122,6 +4475,15 @@ copy_banner(cupsd_client_t *con, /* I - Client connection */
+@@ -4150,6 +4503,15 @@ copy_banner(cupsd_client_t *con, /* I -
char attrname[255], /* Name of attribute */
*s; /* Pointer into name */
ipp_attribute_t *attr; /* Attribute */
@@ -1313,7 +1300,7 @@ index bedf403..1db5215 100644
cupsdLogMessage(CUPSD_LOG_DEBUG2,
-@@ -4157,6 +4519,85 @@ copy_banner(cupsd_client_t *con, /* I - Client connection */
+@@ -4185,6 +4547,85 @@ copy_banner(cupsd_client_t *con, /* I -
fchmod(cupsFileNumber(out), 0640);
fchown(cupsFileNumber(out), RunUser, Group);
@@ -1399,7 +1386,7 @@ index bedf403..1db5215 100644
/*
* Try the localized banner file under the subdirectory...
-@@ -4251,6 +4692,24 @@ copy_banner(cupsd_client_t *con, /* I - Client connection */
+@@ -4279,6 +4720,24 @@ copy_banner(cupsd_client_t *con, /* I -
else
s = attrname;
@@ -1424,7 +1411,7 @@ index bedf403..1db5215 100644
if (!strcmp(s, "printer-name"))
{
cupsFilePuts(out, job->dest);
-@@ -6744,6 +7203,22 @@ get_job_attrs(cupsd_client_t *con, /* I - Client connection */
+@@ -6800,6 +7259,22 @@ get_job_attrs(cupsd_client_t *con, /* I
exclude = cupsdGetPrivateAttrs(policy, con, printer, job->username);
@@ -1447,7 +1434,7 @@ index bedf403..1db5215 100644
/*
* Copy attributes...
*/
-@@ -7142,6 +7617,11 @@ get_jobs(cupsd_client_t *con, /* I - Client connection */
+@@ -7198,6 +7673,11 @@ get_jobs(cupsd_client_t *con, /* I - C
if (username[0] && _cups_strcasecmp(username, job->username))
continue;
@@ -1459,7 +1446,7 @@ index bedf403..1db5215 100644
if (count > 0)
ippAddSeparator(con->response);
-@@ -11885,6 +12365,11 @@ validate_user(cupsd_job_t *job, /* I - Job */
+@@ -11941,6 +12421,11 @@ validate_user(cupsd_job_t *job, /* I
strlcpy(username, get_username(con), userlen);
@@ -1471,10 +1458,9 @@ index bedf403..1db5215 100644
/*
* Check the username against the owner...
*/
-diff --git a/scheduler/job.c b/scheduler/job.c
-index 620a2dd..11b6f57 100644
---- a/scheduler/job.c
-+++ b/scheduler/job.c
+diff -up cups-2.4.20/scheduler/job.c.lspp cups-2.4.20/scheduler/job.c
+--- cups-2.4.20/scheduler/job.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/job.c 2026-11-27 12:17:36.119057660 +0100
@@ -9,6 +9,9 @@
* information.
*/
@@ -1498,7 +1484,7 @@ index 620a2dd..11b6f57 100644
/*
* Design Notes for Job Management
-@@ -540,6 +549,14 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */
+@@ -552,6 +561,14 @@ cupsdContinueJob(cupsd_job_t *job) /* I
/* PRINTER env variable */
*printer_state_reasons = NULL;
/* PRINTER_STATE_REASONS env var */
@@ -1513,7 +1499,7 @@ index 620a2dd..11b6f57 100644
cupsdLogMessage(CUPSD_LOG_DEBUG2,
-@@ -1069,6 +1086,67 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */
+@@ -1079,6 +1096,67 @@ cupsdContinueJob(cupsd_job_t *job) /* I
if (final_content_type[0])
envp[envc ++] = final_content_type;
@@ -1581,7 +1567,7 @@ index 620a2dd..11b6f57 100644
if (Classification && !banner_page)
{
if ((attr = ippFindAttribute(job->attrs, "job-sheets",
-@@ -1403,6 +1481,11 @@ cupsdDeleteJob(cupsd_job_t *job, /* I - Job */
+@@ -1417,6 +1495,11 @@ cupsdDeleteJob(cupsd_job_t *job, /
cupsdClearString(&job->username);
cupsdClearString(&job->dest);
@@ -1593,7 +1579,7 @@ index 620a2dd..11b6f57 100644
for (i = 0;
i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0]));
i ++)
-@@ -1855,6 +1938,22 @@ cupsdLoadJob(cupsd_job_t *job) /* I - Job */
+@@ -1868,6 +1951,22 @@ cupsdLoadJob(cupsd_job_t *job) /* I - J
ippSetString(job->attrs, &job->reasons, 0, "job-completed-successfully");
}
@@ -1616,7 +1602,7 @@ index 620a2dd..11b6f57 100644
job->impressions = ippFindAttribute(job->attrs, "job-impressions-completed", IPP_TAG_INTEGER);
job->sheets = ippFindAttribute(job->attrs, "job-media-sheets-completed", IPP_TAG_INTEGER);
job->job_sheets = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME);
-@@ -2267,6 +2366,14 @@ cupsdSaveJob(cupsd_job_t *job) /* I - Job */
+@@ -2280,6 +2379,14 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
{
char filename[1024]; /* Job control filename */
cups_file_t *fp; /* Job file */
@@ -1631,7 +1617,7 @@ index 620a2dd..11b6f57 100644
cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSaveJob(job=%p(%d)): job->attrs=%p",
-@@ -2289,6 +2396,78 @@ cupsdSaveJob(cupsd_job_t *job) /* I - Job */
+@@ -2302,6 +2409,78 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
fchown(cupsFileNumber(fp), RunUser, Group);
@@ -1710,7 +1696,7 @@ index 620a2dd..11b6f57 100644
job->attrs->state = IPP_IDLE;
if (ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL,
-@@ -4017,6 +4196,19 @@ get_options(cupsd_job_t *job, /* I - Job */
+@@ -4057,6 +4236,19 @@ get_options(cupsd_job_t *job, /* I - Jo
banner_page)
continue;
@@ -1730,7 +1716,7 @@ index 620a2dd..11b6f57 100644
/*
* Otherwise add them to the list...
*/
-@@ -4832,6 +5024,18 @@ start_job(cupsd_job_t *job, /* I - Job ID */
+@@ -4888,6 +5080,18 @@ start_job(cupsd_job_t *job, /* I -
cupsd_printer_t *printer) /* I - Printer to print job */
{
const char *filename; /* Support filename */
@@ -1749,7 +1735,7 @@ index 620a2dd..11b6f57 100644
ipp_attribute_t *cancel_after = ippFindAttribute(job->attrs,
"job-cancel-after",
IPP_TAG_INTEGER);
-@@ -5020,6 +5224,113 @@ start_job(cupsd_job_t *job, /* I - Job ID */
+@@ -5076,6 +5280,113 @@ start_job(cupsd_job_t *job, /* I -
fcntl(job->side_pipes[1], F_SETFD,
fcntl(job->side_pipes[1], F_GETFD) | FD_CLOEXEC);
@@ -1863,10 +1849,9 @@ index 620a2dd..11b6f57 100644
/*
* Now start the first file in the job...
*/
-diff --git a/scheduler/job.h b/scheduler/job.h
-index b482086..32b2eac 100644
---- a/scheduler/job.h
-+++ b/scheduler/job.h
+diff -up cups-2.4.20/scheduler/job.h.lspp cups-2.4.20/scheduler/job.h
+--- cups-2.4.20/scheduler/job.h.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/job.h 2026-11-27 12:17:36.119429861 +0100
@@ -8,6 +8,13 @@
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
@@ -1881,7 +1866,7 @@ index b482086..32b2eac 100644
/*
* Constants...
*/
-@@ -86,6 +93,10 @@ struct cupsd_job_s /**** Job request ****/
+@@ -86,6 +93,10 @@ struct cupsd_job_s /**** Job request *
int progress; /* Printing progress */
int num_keywords; /* Number of PPD keywords */
cups_option_t *keywords; /* PPD keywords */
@@ -1892,10 +1877,9 @@ index b482086..32b2eac 100644
};
typedef struct cupsd_joblog_s /**** Job log message ****/
-diff --git a/scheduler/main.c b/scheduler/main.c
-index a939cda..6361962 100644
---- a/scheduler/main.c
-+++ b/scheduler/main.c
+diff -up cups-2.4.20/scheduler/main.c.lspp cups-2.4.20/scheduler/main.c
+--- cups-2.4.20/scheduler/main.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/main.c 2026-11-27 12:17:36.119558633 +0100
@@ -58,6 +58,9 @@
# include <sys/param.h>
#endif /* HAVE_SYS_PARAM_H */
@@ -1906,7 +1890,7 @@ index a939cda..6361962 100644
/*
* Local functions...
-@@ -124,6 +127,9 @@ main(int argc, /* I - Number of command-line args */
+@@ -124,6 +127,9 @@ main(int argc, /* I - Number of comm
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
struct sigaction action; /* Actions for POSIX signals */
#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
@@ -1916,7 +1900,7 @@ index a939cda..6361962 100644
#ifdef __APPLE__
int use_sysman = 1; /* Use system management functions? */
#else
-@@ -494,6 +500,25 @@ main(int argc, /* I - Number of command-line args */
+@@ -494,6 +500,25 @@ main(int argc, /* I - Number of comm
exit(errno);
}
@@ -1942,7 +1926,7 @@ index a939cda..6361962 100644
/*
* Let the system know we are busy while we bring up cupsd...
*/
-@@ -1201,6 +1226,11 @@ main(int argc, /* I - Number of command-line args */
+@@ -1201,6 +1226,11 @@ main(int argc, /* I - Number of comm
cupsdStopSelect();
@@ -1954,10 +1938,9 @@ index a939cda..6361962 100644
return (!stop_scheduler);
}
-diff --git a/scheduler/printers.c b/scheduler/printers.c
-index 2495106..a265fb8 100644
---- a/scheduler/printers.c
-+++ b/scheduler/printers.c
+diff -up cups-2.4.20/scheduler/printers.c.lspp cups-2.4.20/scheduler/printers.c
+--- cups-2.4.20/scheduler/printers.c.lspp 2026-10-05 17:26:07.000000000 +0200
++++ cups-2.4.20/scheduler/printers.c 2026-11-27 12:17:36.119838082 +0100
@@ -9,6 +9,8 @@
* information.
*/
@@ -1978,7 +1961,7 @@ index 2495106..a265fb8 100644
/*
* Local functions...
-@@ -2187,6 +2193,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
+@@ -2211,6 +2217,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
ipp_attribute_t *attr; /* Attribute data */
char *name, /* Current user/group name */
*filter; /* Current filter */
@@ -1992,7 +1975,7 @@ index 2495106..a265fb8 100644
/*
-@@ -2312,6 +2325,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
+@@ -2336,6 +2349,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
attr->values[1].string.text = _cupsStrAlloc(Classification ?
Classification : p->job_sheets[1]);
}
diff --git a/cups.spec b/cups.spec
index 5fcebc7..b18759e 100644
--- a/cups.spec
+++ b/cups.spec
@@ -14,8 +14,8 @@
Summary: CUPS printing system
Name: cups
Epoch: 1
-Version: 2.4.19
-Release: 4%{?dist}
+Version: 2.4.20
+Release: 1%{?dist}
# backend/failover.c - BSD-3-Clause
# cups/md5* - Zlib
# scheduler/colorman.c - Apache-2.0 WITH LLVM-exception AND BSD-2-Clause
@@ -78,10 +78,6 @@ Patch100: cups-lspp.patch
%endif
#### UPSTREAM PATCHES (starts with 1000) ####
-# https://github.com/OpenPrinting/cups/commit/3f2bdc293243
-Patch1000: 0001-Fix-filter-PPD-keyword-processing-Issue-1562.patch
-# https://github.com/OpenPrinting/cups/commit/de63068ba5a7
-Patch1001: 0001-Fixed-Coverity-issues.patch
##### Patches removed because IMHO they aren't no longer needed
@@ -309,8 +305,6 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in
%endif
# UPSTREAM PATCHES
-%patch -P 1000 -p1 -b .fix-filter-ppd-keyword
-%patch -P 1001 -p1 -b .fix-coverity-issues
# Log to the system journal by default (bug #1078781, bug #1519331).
@@ -801,6 +795,9 @@ rm -f %{cups_serverbin}/backend/smb
%{_mandir}/man7/ippeveps.7.gz
%changelog
+* Fri Nov 27 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.4.20-1
+- 2.4.20 (fedora#2545947)
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.4.19-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index f73da36..e630349 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (cups-2.4.19-source.tar.gz) = 3d7f7bd448afc54011e98cc3f6a6cfe704bdae58a1e0cdde19f95ed0b4956b518c6e0a64277c99daa38b26d3ddf23033a4135cc21c3e5d7602731789024fa287
-SHA512 (cups-2.4.19-source.tar.gz.sig) = d70e533790368dc33f3504eb5e370d84d31a51335f21121a9aff513d3d606bfd646b94eca78314b9a4df5460d1d329eb2b520b2ecfafd3934c23e9c423949b01
+SHA512 (cups-2.4.20-source.tar.gz) = 50be40e33662b32514ef7026a86c80970b2122fd187f32f4b704293468e615c1fcd6eb6575992f84856012a01b0e599a524ac6dd8630d073144b50cc5d6bd683
+SHA512 (cups-2.4.20-source.tar.gz.sig) = 7ed55adde77d289daede7bea308173186c7884614c91fe5a9ee03e80f034385fd41fdc956ccadb344dc56d814a799f3dfacd0fa86d340e566496321d5449a4d3
reply other threads:[~2026-11-27 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179577985212.1.2080078480286331948.rpms-cups-3f52072f2139@fedoraproject.org \
--to=zdohnal@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox