#648042 dpkg: Purging conffile replaced by symlink removes target, not symlink

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
J G Miller
Date:
2015-03-29 01:30:11 UTC
Severity:
normal
#648042#5
Date:
2011-11-08 14:48:50 UTC
From:
To:
gdm sadly exists no more in "Testing" and so after today's upgrade,
it was necessary to purge the configuration files.

This caused /etc/X11/Xsession to be deleted which should not have
happened because this file is also part of x11-common, xdm, and wdm.

#648042#10
Date:
2011-11-08 14:56:46 UTC
From:
To:
Am 08.11.2011 15:48, schrieb J G Miller:

I'm pretty sure gdm does not delete that file.

gdm never owned that file nor does it have any maintainer scripts, which
remove that file.
Is it possible you meant /etc/gdm/Xsession?

#648042#15
Date:
2011-11-08 23:07:33 UTC
From:
To:
[Please always CC the bug report 648042@bugs.debian.org]
Am 08.11.2011 23:49, schrieb J G Miller:

Are you saying that dpkg removed the file the symlink was pointing at,
i.e. you changed
/etc/gdm/Xsession → /etc/X11/Xsession
with /etc/gdm/Xsession being owned by the gdm package.
On purge dpkg removed not only the symlink but also /etc/X11/Xsession?

I highly doubt that dpkg is doing that. But I'm CCing the dpkg
maintainers just in case.

Michael

#648042#20
Date:
2011-11-09 06:26:54 UTC
From:
To:
It's almost doing that.  In fact, it deletes _only_ the target of the
symlink, see #574658¹.

Cheers,
       Sven


¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574658

#648042#25
Date:
2011-11-09 11:42:14 UTC
From:
To:
reassign 648042 dpkg
forcemerge 574658 648042
thanks

Am 09.11.2011 07:26, schrieb Sven Joachim:

I stand corrrected. Thanks Sven for the pointer!

Reassigning and merging