Bug 735864 - PackageKit zypp backend: doesn't properly support printer driver search
Summary: PackageKit zypp backend: doesn't properly support printer driver search
Status: RESOLVED DUPLICATE of bug 800858
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Printing (show other bugs)
Version: Final
Hardware: Other Other
: P2 - High : Normal (vote)
Target Milestone: ---
Assignee: Stephan Kulow
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 12:12 UTC by Ludwig Nussel
Modified: 2013-02-11 20:00 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2011-12-09 12:12:35 UTC
the zypp backend's what_provides() function apparently lacks support for proper mapping of searches for type PK_PROVIDES_ENUM_POSTSCRIPT_DRIVER (and others). For printers the backend needs to add "postscriptdriver(" for example.

How to test:
- run gnome
- rpm -q --provides gutenprint
- rpm -e gutenprint
- plug in some printer that matches one of the provides
=> the automatism (or if that doesn't work use sytem-config-printer manually) should automatically suggest to install gutenprint
Comment 1 Ludwig Nussel 2011-12-09 12:19:41 UTC
... only works for ppds that have 1284DeviceID
Comment 2 Duncan Mac-Vicar 2011-12-09 14:11:06 UTC
Let me understand how this works...

If the backends get called with PK_PROVIDES_ENUM_POSTSCRIPT_DRIVER and the string would be "epson;stylus_photo_rx630;" ?

And I need to build "postscriptdriver(epson;stylus_photo_rx630;)" from there?
Comment 3 Ludwig Nussel 2011-12-12 09:03:48 UTC
yes AFAICT. see the yum backend.
Comment 4 Duncan Mac-Vicar 2012-07-18 14:56:46 UTC
We will implement this in a rewrite of the backend we are preparing. Added a link in our backlog to this bug.
Comment 5 Stephan Kulow 2013-02-11 13:43:32 UTC
Johannes, can you get me a /var/log/pk_backend_zypp after doing that what Ludwig describes? I assume it's easier for you to do that instead of carrying a printer around so I can USB plug ;)
Comment 6 Stephan Kulow 2013-02-11 16:47:22 UTC
Fortunately I have one at home:

No ID match for device usb://Brother/HL-2030%20series:
MFG:Brother;MDL:HL-2030 series;CMD:PJL,HBP;
No ID match for device usb://Brother/HL-2030%20series:
MFG:Brother;MDL:HL-2030 series;CMD:PJL,HBP;
Comment 7 Stephan Kulow 2013-02-11 17:23:33 UTC
this translates into postscriptdriver(brother;hl-2030_series;)

But we only have those in the packages:

postscriptdriver(brother;brother_hl-1450_series;)
postscriptdriver(brother;brother_hl-1470n_series;)
postscriptdriver(brother;brother_hl-2460_series;)
postscriptdriver(brother;brother_hl-5050_series;)
postscriptdriver(brother;brother_hl-5070n_series;)
postscriptdriver(brother;brother_hl-5150d_series;)
postscriptdriver(brother;brother_hl-5170dn_series;)
postscriptdriver(brother;brother_hl-7050_series;)
postscriptdriver(brother;hl-1050_series;)
postscriptdriver(brother;hl-1070_series;)
postscriptdriver(brother;hl-1240_series;)
postscriptdriver(brother;hl-1250_series;)
postscriptdriver(brother;hl-1430_series;)
postscriptdriver(brother;hl-1440_series;)
postscriptdriver(brother;hl-5040_series;)
postscriptdriver(brother;hl-5140_series;)
Comment 8 Stephan Kulow 2013-02-11 17:44:18 UTC
so PK backend does the translation into provides now (stealing from zif backend), but I as have no printer that is "supported", I can't test the installation

coolo@xanthippe#zypp>pkcon what-provides "brother;brother_hl-1450_series;"
Anbieter werden abgerufen     [=========================]         
Warten in Warteschlange       [=========================]         
Starten                       [=========================]         
Abfragen                      [=========================]         
Verfügbar       gutenprint-5.2.9-2.1.i586                       Printer drivers for CUPS from the Gutenprint project
Verfügbar       gutenprint-5.2.9-2.1.x86_64                     Printer drivers for CUPS from the Gutenprint project
Comment 9 Stephan Kulow 2013-02-11 18:13:27 UTC
so the provider is there, but it won't help as we will hit the same double provide bug as with gstreamer.

*** This bug has been marked as a duplicate of bug 800858 ***
Comment 10 Bernhard Wiedemann 2013-02-11 20:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (735864) was mentioned in
https://build.opensuse.org/request/show/155147 Factory / PackageKit