cups-filters: driverless doesn't generate a ppd for dns-sd based uri
Hi,
we have a report in Fedora - dns-sd based uris don’t work anymore with driverless:
$ driverless ipp://HP%20LaserJet%20M1536dnf%20MFP%20%2842307C%29._ipp._tcp.local/
ERROR: Unable to create PPD file: Could not poll sufficient capability info from the printer (ipp://HP%20LaserJet%20M1536dnf%20MFP%20%2842307C%29._ipp._tcp.local/, ipp://NPI42307C.local:631/ipp/printer) via IPP!
It seems there are two issues:
whileloop doesn’t work for empty linesbufferis uninitialized
This error blocks adding a print queue via driverless backend in Gnome Control Center and CUPS web ui (when you use dns-sd based uri).
The pull request will come in a minute.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (7 by maintainers)
In case someone else runs into this, I discovered that the problem was Avahi was misconfigured on my system. Package “nss-mdns-0.15.1-1” was not installed, and hosts line in nsswitch.conf was not using mdns, mdns4, or mdns4_minimal.
Everything works after following instructions from the hostname resolution section of https://wiki.archlinux.org/title/avahi.
Although driverless --version reports 1.28.10, and cups-filters package in arch is cups-filters-1.28.10-2, behavior is still happening on my Archlinux system. Here’s what I’m seeing:
driverless ipps://EPSON%20ET-2760%20Series._ipps._tcp.local/ ERROR: Unable to create PPD file: Could not poll sufficient capability info from the printer (ipps://EPSON%20ET-2760%20Series._ipps._tcp.local/, ipps://EPSON4EC4A4.local:631/ipp/print) via IPP!
Strangely on my laptop also running Arch, with the same versions as given above, the driverless command works as expected. It seems like removing cups and cups-filters, and reinstalling with latest versions should have fixed this but no luck. Where else could this problem be coming from?