[cups.bugs] [MOD] STR #3921: cupd-driverd does not recognize when PPD entries for *.drv are already cached in ppds.dat

Till Kamppeter till.kamppeter at gmail.com
Wed Aug 17 13:00:48 PDT 2011


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When requesting a list of the available PPDs ("lpinfo -m") cups-driverd at
first reads the file /var/cache/cups/ppds.dat with PPD entries which it
had already loaded on an earlier run. There it caches not only ready-made
(static) PPDs but also PPDs which get generated on-the-fly based on the
data in /usr/share/cups/drv/*.drv files. To mark in the cache that the
entries from a given *.drv file are already there, it adds a dummy entry
for the cache so that when loading the cache it only needs to verify the
dummy entry. Due to a bug this entry does not get found and so all already
existing PPD entries from the *.drv file get generated and added again,
which messes up the PPD list leading to a loss of hundreds of PPD entries,
making many printers appearing unsupported in printer setup tools.

Attached is a patch which makes the dummy entry being written correctly so
that cups-driverd finds it. With this correct PPD lists get generated.

Link: http://www.cups.org/str.php?L3921
Version: 1.5.0
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-driverd-recognize-cached-drv-generated-ppds.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20110817/2fd0230b/attachment.ksh>


More information about the cups mailing list