Report forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#690051; Package dpkg.
(Tue, 09 Oct 2012 14:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Beckmann <debian@abeckmann.de>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Tue, 09 Oct 2012 14:15:05 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: symlink-conffiles: dpkg stores md5sum of target file in its database and
does not update it on upgrades
Date: Tue, 09 Oct 2012 16:12:16 +0200
Package: dpkg
Version: 1.16.8
Severity: important
User: debian-qa@lists.debian.org
Usertags: piuparts
Control: affects -1 syslog-ng-core
Hi,
the syslog-ng-core is one of the few packages using symlink conffiles,
causing trouble for piuparts and debsums because dpkg does not properly
handle this. There are several other issues with symlink-conffiles, but
none seemed to match this.
The following files are shipped by the syslog-ng-core package in sid:
lrwxrwxrwx 1 root root 37 Oct 3 15:49 /etc/systemd/system/multi-user.target.wants/syslog-ng.service -> /lib/systemd/system/syslog-ng.service
lrwxrwxrwx 1 root root 37 Oct 3 15:49 /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
-rw-r--r-- 1 root root 251 Oct 3 15:49 /lib/systemd/system/syslog-ng.service
The symlinks in /etc/ are conffiles.
And syslog-ng.service is having these md5sums:
3933398f3e6cf91d25e515977876208b /lib/systemd/system/syslog-ng.service <== 3.3.6-1, sid
41541800d349863ddd9f4279211ec4b3 /lib/systemd/system/syslog-ng.service <== 3.3.5-2, wheezy
dpkg -s syslog-ng-core (relevant parts extracted)
# fresh installation on wheezy:
Package: syslog-ng-core
Version: 3.3.5-2
Conffiles:
/etc/systemd/system/multi-user.target.wants/syslog-ng.service 41541800d349863ddd9f4279211ec4b3
/etc/systemd/system/syslog.service 41541800d349863ddd9f4279211ec4b3
# fresh installation on sid:
Package: syslog-ng-core
Version: 3.3.6-1
Conffiles:
/etc/systemd/system/multi-user.target.wants/syslog-ng.service 3933398f3e6cf91d25e515977876208b
/etc/systemd/system/syslog.service 3933398f3e6cf91d25e515977876208b
# fresh installation on wheezy and distupgrade to sid:
Package: syslog-ng-core
Version: 3.3.6-1
Conffiles:
/etc/systemd/system/multi-user.target.wants/syslog-ng.service 41541800d349863ddd9f4279211ec4b3
/etc/systemd/system/syslog.service 41541800d349863ddd9f4279211ec4b3
The md5sum for the symlink-conffiles does not get updated during package
upgrades - the link itself does not change, but the link target (that
was hashed and is not a conffile in this example) has been updated.
And of course debsums claims there are modified conffiles ...
Andreas
Added indication that 690051 affects syslog-ng-core
Request was from Andreas Beckmann <debian@abeckmann.de>
to submit@bugs.debian.org.
(Tue, 09 Oct 2012 14:15:05 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#690051; Package dpkg.
(Tue, 09 Oct 2012 15:12:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Tue, 09 Oct 2012 15:12:05 GMT) (full text, mbox, link).
To: Andreas Beckmann <debian@abeckmann.de>, 690051@bugs.debian.org
Subject: Re: Bug#690051: symlink-conffiles: dpkg stores md5sum of target file
in its database and does not update it on upgrades
Date: Tue, 9 Oct 2012 17:10:00 +0200
Control: forcemerge 421344 -1
Hi!
On Tue, 2012-10-09 at 16:12:16 +0200, Andreas Beckmann wrote:
> Package: dpkg
> Version: 1.16.8
> Severity: important
> User: debian-qa@lists.debian.org
> Usertags: piuparts
> Control: affects -1 syslog-ng-core
> the syslog-ng-core is one of the few packages using symlink conffiles,
> causing trouble for piuparts and debsums because dpkg does not properly
> handle this. There are several other issues with symlink-conffiles, but
> none seemed to match this.
symlink conffiles have never been supported, packages using that are
buggy and should be fixed (see also 421344 and 312846).
> The following files are shipped by the syslog-ng-core package in sid:
> lrwxrwxrwx 1 root root 37 Oct 3 15:49 /etc/systemd/system/multi-user.target.wants/syslog-ng.service -> /lib/systemd/system/syslog-ng.service
> lrwxrwxrwx 1 root root 37 Oct 3 15:49 /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
> -rw-r--r-- 1 root root 251 Oct 3 15:49 /lib/systemd/system/syslog-ng.service
I guess there's something to be said about symlinked configuration
shipped in /lib, but in any case the above is just wrong and goes
against the current system.
> The symlinks in /etc/ are conffiles.
>
> And syslog-ng.service is having these md5sums:
> 3933398f3e6cf91d25e515977876208b /lib/systemd/system/syslog-ng.service <== 3.3.6-1, sid
> 41541800d349863ddd9f4279211ec4b3 /lib/systemd/system/syslog-ng.service <== 3.3.5-2, wheezy
> The md5sum for the symlink-conffiles does not get updated during package
> upgrades - the link itself does not change, but the link target (that
> was hashed and is not a conffile in this example) has been updated.
> And of course debsums claims there are modified conffiles ...
Well, once this is natively supported by dpkg, what would be stored
would be the target of the symlink not its hash. The conffile prompt
interface would need to be adapted to show the difference in symlink
targets, etc.
thanks,
guillem
Severity set to 'normal' from 'important'
Request was from Guillem Jover <guillem@debian.org>
to 690051-submit@bugs.debian.org.
(Tue, 09 Oct 2012 15:12:05 GMT) (full text, mbox, link).
Added indication that bug 690051 blocks 421346
Request was from Guillem Jover <guillem@debian.org>
to 690051-submit@bugs.debian.org.
(Tue, 09 Oct 2012 15:12:06 GMT) (full text, mbox, link).
Removed indication that 690051 affects syslog-ng-core
Request was from Guillem Jover <guillem@debian.org>
to 690051-submit@bugs.debian.org.
(Tue, 09 Oct 2012 15:12:07 GMT) (full text, mbox, link).
Marked as found in versions dpkg/1.13.25.
Request was from Guillem Jover <guillem@debian.org>
to 690051-submit@bugs.debian.org.
(Tue, 09 Oct 2012 15:12:07 GMT) (full text, mbox, link).
Merged 421344690051
Request was from Guillem Jover <guillem@debian.org>
to 690051-submit@bugs.debian.org.
(Tue, 09 Oct 2012 15:12:08 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#690051; Package dpkg.
(Tue, 09 Oct 2012 16:09:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Beckmann <debian@abeckmann.de>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Tue, 09 Oct 2012 16:09:08 GMT) (full text, mbox, link).
Subject: Re: Bug#690051: symlink-conffiles: dpkg stores md5sum of target file
in its database and does not update it on upgrades
Date: Tue, 09 Oct 2012 18:07:22 +0200
Control: clone -1 -2
Control: reassign -2 syslog-ng-core 3.3.5-2
Control: found -2 3.3.6-1
Control: severity -2 serious
Control: retitle -2 symlink conffiles are not supported, causing problems for dpkg on upgrade/removal and incorrect debsums reports
On 2012-10-09 17:10, Guillem Jover wrote:
> On Tue, 2012-10-09 at 16:12:16 +0200, Andreas Beckmann wrote:
>> Package: dpkg
>> Version: 1.16.8
>> the syslog-ng-core is one of the few packages using symlink conffiles,
>> causing trouble for piuparts and debsums because dpkg does not properly
>> handle this. There are several other issues with symlink-conffiles, but
>> none seemed to match this.
>
> symlink conffiles have never been supported, packages using that are
> buggy and should be fixed (see also 421344 and 312846).
Thanks for this clarification. No need to patch debsums to just ignore
symlink-conffiles :-)
Cloning and reassigning to syslog-ng.
Andreas
Disconnected #690051 from all other report(s).
Request was from Andreas Beckmann <debian@abeckmann.de>
to control@bugs.debian.org.
(Tue, 09 Oct 2012 16:27:03 GMT) (full text, mbox, link).
Bug 690051 cloned as bug 690067
Request was from Andreas Beckmann <debian@abeckmann.de>
to control@bugs.debian.org.
(Tue, 09 Oct 2012 16:27:04 GMT) (full text, mbox, link).
Merged 421344690051
Request was from Andreas Beckmann <debian@abeckmann.de>
to control@bugs.debian.org.
(Tue, 09 Oct 2012 16:27:08 GMT) (full text, mbox, link).
Changed Bug submitter to 'Andreas Beckmann <anbe@debian.org>' from 'Andreas Beckmann <debian@abeckmann.de>'
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Sat, 26 Jan 2013 06:29:39 GMT) (full text, mbox, link).
Added indication that bug 690051 blocks 788585
Request was from Andreas Bombe <aeb@debian.org>
to control@bugs.debian.org.
(Sun, 22 Nov 2015 15:57:10 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.