Bug 114068

Summary: some Ghostscript devices produce no output (in particular cljet5)
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Johannes Meixner <jsmeix>
Component: PrintingAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Minor    
Priority: P5 - None CC: jsmeix
Version: Beta 3   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 114698    

Description Johannes Meixner 2005-08-30 09:33:06 UTC
I have the newest ghostscript packages (where bug #112659 is fixed)
installed on nelson.suse.de (i386) and caps.suse.de (x86_64).

I tested all ghostscript devices (except bbox, cups, ijs, nullpage,
omni, stp) with the following command which uses the same
fd-redirection as the print filter foomatic-rip does:
--------------------------------------------------------------------
for d in $( gs -h \
            | grep '^   [a-t]' \
            | tr -d '\n' \
            | tr -s ' ' '\n' \
            | egrep -v 'bbox|cups|ijs|nullpage|omni|stp' )
do echo -e "\n$d"
   cat /usr/share/doc/packages/ghostscript/examples/colorcir.ps \
   | gs -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=$d \
        -sOutputFile='| cat >&3' /dev/fd/0 3>&1 1>&2 \
   | cat - >/tmp/$d.prn
   ls -l /tmp/$d.prn
done &>/tmp/log
--------------------------------------------------------------------

The following Ghostscript devices produce no output:
bmpa* (see bug #114056),
cgm24, cgm8, cgmmono,
cljet5,
devicen,
inferno,
oprp, opvp,
pcx2up,
pnga

The only Ghostscript device which is used in our PPDs is cljet5 in:
/usr/share/cups/model/Generic/PCL_5c_Printer-cljet5.ppd.gz
/usr/share/cups/model/HP/Color_LaserJet_5-cljet5.ppd.gz
/usr/share/cups/model/HP/Color_LaserJet_5000-cljet5.ppd.gz
/usr/share/cups/model/HP/Color_LaserJet_5M-cljet5.ppd.gz
/usr/share/cups/model/Kyocera/FS-5800C-cljet5.ppd.gz
/usr/share/cups/model/Kyocera/FS-5900C-cljet5.ppd.gz
/usr/share/cups/model/Kyocera/FS-8000C-cljet5.ppd.gz
/usr/share/cups/model/Xerox/DocuPrint_C20-cljet5.ppd.gz

But by default cljet5c (which does work) is used in this PPDs
because in those PPDs there is "*DefaultColorMode: Contone"
which uses cljet5c.

All other of the above Ghostscript devices are not used
in any of our PPDs.

Therefore we may ignore the non-working devices for 10.0
Comment 1 Dr. Werner Fink 2005-08-30 11:50:54 UTC
bmpa*                I can not reproduce

cgm24, cgm8, cgmmono do their own OutputFile handling and expect
                     a real file (don't know why)

   g31:espgs-8.15rc1 # file '| cat >&3' 
   | cat >&3: binary Computer Graphics Metafile


devicen              Wrong color model handling with gs 8.15

inferno              Segfault

oprp, opvp           OpenPrinting Vector Printer Driver Glue Code
                     is an interface like jis or stp, not a device

pcx2up               The 2-up PCX device is here only as an example,
                     and for testing as. As mentioned in devs.mak.

pnga                 Does nothing, used internal by pngmono, pnggray,
                     png16, png256, png16m, pngalpha
Comment 2 Dr. Werner Fink 2005-08-30 11:57:25 UTC
Removed pcx2up from build list.
Please remove oprp, opvp, and pnga from your check list.
Comment 3 Dr. Werner Fink 2005-08-30 11:58:06 UTC
For bmpa* please report your locale and environment
Comment 4 Dr. Werner Fink 2005-08-30 13:00:46 UTC
forgot cljet5:

cljet5                     Unrecoverable error: rangecheck in .putdeviceprops
Comment 5 Dr. Werner Fink 2005-08-30 13:07:17 UTC
cgm now uses the gs standard interface in opening files and pipes
Comment 6 Dr. Werner Fink 2005-08-31 14:26:36 UTC
Fix broken driver, removed exmaple driver.
Only the cgm* are broken, now they can write to
a pipe but the output to a regluar file or to
stdout is shorten.
Comment 7 Dr. Werner Fink 2005-09-01 13:19:48 UTC
Beside cgm* driver all is fixed
Comment 8 Dr. Werner Fink 2005-09-01 13:20:10 UTC
FIXED