[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#737709: cups: Unbalanced curly brackets in templates



Package: cups
Version: 1.5.3-5+deb7u1
Severity: normal
Tags: upstream

Dear Maintainer,

I found error messages in the log like this:
[CGI] Saw EOF, expected '}'!

After a short research I figured out this is due syntax errors
in template files.
I run this command to find suspicious ones:

$ find /usr/share/cups/templates -type f -name '*.tmpl' | while read f; do echo -n "$f: "; (tr -cd '{}' < $f;echo) | sed 's/^/0/;s/{/+1/g;s/}/-1/g' | bc; done | grep -v ': 0$'
/usr/share/cups/templates/hu/printers-header.tmpl: 1
/usr/share/cups/templates/hu/classes-header.tmpl: 1
/usr/share/cups/templates/hu/jobs-header.tmpl: 1
$ 

Regards

Gabor

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.10-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages cups depends on:
ii  adduser                3.113+nmu3
ii  bc                     1.06.95-2
ii  cups-client            1.5.3-5+deb7u1
ii  cups-common            1.5.3-5+deb7u1
ii  cups-filters           1.0.18-2.1
ii  cups-ppdc              1.5.3-5+deb7u1
ii  debconf [debconf-2.0]  1.5.49
ii  dpkg                   1.16.12
ii  ghostscript            9.05~dfsg-6.3+deb7u1
ii  libavahi-client3       0.6.31-2
ii  libavahi-common3       0.6.31-2
ii  libc-bin               2.13-38
ii  libc6                  2.13-38
ii  libcups2               1.5.3-5+deb7u1
ii  libcupscgi1            1.5.3-5+deb7u1
ii  libcupsimage2          1.4.4-7+squeeze3
ii  libcupsmime1           1.5.3-5+deb7u1
ii  libcupsppdc1           1.5.3-5+deb7u1
ii  libdbus-1-3            1.6.8-1+deb7u1
ii  libgcc1                1:4.7.2-5
ii  libgnutls26            2.12.20-7
ii  libgssapi-krb5-2       1.10.1+dfsg-5+deb7u1
ii  libkrb5-3              1.10.1+dfsg-5+deb7u1
ii  libldap-2.4-2          2.4.31-1+nmu2
ii  libpam0g               1.1.3-7.1
ii  libpaper1              1.1.24+nmu2
ii  libslp1                1.2.1-9
ii  libstdc++6             4.7.2-5
ii  libusb-1.0-0           2:1.0.11-1
ii  lsb-base               4.1+Debian8+deb7u1
ii  poppler-utils          0.18.4-6
ii  procps                 1:3.3.3-3
ii  ssl-cert               1.0.32

Versions of packages cups recommends:
pn  avahi-daemon               <none>
ii  colord                     0.1.21-1
ii  foomatic-filters           4.0.17-1
ii  ghostscript-cups           9.05~dfsg-6.3+deb7u1
ii  printer-driver-gutenprint  5.2.9-1

Versions of packages cups suggests:
ii  cups-bsd               1.5.3-5+deb7u1
pn  cups-pdf               <none>
ii  foomatic-db            20120523-1
ii  hplip                  3.12.6-3.1+deb7u1
ii  printer-driver-hpcups  3.12.6-3.1+deb7u1
ii  smbclient              2:3.6.6-6+deb7u2
ii  udev                   175-7.2

-- debconf information:
* cupsys/raw-print: true
* cupsys/backend: ipp, lpd, socket, usb, snmp, dnssd


Reply to: