On Thu 06 Sep 2012 at 18:27:10 +0100, Brian Potkin wrote:
On Tue 04 Sep 2012 at 11:48:26 +0100, Steve McIntyre wrote:
So, to summarise:
* The upgrade from squeeze to wheezy looks like it changed print
driver without warning (to one that didn't work!)
I can reproduce this by creating a print queue on Squeeze using the PPD
file for hp-deskjet_f300_series-hpijs and then upgrading to Wheezy. This
PPD file is replaced by the one for hpcups without altering the file name
in /etc/cups/ppd. I guess this is something to do with updating the PPDs
but don't know exactly where to look. Hence the Cc:.
I want to concentrate on the change in ppd file on upgrading from Squeeze
to wheezy because it appears to me to be the essence of the bug report.
It may also be deserving of a higher severity level than important but
I will leave that on one side for the present.
The bug appears on upgrading because packages printer-driver-hpijs and
printer-driver-hpcups are both installed and the hpcups updater file in
/usr/share/cups/ppd-updaters/ is run before the one for hpijs. This,
however, is not the fundamental origin of the bug.
My attempt to make progress towards a successful solution of this bug
follows.
Testing procedure.
--
1. Implement a fully up-to-date Wheezy machine.
2. Create a print queue with
lpadmin -p TEST-HP -v file:/dev/null -m
drv:///hpijs.drv/hp-deskjet_f300_series-hpijs.ppd
3. Delete the hpijs and hpcups lines in /var/cache/cups/ppd-updates.
This (I think) replicates the situation when a Squeeze/Wheezy update
place.
4. Sprinkle /var/lib/dpkg/info/cups.postinst with a few echo statements
like
echo $driverregep is driverregep
5. Then
apt-get --reinstall install printer-driver-hpijs
The screen output I get is:
root@testing-cups:~# ls -l /etc/cups/ppd/
total 48
-rw-r--r-- 1 root root 21151 Mar 15 22:20 TEST-HP.ppd
root@testing-cups:~# apt-get --reinstall install printer-driver-hpijs
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/434 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 29441 files and directories currently installed.)
Preparing to replace printer-driver-hpijs 3.12.6-3.1 (using
.../printer-driver-hpijs_3.12.6-3.1_i386.deb) ...
Unpacking replacement printer-driver-hpijs ...
Processing triggers for man-db ...
Processing triggers for cups ...
[ ok ] Starting Common Unix Printing System: cupsd.
Updating PPD files for hpcups ...
drv:///hpcups.drv/|lsb/usr/hplip/HP/HP-Fax.*-hpcups is driverregex
TEST-HP is the queue name
HP\ DJ\ f300 is the nickname in the ppd
drv:///hpcups.drv/hp-deskjet_f300_series.ppd is the newppduri
PPD for printer TEST-HP updated
drv:///hpcups.drv/hp-deskjet_f300_series.ppd is the englisppduri
Updating PPD files for hpijs ...
drv:///hpijs.drv/|lsb/usr/hplip/HP/HP-Fax.*-hpijs is driverregex
TEST-HP is the queue name
HP\ DJ\ f300\,\ hpcups\ 3\.12\.6 is the nickname in the ppd
is the englisppduri
Setting up printer-driver-hpijs (3.12.6-3.1) ...
root@testing-cups:~# ls -l /etc/cups/ppd/
total 44
-rw-r--r-- 1 root root 17992 Mar 15 22:21 TEST-HP.ppd
The bug appears to reside in cups.postinst or the updater files for hpijs
and hpcups.
Regards,
Brian.
--
To UNSUBSCRIBE, email to debian-printing-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130315184917noccsple...@example.com