[Pkg-cups-devel] Bug#319602: cupsys: Looks like a bashism in the
postinst is causing this
Michael Gurski
debianbugs at gurski.org
Sun Dec 18 05:16:18 UTC 2005
Package: cupsys
Version: 1.1.23-14
Followup-For: Bug #319602
On one of the machines here, /bin/sh was linked to /bin/dash, and the
lastest sid upgrade of cupsys to 1.1.23-14 was failing with this exact
error. This version commented out the Listen line it
/etc/cups/cupsd.conf, and added an include of
/etc/cups/cups.d/ports.conf. With dash, ports.conf ended up
containing "-e -n Port 631". Changing line 209 of cupsys.postinst to:
/bin/echo -e -n "$VAL" > /etc/cups/cups.d/ports.conf
resolves the problem and creates ports.conf correctly. Changing
/bin/sh to link to /bin/bash also fixes the problem, but I'm under the
impression that changing the postinst is the more correct method of
resolving this problem. The tip-off to check ports.conf came from the
error messages in /var/log/cups/error_log:
E [17/Dec/2005:23:51:49 -0500] Unknown directive -e on line 1.
I [17/Dec/2005:23:51:49 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
X [17/Dec/2005:23:51:49 -0500] No valid Listen or Port lines were found in the configuration file!
Specifically, the "Unknown directive" caused me to start comparing
md5sums between the broken system (i686) and a working system (amd64
and i686) with the same version, which led to the discovery of the
incorrect ports.conf file.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages cupsys depends on:
ii adduser 3.80 Add and remove users and groups
ii debconf [debconf-2.0] 1.4.62 Debian configuration management sy
ii gs-esp 8.15.1.dfsg.1-1 The Ghostscript PostScript interpr
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
ii libcupsimage2 1.1.23-14 Common UNIX Printing System(tm) -
ii libcupsys2 1.1.23-14 Common UNIX Printing System(tm) -
ii libgnutls12 1.2.9-2 the GNU TLS library - runtime libr
ii libpam0g 0.79-3 Pluggable Authentication Modules l
ii libpaper1 1.1.14-3 Library for handling paper charact
ii libslp1 1.2.1-3 OpenSLP libraries
ii patch 2.5.9-2 Apply a diff file to an original
ii perl-modules 5.8.7-10 Core Perl modules
ii procps 1:3.2.6-2 /proc file system utilities
ii xpdf-utils 3.01-3 Portable Document Format (PDF) sui
ii zlib1g 1:1.2.3-8 compression library - runtime
Versions of packages cupsys recommends:
ii cupsys-client 1.1.23-14 Common UNIX Printing System(tm) -
ii foomatic-filters 3.0.2-20050720-1 linuxprinting.org printer support
ii smbclient 3.0.20b-3 a LanManager-like simple client fo
-- debconf information:
* cupsys/raw-print: true
* cupsys/ports: 631
* cupsys/backend: ipp, lpd, parallel, socket, usb
cupsys/portserror:
* cupsys/browse: true
More information about the Pkg-cups-devel
mailing list