Package: cupsys Version: 1.2.2-1 Followup-For: Bug #374142 Hello,
I think this is the bug STR #1839 (http://www.cups.org/str.php?L1839). I had the same problem but solved it with the attached patch (I took it from the above URL). -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (700, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Versions of packages cupsys depends on: ii adduser 3.77 Add and remove users and groups ii cupsys-common 1.2.2-1 Common UNIX Printing System(tm) - ii debconf [debconf-2.0] 1.5.2 Debian configuration management sy ii gs-esp 8.15.1.dfsg.1-2 The Ghostscript PostScript interpr ii libc6 2.3.6-7 GNU C Library: Shared libraries ii libcupsimage2 1.2.2-1 Common UNIX Printing System(tm) - ii libcupsys2 1.2.2-1 Common UNIX Printing System(tm) - ii libdbus-1-2 0.62-4 simple interprocess messaging syst ii libgnutls13 1.4.2-1 the GNU TLS library - runtime libr ii libldap2 2.1.30-13+b1 OpenLDAP libraries ii libpam0g 0.79-3.2 Pluggable Authentication Modules l ii libpaper1 1.1.19 Library for handling paper charact ii libslp1 1.2.1-5 OpenSLP libraries ii lsb-base 3.0-10 Linux Standard Base 3.0 init scrip ii patch 2.5.9-2 Apply a diff file to an original ii perl-modules 5.8.8-6.1 Core Perl modules ii procps 1:3.2.7-2 /proc file system utilities ii xpdf-utils [poppler-util 3.01-7 Portable Document Format (PDF) sui ii zlib1g 1:1.2.3-13 compression library - runtime Versions of packages cupsys recommends: ii cupsys-client 1.2.2-1 Common UNIX Printing System(tm) - ii foomatic-filters 3.0.2-20060530-1 linuxprinting.org printer support ii smbclient 3.0.22-1 a LanManager-like simple client fo -- debconf information: * cupsys/raw-print: true * cupsys/backend: ipp, lpd, parallel, socket, usb
Index: pstops.c =================================================================== --- pstops.c (revision 5871) +++ pstops.c (working copy) @@ -1587,6 +1587,10 @@ break; } + puts("%%BeginSetup"); + + do_setup(doc, ppd); + if (!strncmp(line, "%%BeginSetup", 12)) { while (strncmp(line, "%%EndSetup", 10)) @@ -1603,7 +1607,7 @@ doc->num_options = include_feature(ppd, line, doc->num_options, &(doc->options)); } - else + else if (strncmp(line, "%%BeginSetup", 12)) fwrite(line, 1, linelen, stdout); if ((linelen = cupsFileGetLine(fp, line, linesize)) == 0) @@ -1615,11 +1619,7 @@ else fputs("ERROR: Missing %%EndSetup!\n", stderr); } - else - puts("%%BeginSetup"); - do_setup(doc, ppd); - puts("%%EndSetup"); return (linelen);