Univention Bugzilla – Bug 25819
Enhance handling of updating the printer PPD list
Last modified: 2023-11-15 15:03:02 CET
Aktuell wird im Join-Skript von univention-printserver der Druckerlistenbestand neu initialisiert, sofern nicht die UCR-Variable cups/keep/ppd gesetzt wurde. Setzt man die auf "true", ist das auch nicht ideal, wenn etwa aus der Printer-Liste für HP in einer neuen UCS-Revision eine PPD entfernt wurde, bleibt sie dann weiterhin im LDAP registriert. Es wäre besser die Drucker-Listen aus dem UCS-Bestand und lokale Anpassungen zu trennen: In der UMC editierbar wäre dann nur eine Druckerliste ala "Local printers" und alle anderen wäre ausgegraut. Das Join-Skript könnte dann alle anderen Printer-Listen beliebig neu generieren und "Local printers" intakt lassen.
Das ist hier lokal aufgefallen da auf einem neu hinzugefügten Printserver diverse Drucker nicht angelegt werden können.
Erneut aufgefallen.
*** Bug 29378 has been marked as a duplicate of this bug. ***
Some of this was done as part of the first UCS 5 work: commit 5b4e2f93127bc0f3e1a42604b0bb1c666a5d3f3b Author: Philipp Hahn <hahn@univention.de> Date: Tue Jun 2 01:18:14 2020 +0200 printserver: Drop gutenprint-ppds [WIP] dropped from Debian Buster. Switch to directly use foomatic-db-compressed-ppds and get rid of univention-foomatic-ppds package. Move gutenprint driver list to task file so packages are still maintained, but unused drivers can be removed. TODO: Fix mark_models_as_deprecated.py and 79univention-printserver.inst to work with compressed PPDs: /usr/lib/cups/driver/foomatic-db-compressed-ppds list /usr/lib/cups/driver/foomatic-db-compressed-ppds cat "foomatic-db-compressed-ppds:0/ppd/foomatic-ppd/Xerox-WorkCentre_XK35c-lex5700.ppd" univention-printserver is completely alien and needs a major overhaul: - It's a complete waste of time to compile all XML declarations to PPDs - even for 10+ years old printers by default. - CUPS internally can use compressed PPDs nowadays - We still have to patch many PPD packages to make /usr/share/cups/model a symbolic link to /usr/share/ppd/, which does not look right at all.