diff -Nru cups-2.2.12/debian/changelog cups-2.2.12/debian/changelog --- cups-2.2.12/debian/changelog 2019-08-30 16:19:57.000000000 +0000 +++ cups-2.2.12/debian/changelog 2019-09-05 17:03:01.000000000 +0000 @@ -1,3 +1,10 @@ +cups (2.2.12-2ubuntu1) eoan; urgency=medium + + * Add workaround for systemd's lack of true launch-on-demand + support (Upstream issue #5640). + + -- Till Kamppeter Fri, 5 Sep 2019 19:03:01 +0200 + cups (2.2.12-2) unstable; urgency=medium [ Helge Kreutzmann ] diff -Nru cups-2.2.12/debian/patches/series cups-2.2.12/debian/patches/series --- cups-2.2.12/debian/patches/series 2019-08-30 16:19:57.000000000 +0000 +++ cups-2.2.12/debian/patches/series 2019-09-05 17:00:19.000000000 +0000 @@ -33,3 +33,4 @@ debianize_cups-config.patch 0034-Build-mantohtml-with-the-build-architecture-compiler.patch manpage-translations.patch +workaround-for-systemds-lack-of-true-launch-on-demand.patch diff -Nru cups-2.2.12/debian/patches/workaround-for-systemds-lack-of-true-launch-on-demand.patch cups-2.2.12/debian/patches/workaround-for-systemds-lack-of-true-launch-on-demand.patch --- cups-2.2.12/debian/patches/workaround-for-systemds-lack-of-true-launch-on-demand.patch 1970-01-01 00:00:00.000000000 +0000 +++ cups-2.2.12/debian/patches/workaround-for-systemds-lack-of-true-launch-on-demand.patch 2019-09-05 17:00:54.000000000 +0000 @@ -0,0 +1,12 @@ +--- a/scheduler/main.c ++++ b/scheduler/main.c +@@ -750,7 +750,9 @@ + #ifdef HAVE_ONDEMAND + if (OnDemand) + { ++# ifndef HAVE_SYSTEMD /* Issue #5640: systemd doesn't actually support launch-on-demand services, need to fake it */ + stop_scheduler = 1; ++# endif /* HAVE_SYSTEMD */ + break; + } + #endif /* HAVE_ONDEMAND */