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

Bug#386551: cupsys: postinst script destroys local changes to config files



Package: cupsys
Version: 1.2.2-2
Severity: serious
Justification: Policy 10.7.3


Lines 131-137 of cupsys.postinst incorrectly assume that *any* lines
containing "Include /etc/cups/cups.d/browse.conf" and ".../ports.conf"
in /etc/cups/cupsd.conf are indeed remnants of now-obsolete debconf
options.

They are not.

The script should *at least* check if the debconf even has answers to
the now-obsolete questions and not destroy cupsd.conf if it has not
modified it earlier.

What happens (on a *fresh* install of etch):

1) install cupsys
2) edit cupsd.conf to Include /etc/cups/cups.d/browse.conf
3) remove cupsys
4) install cupsys
5) your Include -directive is gone

OR

1) install cupsd.conf, which Includes /etc/cups/cups.d/browse.conf
2) install cupsys
3) your include -directive is gone

This is *very* annoying in an environment, like ours, where cfengine
pre-distributes config files (dpkg is always run with --conf-old) and
packages are installed only afterwards.

-Juha

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-amd64-k8-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages cupsys depends on:
ii  adduser                  3.97            Add and remove users and groups
ii  cupsys-common            1.2.2-2         Common UNIX Printing System(tm) - 
ii  debconf [debconf-2.0]    1.5.3           Debian configuration management sy
ii  gs-esp                   8.15.2.dfsg.1-2 The Ghostscript PostScript interpr
ii  libc6                    2.3.6.ds1-4     GNU C Library: Shared libraries
ii  libcupsimage2            1.2.2-2         Common UNIX Printing System(tm) - 
ii  libcupsys2               1.2.2-2         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.1        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.1-14          Linux Standard Base 3.1 init scrip
ii  patch                    2.5.9-4         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-9          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-2          Common UNIX Printing System(tm) - 
ii  foomatic-filters        3.0.2-20060712-3 linuxprinting.org printer support 
pn  smbclient               <none>           (no description available)

-- no debconf information




Reply to: