I have tested on Natty now and for me the PDF queue does NOT get
generated. The problem is that CUPS gets restarted and immediately
afterwards it is tried to create a queue using the commands "lpstat" and
"lpadmin". The daemon needs a little time until it listens to requests
and so these "lpstat" and "lpadmin" commands error out as CUPS is not
yet listening. Using "2> /dev/null" and " || :" these errors stay
invisible.

In all maintainer scripts, for creating the queue and updating the PPD
after installation and for removing the queue on purge a wait loop needs
to be added right before the code sections which use "lpstat" and
"lpadmin".

In addition, the newly created queue is disabled and not accepting jobs.
Either "-E" needs to be added to "lpadmin" (it was not the culprit for
the queue not being created) or "cupsenable" and "cupsaccept" have to be
used with the new queue.

An example for such a wait loop is attached as a patch for the post-
install script in Natty.

The problem is present in all Ubuntu versions. Reopening ...

** Patch added: "Example for a loop to wait for CUPS getting ready"
   
https://bugs.launchpad.net/ubuntu/+source/cups-pdf/+bug/805947/+attachment/2396020/+files/cups-pdf-wait-loop.patch

** Changed in: cups-pdf (Ubuntu Lucid)
       Status: Fix Committed => Triaged

** Changed in: cups-pdf (Ubuntu Maverick)
       Status: Fix Committed => Triaged

** Changed in: cups-pdf (Ubuntu Natty)
       Status: Fix Committed => Triaged

** Changed in: cups-pdf (Ubuntu)
       Status: Fix Released => Triaged

** Changed in: cups-pdf (Ubuntu)
    Milestone: None => ubuntu-11.10-beta-2

** Changed in: cups-pdf (Ubuntu)
   Importance: Undecided => High

** Changed in: cups-pdf (Ubuntu Lucid)
   Importance: Undecided => High

** Changed in: cups-pdf (Ubuntu Maverick)
   Importance: Undecided => Low

** Changed in: cups-pdf (Ubuntu Natty)
   Importance: Undecided => High

** Tags removed: verification-needed
** Tags added: verification-failed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/805947

Title:
  SRU: hand-picked packaging fixes for Lucid and Maverick

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-pdf/+bug/805947/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to