Bug#755932: Please remove cups.path symlink from multi-user.target on upgrades
Package: cups-daemon
Version: 1.7.4-2
Severity: normal
File: /lib/systemd/system/cups.path
User: pkg-systemd-maintainers@lists.alioth.debian.org
Usertags: systemd-units
Hi,
this is a follow up for #755690.
While i-s-h makes sure to create the new symlinks in paths.target, it
doesn't cleanup the old symlink from multi-user.target (yet).
It's in that account similar to insserv, which doesn't clean up old
symlinks from /etc/rc?.d when the LSB header changes.
It's not clear, if we can handle that in i-s-h in a clean way, but in
any case, Michael Stapelbert currently doesn't have enough to look into
this.
I'd therefore suggest to remove this symlink manually on upgrades.
A simple
if dpkg --compare-versions "$2" lt "1.7.4-3" ; then
rm -f /etc/systemd/system/multi-user.target.wants/cups.path
fi
should do the trick.
Cheers,
Michael
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cups-daemon depends on:
ii adduser 3.113+nmu3
ii bc 1.06.95-9
ii dpkg 1.17.10
ii init-system-helpers 1.19
ii libavahi-client3 0.6.31-4
ii libavahi-common3 0.6.31-4
ii libc6 2.19-7
ii libcups2 1.7.4-2
ii libcupsmime1 1.7.4-2
ii libdbus-1-3 1.8.6-1
ii libgnutls-deb0-28 3.2.16-1
ii libgssapi-krb5-2 1.12.1+dfsg-5
ii libpam0g 1.1.8-3
ii libpaper1 1.1.24+nmu3
ii libsystemd-daemon0 208-6
ii lsb-base 4.1+Debian13
ii procps 1:3.3.9-7
ii ssl-cert 1.0.34
Versions of packages cups-daemon recommends:
ii avahi-daemon 0.6.31-4
ii colord 1.2.1-1
ii cups-browsed 1.0.54-3+b1
Versions of packages cups-daemon suggests:
ii cups 1.7.4-2
ii cups-bsd 1.7.4-2
ii cups-client 1.7.4-2
ii cups-common 1.7.4-2
ii cups-filters [foomatic-filters] 1.0.54-3+b1
pn cups-pdf <none>
ii cups-ppdc 1.7.4-2
ii cups-server-common 1.7.4-2
ii foomatic-db 20140325-1
ii ghostscript 9.05~dfsg-8.1
pn hplip <none>
ii poppler-utils 0.26.3-1
ii printer-driver-gutenprint 5.2.10-3
pn printer-driver-hpcups <none>
ii smbclient 2:4.1.9+dfsg-2
ii udev 208-6
-- no debconf information
Reply to: