Bug#610928: Backward compatibility script needed for HP PPD upgrade

2011-01-23 Thread Kevin Shanahan
Package: hpijs-ppds
Version: 3.10.6-1.1

On upgrade from Lenny to Squeeze a number of our printer queues
stopped working with the following error logged:

D [24/Jan/2011:08:54:10 +1030] [Job 449496] prnt/hpcups/HPCupsFilter.cpp 361: 
DEBUG: Bad PPD - hpPrinterLanguage not found
D [24/Jan/2011:08:54:10 +1030] [Job 449496] prnt/backend/hp.c 839: ERROR: null 
print job total=0

The upgrade also reset the default paper size to weird values on a
bunch of other HP printers. I found this info on the redhat bugzilla:

  https://bugzilla.redhat.com/show_bug.cgi?id=579355

I grabbed a copy of hpijs-3.10.9-1.fc12.x86_64.rpm, extracted the
hpcups-update-ppds script and ran it. This fixed all the issues caused
by the upgrade. Debian should have something like this for Squeeze.

Regards,
Kevin




-- 
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/20110124014715.GK2276@kulgan.local



Bug#422712: gs-esp: pstoraster fails with signal 11 when printing cups testpage

2011-01-23 Thread Troy Rollo
On Sunday 23 January 2011, Jonathan Nieder wrote:

> That helps.  If I understand correctly then
>
>   by = lasty % btile->size.y;
>   if (by < 0)
>   by += btile->size.y;
>
> would be another way to convey the same thing.

Probably. The behaviour of the mod operator with negative numbers has been 
undefined at some points in time, and is something that a compiler might get 
wrong - I prefer to avoid applying the modulo function to a negative number 
at all, hence the longer version in my patch.




-- 
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/201101240715.19335.li...@troy.rollo.name



Processed: Re: Bug#122415: gs vertically misaligns printed output

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 122415 - moreinfo
Bug #122415 [gs] gs vertically misaligns printed output
Removed tag(s) moreinfo.
> tags 122415 + upstream
Bug #122415 [gs] gs vertically misaligns printed output
Added tag(s) upstream.
> reassign 122415 ghostscript
Bug #122415 [gs] gs vertically misaligns printed output
Bug reassigned from package 'gs' to 'ghostscript'.
Bug No longer marked as found in versions 6.51-5.
> found 122415 ghostscript/6.51-5
Bug #122415 [ghostscript] gs vertically misaligns printed output
The source ghostscript and version 6.51-5 do not appear to match any binary 
packages
Bug Marked as found in versions ghostscript/6.51-5.
> quit
Stopping processing here.

Please contact me if you need assistance.
-- 
122415: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=122415
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.129578902415261.transcr...@bugs.debian.org



Bug#122415: gs vertically misaligns printed output

2011-01-23 Thread Jonathan Nieder
tags 122415 - moreinfo
tags 122415 + upstream
reassign 122415 ghostscript
found 122415 ghostscript/6.51-5
quit

Hi,

Richard Kettlewell wrote:

> Oops, my apologies, I should have put that in the original message.
> The gs command line is:
>
> gs -sDEVICE=stp \
> -sModel=escp2-660 \
> -sQuality='360dpi' \
> -sInkType='CMYK' \
> -sMediaType='Plain' \
> -sPaperSize='A4' \
> -sPAPERSIZE='a4' \
> -sDither='Adaptive' \
> -dImageType=0 \
> -r360 \
> -q -dSAFER -dNOPAUSE -dBATCH -sOutputFile=- -
>
> The paper is indeed physically A4 paper, and the printer is an Epson
> Stylus Color 660.
>
>>> You can, hopefully, make out what I mean in the photo at:
>>> 
>>> http://www.greenend.org.uk/rjk/junk/gsbug.jpg
>> 
>> Just got a timeout...
>
> It should be working now.

Hmm, there was some work in this area recently upstream, but for HP
printers.  So I find this bug quite believable. :)

Anyone can debug this; it shouldn't require an Epson printer.  The
ESC/P2 language is documented at
http://web.archive.org/web/*/http://www.epson.co.uk/support/manuals/pdf/ESCP/Part_1.pdf
http://web.archive.org/web/*/http://www.epson.co.uk/support/manuals/pdf/ESCP/Part_2.pdf

Thanks for reporting.
Jonathan




-- 
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/20110123132310.GA22546@burratino



Processed: Re: On Debian Bug#364936

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> # Wouter was able to reproduce it and provided info.
> tags 364936 - unreproducible moreinfo
Bug #364936 [gs] segfaults on the attached file when ran from cups
Removed tag(s) unreproducible and moreinfo.
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
364936: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=364936
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.129578795310340.transcr...@bugs.debian.org



Bug#350553: ghostscript: major slowdown after upgrade

2011-01-23 Thread Jonathan Nieder
tags 350553 - moreinfo
reassign 350553 ghostscript
found 350553 gs-esp/8.15.1.dfsg.1-1
found 350553 ghostscript/8.62.dfsg.1-2.1
found 350553 ghostscript/8.71~dfsg2-6.1
quit

Marc Lehmann wrote:

> I downgraded and of course had the speed back then, but now i upgraded to
> squeeze and the slowdown is as horrible as before.
>
> also, this seems to be a very common issue, there are lots of reports about
> people having printing issues because gs takes a long time now, for ps that
> was fast to print before. it seems upstream thinks that this is a
> ubuntu/debian issue, and some people have reported that downloading and
> building upstream results in a fast ghostscript.

Thanks, Marc.  I hope I can find time to look into it (though anyone
else interested is welcome to test old packages and sift through
debdiffs, too).




-- 
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/20110123130148.GA22379@burratino



Processed: Re: ghostscript: major slowdown after upgrade

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 350553 - moreinfo
Bug #350553 [gs-esp] gs-esp extremely slow in Sid compared to Sarge
Removed tag(s) moreinfo.
> reassign 350553 ghostscript
Bug #350553 [gs-esp] gs-esp extremely slow in Sid compared to Sarge
Bug reassigned from package 'gs-esp' to 'ghostscript'.
Bug No longer marked as found in versions gs-esp/8.15.1.dfsg.1-1 and 
ghostscript/8.62.dfsg.1-2.1.
> found 350553 gs-esp/8.15.1.dfsg.1-1
Bug #350553 [ghostscript] gs-esp extremely slow in Sid compared to Sarge
Bug Marked as found in versions gs-esp/8.15.1.dfsg.1-1.
> found 350553 ghostscript/8.62.dfsg.1-2.1
Bug #350553 [ghostscript] gs-esp extremely slow in Sid compared to Sarge
Bug Marked as found in versions ghostscript/8.62.dfsg.1-2.1.
> found 350553 ghostscript/8.71~dfsg2-6.1
Bug #350553 [ghostscript] gs-esp extremely slow in Sid compared to Sarge
Bug Marked as found in versions ghostscript/8.71~dfsg2-6.1.
> quit
Stopping processing here.

Please contact me if you need assistance.
-- 
350553: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=350553
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.12957877349545.transcr...@bugs.debian.org



Re: cupsys: No debug information logged from gs-esp

2011-01-23 Thread Roger Leigh
On Sat, Jan 22, 2011 at 08:19:18PM -0600, Jonathan Nieder wrote:
> tags 321484 + moreinfo help
> quit
> 
> Hi Roger et al,
> 
> Roger Leigh wrote:
> > Ambrose Li  writes:
> 
> >> After upgrading to the new gutenprint drivers, if a Windows print
> >> job causes gs-esp to crash, /var/log/cups/errors will not log
> >> anything useful from gs-esp, even if the debug level is set to
> >> debug2.
> >>
> >> Running gs-esp manually with the crashed print job reveals that
> >> gs-esp cannot find Helvetica-Bold. This should have been logged in
> >> /var/log/cups/errors, esp. when the debug level is debug or debug2.
> >
> > This is a gs-esp bug (it was recently updated in addition to
> > gutenprint); I've reassigned the bug.
> 
> Do you happen to remember how gutenprint invokes ghostscript?  I am
> looking to fix the ancient Bug#321484, but to do so I would need to
> be able to reproduce it.
> 
> Thanks, and sorry for the long delay.

It's run as /usr/lib/cups/filter/pstoraster; gutenprint itself
is just the next stage in the pipeline (it just converts the
raster image to the inkjet commands to actually print).

gutenprint /may/ influence the options pstoraster/gs is passed;
this would be from the printer options stored in the PPD for the
printer queue, possibly overridden by the job options.

You should see pstoraster etc. being executed in the error log,
and you should see the options they are passed there as well.

I'm afraid I no longer even have an inkjet printer, and so I do
not actively use or develop gutenprint today (though I am doing
uploads of point releases as they are made while I wait for someone
to take over the maintenance).  As a result, I'm afraid I can't
do any actual testing or debugging to assist any longer.

Is this still an issue with current squeeze/unstable versions
of ghostscript/gutenprint?


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


signature.asc
Description: Digital signature


Processed: Re: gs-esp: some documents printed using ML-1020 driver cause printer to become unresponsive.

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> # Jonathan Nieder wrote:
> # > Ben Hildred wrote:
> #
> # >> I have a Dell 1100 printer which uses the samsung ML-1020 driver.
> # >> (rebranded printer) In many respects this printer works reasonably well.
> # >> Overall a satisfactory b&w printer. However many documents give me
> # >> trouble printing, paticualary documents with lots of graphic information
> # [...]
> # > Thanks for reporting.  Do you have an example?  (Printing to file as PS
> # > is a good way to make one.)
> tags 480423 + moreinfo
Bug #480423 [gs-esp] gs-esp: some documents printed using ML-1020 driver cause 
printer to become unresponsive.
Added tag(s) moreinfo.
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
480423: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480423
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.129577433423304.transcr...@bugs.debian.org



Bug#480423: gs-esp: some documents printed using ML-1020 driver cause printer to become unresponsive.

2011-01-23 Thread Jonathan Nieder
Hi Ben,

Ben Hildred wrote:

> I have a Dell 1100 printer which uses the samsung ML-1020 driver.
> (rebranded printer) In many respects this printer works reasonably well.
> Overall a satisfactory b&w printer. However many documents give me
> trouble printing, paticualary documents with lots of graphic information (ie.
> printing google maps form firefox give me corupted horizontal bars, some
> blueprints and photos cause the printer to cease responding requiring a
> reboot of the printer)

Thanks for reporting.  Do you have an example?  (Printing to file as PS
is a good way to make one.)

> I suspect this may be related to the 64kb bug on
> http://www.openprinting.org/download/printing/samsung-gdi/README.txt

Unfortunately Grant Taylor's patch was already applied in 8.15.3.dfsg.1
so that can't be the fix. :/

Sorry for the long delay.
Jonathan




-- 
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/20110123090328.GA32680@burratino



Processed: Re: gs segfaults on russian fonts

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 474300 + upstream moreinfo
Bug #474300 [gs] gs segfaults on russian fonts
Added tag(s) upstream and moreinfo.
> quit
Stopping processing here.

Please contact me if you need assistance.
-- 
474300: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474300
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.129577239516597.transcr...@bugs.debian.org



Bug#474300: gs segfaults on russian fonts

2011-01-23 Thread Jonathan Nieder
tags 474300 + upstream moreinfo
quit

Miloslav Semler wrote:

> when I tried to print some document in russian (cyrillic), it does not
> print. In
> mean time I found some problem with ghostscript:
>
> ESP Ghostscript 815.03: Failed to interpret TT instructions of the font
> DejaVuSa
> ns-Bold. Continue ignoring instructions of the font.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1214211264 (LWP 5090)]
> 0x08247fa1 in ialloc_consolidate_free ()
[...]
> commandline parameters: -sPAPERSIZE=a4 -g9920x7016 -r1200x600
> -sDEVICE=pbmraw -sOutputFil
> e=tmp.pbm tmp.pdf

Thanks for reporting.  Do you have a copy of tmp.pdf?  Can you reproduce
this still (with any version of ghostscript, not necessarily the latest
one)?




-- 
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/20110123084604.GA32542@burratino



Processed: Re: gs-esp: pstoraster fails with signal 11 when printing cups testpage

2011-01-23 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> severity 422712 wishlist
Bug #422712 [gs-esp] gs-esp: pstoraster fails with signal 11 when printing cups 
testpage
Severity set to 'wishlist' from 'important'

> retitle 422712 pstoraster segfaults with ancient cups
Bug #422712 [gs-esp] gs-esp: pstoraster fails with signal 11 when printing cups 
testpage
Changed Bug title to 'pstoraster segfaults with ancient cups' from 'gs-esp: 
pstoraster fails with signal 11 when printing cups testpage'
> tags 422712 - moreinfo
Bug #422712 [gs-esp] pstoraster segfaults with ancient cups
Removed tag(s) moreinfo.
> tags 422712 + upstream
Bug #422712 [gs-esp] pstoraster segfaults with ancient cups
Added tag(s) upstream.
> quit
Stopping processing here.

Please contact me if you need assistance.
-- 
422712: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=422712
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
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/handler.s.c.12957699886661.transcr...@bugs.debian.org



Bug#422712: gs-esp: pstoraster fails with signal 11 when printing cups testpage

2011-01-23 Thread Jonathan Nieder
severity 422712 wishlist
retitle 422712 pstoraster segfaults with ancient cups
tags 422712 - moreinfo
tags 422712 + upstream
quit
(-cc: the world since I have veered off topic)

Troy Rollo wrote:

> I do not recall the precise reasoning behind this, other than that at the 
> time 
> the patch seemed to make sense mathematically and without it there was a 
> segmentation violation
[...]
> The code patched seems to attempt to constrain "lasty" to a position within 
> the passed in "btile", vertically (that is, "btile->size.y").

That helps.  If I understand correctly then

by = lasty % btile->size.y;
if (by < 0)
by += btile->size.y;

would be another way to convey the same thing.

The context is beyond my depth (and undercommented, I suppose).
wrap_shifted_cursor seems to do something complicated involving
tile_shift, so if I had to guess, the fix would be something like:

ptc->tile.shift = btile->shift;
by = lasty + btile->size.y;
if (by < 0)
by += btile->size.y;
bx = endx;
if (ptc->tile.shift) {
int quotient = lasty / btile->size.y;
if (lasty < 0)
quotient--;
bx += quotient * ptc->tile.shift;
}
bx %= tw;
if (bx < 0)
bx += tw;

What I had been hoping for was something like "lasty gets set using
this library call from CUPS, which used to return this out-of-range
but meaningful value but always returns nonnegative values now".
Oh, well.

Maybe it would make sense to do

if (by < 0)
... error out with a helpful message ...

I'm marking figuring this out as a wishlist bug for now.

Thanks again.
Jonathan




-- 
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/20110123080559.GC31997@burratino