Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913165 - net-print/hplip models database mis-spells cp1700 printer name
Summary: net-print/hplip models database mis-spells cp1700 printer name
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
Depends on:
Reported: 2023-08-28 18:33 UTC by Paul Gover
Modified: 2023-08-28 18:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Paul Gover 2023-08-28 18:33:12 UTC
Currently net-print/hplip-3.23.5, but this bug has existed for ages.

The models database - /usr/share/hplip/data/models/models.dat
describes printers using .INI file format

AFAIR these stanza names need to match names from lsusb.
IIUC, this in turn gets them from udev's list of manufacturer:product ids in

For the HP CP1700 printer, models.dat gets it wrong.

Really, hplip should use the manufacturer:product id, in this case [03f0:0312], but never mind, they've chosen this silly extra level of indirection.

The result from lsusb is
   Bus 001 Device 004: ID 03f0:0312 HP, Inc Color Inkjet CP1700
which I think gets mangled to
whereas the stanza id in models.dat as shipped is
with a spurious "_printer", which is consistent with the rest of the stanza, but not the name actually used

The following sed command will fix it:
sed -i '/[\w*cp1700\w*]/s/printer_cp1700/cp1700/' data/models/models.dat

I reported this bug on the hplip bugzilla last year
but no-one's so much as looked at it, as far as I can tell.