packaging: hplip udev rules conflict with foo2zjs

Asked by Olivier Mengué

foo2zjs and hplip are both printer drivers for HP LaserJet 1018 (and others).
Both install their own udev rules. Those rules are conflicting as both try to upload the firmware to the printer:

From /lib/udev/rules.d/85-hplj10xx.rules (foo2zjs):
#Own udev rule for HP Laserjet 1018
KERNEL=="lp*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="03f0", ATTRS{product}=="HP LaserJet 1018", SYMLINK+="hplj1018-%n", RUN+="/usr/sbin/hplj1018"

From /etc/udev/rules.d/86-
# hp_laserjet_1018
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="4117", PROGRAM="/bin/sh -c 'X=%k; X=$${X#usbdev}; B=$${X%%%%.*}; D=$${X#*.}; logger -p user.info loading hp_laserjet_1018 firmware $$B $$D; printf %%03i:%%03i $$B $$D'", RUN+="/bin/sh -c '/usr/bin/hp-firmware -y3 -s%c &'"

As those rules are not declared in the same way they are probably both executed (sorry I don't know much udev) and the result is that the firmware upload fails. When I uninstalled foo2zjs, the printer worked.

So I think that foo2zjs should be declared as incompatible with hplip in the hplip .deb.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrew Malcolmson (andmalc22) said :
#1

This Answers page is for what's usually called 'upstream', that is, the HPLIP software itself. Your question is on the Debian/Ubuntu package of HPLIP in which the data on how to package relates to other packages is saved.

Therefore, I believe this question would be better posted to the 'HPLIP in Ubuntu' page here:

https://answers.launchpad.net/ubuntu/+source/hplip

Revision history for this message
Olivier Mengué (dolmen) said :
#2

This is an Debian/Ubuntu specific issue as it is related to filesystem layout. Is this packaging issue really upstream ?
I've opened bug #500089
https://bugs.launchpad.net/bugs/500089

Revision history for this message
Andrew Malcolmson (andmalc) said :
#3

No, this particular site is for upstream. So what I mean is that your question on this would be better off at the separate Launchpad Answers page for HPLIP under Ubuntu:

https://answers.launchpad.net/ubuntu/+source/hplip

Also, it looks like that site gets more attention from people (unlike me) who really know what they're doing, probably Ubuntu staff.

I suppose your bug report is OK.

Thanks

Can you help with this problem?

Provide an answer of your own, or ask Olivier Mengué for more information if necessary.

To post a message you must log in.