diff --git a/SOURCES/cups-browsed-renew.patch b/SOURCES/cups-browsed-renew.patch new file mode 100644 index 0000000..4157bb2 --- /dev/null +++ b/SOURCES/cups-browsed-renew.patch @@ -0,0 +1,13 @@ +diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c +index 078348a..2b30c63 100644 +--- a/utils/cups-browsed.c ++++ b/utils/cups-browsed.c +@@ -8268,7 +8268,7 @@ int main(int argc, char*argv[]) { + /* Subscribe to CUPS' D-Bus notifications and create a proxy to receive + the notifications */ + subscription_id = create_subscription (); +- g_timeout_add_seconds (NOTIFY_LEASE_DURATION - 60, ++ g_timeout_add_seconds (NOTIFY_LEASE_DURATION / 2, + renew_subscription_timeout, + &subscription_id); + cups_notifier = cups_notifier_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index 93c449c..24096bc 100644 --- a/SPECS/cups-filters.spec +++ b/SPECS/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.20.0 -Release: 25%{?dist} +Release: 26%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -51,6 +51,8 @@ Patch12: poppler-20.11.0.patch Patch13: 0001-gstoraster-Use-.setfilladjust2-PostScript-command-fo.patch # 1931603 - cups-browsed doesn't save "-default" options Patch14: 0001-cups-browsed-Always-save-.-default-option-entries-fr.patch +# 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt +Patch15: cups-browsed-renew.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -191,6 +193,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch13 -p1 -b .setfilladjust # 1931603 - cups-browsed doesn't save "-default" options %patch14 -p1 -b .cups-browsed-save-default-options +# 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt +%patch15 -p1 -b .renew %build @@ -338,6 +342,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Mon Jun 21 2021 Zdenek Dohnal - 1.20.0-26 +- 1972981 - cups-browsed doesn't renew DBus subscription in time and all printing comes to a halt + * Thu Jun 03 2021 Richard Lescak - 1.20.0-25 - 1931603 - cups-browsed doesn't save "*-default" options