Bug#390948: Symbolic links to hplj1000 are still missing

2006-10-07 Thread Physeter

Hi,

The last version of foo2zjs
(pool/main/f/foo2zjs/foo2zjs_20060625dfsg-3_i386.deb) still contains
the original bug: symbolic links hplj1005, hplj1018 and hplj1020 are
missing from /usr/bin. Other errors are fixed.

Regards,
Petre Todorov


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#390948: foo2zjs supports only hp1000

2006-10-05 Thread Physeter

Hi,

Thank you for your time, I appreciate it.

A did test the package and found 2 remaining errors:

1. File /etc/udev/rules.d/11-hplj10xx.rules still contains 4
references to hplj1000 instead of references to hplj1000, hplj1005,
hplj1018 and hplj1020. The correct content of this file should be:

#Own udev rule for HP Laserjet 1000
KERNEL==lp*, BUS==usb, SYSFS{idVendor}==03f0,
SYSFS{product}==hp LaserJet 1000, NAME=usb/%k,
SYMLINK=hplj1000%e, MODE=0666, RUN+=/usr/bin/hplj1000
#Own udev rule for HP Laserjet 1005
KERNEL==lp*, BUS==usb, SYSFS{idVendor}==03f0,
SYSFS{product}==hp LaserJet 1005 series, NAME=usb/%k,
SYMLINK=hplj1005%e, MODE=0666, RUN+=/usr/bin/hplj1005
#Own udev rule for HP Laserjet 1018
KERNEL==lp*, BUS==usb, SYSFS{idVendor}==03f0,
SYSFS{product}==HP LaserJet 1018, NAME=usb/%k,
SYMLINK=hplj1018%e, MODE=0666, RUN+=/usr/bin/hplj1018
#Own udev rule for HP Laserjet 1020
KERNEL==lp*, BUS==usb, SYSFS{idVendor}==03f0,
SYSFS{product}==HP LaserJet 1020, NAME=usb/%k,
SYMLINK=hplj1020%e, MODE=0666, RUN+=/usr/bin/hplj1020

2. The script /usr/bin/hplj1000 has incorrect location of program
usb_printerid. foo2zjs ships usb_printerid at location /usr/bin but
the script /usr/bin/hplj1000 looks for this file in /bin. Here is the
snippet of this file:

.
#
# Program used to determine USB id information
#
USBID=/bin/usb_printerid
.

Instead, it should be:

#
# Program used to determine USB id information
#
USBID=/usr/bin/usb_printerid

This second bug is unrelated to my original bug report but it is
present both in the foo2zjs-20060625dfsg-2 and foo2zjs-20060625dfsg-3
and it renders the script /usr/bin/hplj1000 unusable.

With this 2 corrections, the package works as expected.

Best regards,
Physeter


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#390948: foo2zjs supports only hp1000

2006-10-03 Thread Physeter

Package: foo2zjs
Version: 20060625dfsg-2

Package foo2zjs has several errors:

1. Upstream version installs the file hplj1000 into
/usr/bin/ and creates 3 links to this same file named hplj1005,
hplj1018 and hplj1020.

ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1005
ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1018
ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1020

but the debian package provides only hplj1000 and does not
create those links (hplj1005, hplj1018, hplj1020).

2. udev script /etc/udev/rules.d/11-hplj10xx.rules incorrectly invokes
hplj1000 even when the detected printer is in fact hp 1005, hp 1018 or hp 1020.

These 2 errors are closely related to eachother. You cannot simply modify
11-hplj10xx.rules to invoke hplj1000 for all 4 models because hplj1000
determines the model of the printer from its own filename. So, by not creating
symbolic links hplj1005, hplj1018 and hplj1020 we have lost information about
the model of the detected printer.

As a result of these 2 errors, package foo2zjs works only for hp 1000.

Solution: create symbolic links named hplj1005, hplj1018 and hplj1020 and
change 11-hplj10xx.rules to correctly invoke hplj1000, hplj1005, hplj1018 and
hplj1020 accordingly.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]