cups-browsed 2.0rc2
Some final, important bug fixes before the release: 100% CPU after failed printer access, broken print-quality-default attribute.
- Fixed cups-browsed getting stuck in busy loop
When the functioncreate_queue()fails to create a local print queue and the failure is not intermittent, it sets a global variable to stop the main thread's loop for updating local queues. With the variable not reset no queue updates happened ever again and cups-browsed fell into a busy loop taking up to 100% CPU. We have solved this by doing away with the variable and simply mark these printers as disappeared (Ubuntu bug #2018504). - Do not record
*-defaultIPP attributes of local CUPS queues
Many of the*-defaultIPP attributes represent properties already covered by the PPD option defaults which we also record. In addition, there is alsoprint-quality-defaultwhere IPP reportsdraft,normal, andhighsettings while CUPS only accepts3,4, and5, and on everything else it setsprint-quality-default=0which is invalid and jobs do not get printed. So we stop saving and loading these attributes. - Build system: Removed unnecessary lines in
Makefile.am
Removed theTESTdirandTEST_SCRIPTSentries inMakefile.am. They are not needed and letmake installtry to installrun-tests.shin the source directory, where it already is, causing an error. run-tests.sh: Use pkgconfig instead of deprecated cups-config (Pull request #9).