Package: cupsys Version: 1.3.6-3 Severity: normal It looks like cupsd will tend to fail to load the *.convs files in /usr/share/cups/mime, while the *.types in the same directory are loaded correctly. Because cupsys ships the two files oopstops.convs and oopstops.types in that directory, this results in the following error message when trying to print a PostScript file generated by OpenOffice.org 2.0 (the version in etch). (For what it's worth, I've also attached a copy of this file.)
$ lpr test-oo2.0.ps
lpr: Unsupported format 'application/openofficeps'!
The error does not occur when printing PS files generated by
OpenOffice 2.4, because they do not seem to match with the MIME
type description in oopstops.types. (The PS files generated by
OpenOffice 2.4 includes the comment "%%Creator: (OpenOffice.org 2.4)",
while those generated by OpenOffice 2.0 has the comment
"%%Creator: OpenOffice.org 2.0".)
Anyway, I tried to recompile CUPS with CFLAGS=-DDEBUG. (First this
failed, but two trivial workarounds made it work.) The following lines
are from near the beginning of the long sequence of debug messages
which was printed after I started the recompiled cupsd:
"/usr/share/cups/mime/oopstops.types":
application/openofficeps string(0,%!) + contains(0,1024,"%%Creator:
OpenOffice.org 2.")
application/openofficeps: string(0,%!) + contains(0,1024,"%%Creator:
OpenOffice.org 2.")
making new OR group 0x80b1f20 for parenthesis...
adding 0x80b1f88: string, op = 6, logic = 2, invert = 0
setting group 0x80b1f20 op to AND...
adding 0x80b1ff0: contains, op = 11, logic = 1, invert = 0
"/usr/share/cups/mime/oopstops.convs":
application/openofficeps application/postscript 33 oopstops
Destination type application/postscript not found!
As the debug message indicates, the problem seems to be that cupsd
refuses to load the conversion rule for application/openofficeps,
because it has not loaded any MIME type description for
application/postscript yet. The reason for this appears to be the
patch search_mime_files_in_usr_share.dpatch, which seem to cause the
*.types files in /etc/cups, including mime.types with the MIME type
description for application/postscript, to be loaded after the *.convs
files in /usr/share/cups/mime.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages cupsys depends on:
ii adduser 3.107 add and remove users and groups
ii cupsys-common 1.3.6-3 Common UNIX Printing System(tm) -
ii debconf [debconf-2.0] 1.5.20 Debian configuration management sy
ii ghostscript 8.62.dfsg.1-2 The GPL Ghostscript PostScript/PDF
ii ghostscript-x [gs-esp 8.62.dfsg.1-2 The GPL Ghostscript PostScript/PDF
ii libavahi-compat-libdn 0.6.22-2 Avahi Apple Bonjour compatibility
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcupsimage2 1.3.6-3 Common UNIX Printing System(tm) -
ii libcupsys2 1.3.6-3 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.1.20-1 simple interprocess messaging syst
ii libgnutls26 2.2.2-1 the GNU TLS library - runtime libr
ii libkrb53 1.6.dfsg.3~beta1-4 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.7-6.1 OpenLDAP libraries
ii libpam0g 0.99.7.1-6 Pluggable Authentication Modules l
ii libpaper1 1.1.23 library for handling paper charact
ii libslp1 1.2.1-7.2 OpenSLP libraries
ii lsb-base 3.2-6 Linux Standard Base 3.2 init scrip
ii perl-modules 5.8.8-12 Core Perl modules
ii procps 1:3.2.7-6 /proc file system utilities
ii ssl-cert 1.0.17 simple debconf wrapper for OpenSSL
ii xpdf-utils [poppler-u 3.02-1.3 Portable Document Format (PDF) sui
Versions of packages cupsys recommends:
ii avahi-utils 0.6.22-2 Avahi browsing, publishing and dis
ii cupsys-client 1.3.6-3 Common UNIX Printing System(tm) -
ii foomatic-filters 3.0.2-20080211-3 OpenPrinting printer support - fil
ii smbclient 3.0.28a-1 a LanManager-like simple client fo
-- debconf information:
* cupsys/raw-print: true
cupsys/ports: 631
* cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd
cupsys/portserror:
cupsys/browse: true
test-oo2.0.ps
Description: PostScript document

