Processed: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Debian Bug Tracking System
Processing control commands:

> affects -1 syslog-ng-core
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Added indication that 690051 affects syslog-ng-core

-- 
690051: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690051
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Andreas Beckmann
Package: dpkg
Version: 1.16.8
Severity: important
User: debian...@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


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Guillem Jover
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...@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


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Processed: Re: Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Debian Bug Tracking System
Processing control commands:

> forcemerge 421344 -1
Bug #421344 [dpkg] dpkg: does not gracefully handle symlink conffiles
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Severity set to 'normal' from 'important'
421346 was blocked by: 421344
421346 was not blocking any bugs.
Added blocking bug(s) of 421346: 690051
Removed indication that 690051 affects syslog-ng-core
Marked as found in versions dpkg/1.13.25.
Bug #421344 [dpkg] dpkg: does not gracefully handle symlink conffiles
Marked as found in versions dpkg/1.16.8.
Merged 421344 690051

-- 
421344: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421344
421346: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421346
690051: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690051
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Andreas Beckmann
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


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Processed (with 5 errors): Fwd: Processed (with 5 errors): Re: Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> # trying again after hitting #684542
> clone 690051 -1
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Bug #421344 [dpkg] dpkg: does not gracefully handle symlink conffiles
Failed to clone 690051: Bug is marked as being merged with others. Use an 
existing clone.

> reassign -1 syslog-ng-core 3.3.5-2
Failed to clear fixed versions and reopen on -1: The 'bug' parameter ("-1") to 
Debbugs::Control::set_package did not pass regex check

Debbugs::Control::set_package('transcript', 'GLOB(0x3476af8)', 
'requester', 'Andreas Beckmann ', 'request_addr', 
'cont...@bugs.debian.org', 'request_msgid', '<50744da6.9030...@abeckmann.de>', 
'request_subject', ...) called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 254
eval {...} called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 253
Debbugs::Control::Service::control_line('line', 'reassign -1 
syslog-ng-core 3.3.5-2', 'clonebugs', 'HASH(0x33eb3f8)', 'limit', 
'HASH(0x33ea8d8)', 'common_control_options', 'ARRAY(0x33ea920)', 'errors', ...) 
called at /usr/lib/debbugs/service line 474

> found -1 3.3.6-1
Failed to add found on -1: The 'bug' parameter ("-1") to 
Debbugs::Control::set_found did not pass regex check

Debbugs::Control::set_found('transcript', 'GLOB(0x3476af8)', 
'requester', 'Andreas Beckmann ', 'request_addr', 
'cont...@bugs.debian.org', 'request_msgid', '<50744da6.9030...@abeckmann.de>', 
'request_subject', ...) called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 297
eval {...} called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 296
Debbugs::Control::Service::control_line('line', 'found -1 3.3.6-1', 
'clonebugs', 'HASH(0x33eb3f8)', 'limit', 'HASH(0x33ea8d8)', 
'common_control_options', 'ARRAY(0x33ea920)', 'errors', ...) called at 
/usr/lib/debbugs/service line 474

> severity -1 serious
Failed to set severity of Bug -1 to serious: The 'bug' parameter ("-1") to 
Debbugs::Control::set_severity did not pass regex check

Debbugs::Control::set_severity('transcript', 'GLOB(0x3476af8)', 
'requester', 'Andreas Beckmann ', 'request_addr', 
'cont...@bugs.debian.org', 'request_msgid', '<50744da6.9030...@abeckmann.de>', 
'request_subject', ...) called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 421
eval {...} called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 420
Debbugs::Control::Service::control_line('line', 'severity -1 serious', 
'clonebugs', 'HASH(0x33eb3f8)', 'limit', 'HASH(0x33ea8d8)', 
'common_control_options', 'ARRAY(0x33ea920)', 'errors', ...) called at 
/usr/lib/debbugs/service line 474

> retitle -1 symlink conffiles are not supported, causing problems for dpkg on 
> upgrade/removal and incorrect debsums reports
Failed to set the title of -1: The 'bug' parameter ("-1") to 
Debbugs::Control::set_title did not pass regex check

Debbugs::Control::set_title('transcript', 'GLOB(0x3476af8)', 
'requester', 'Andreas Beckmann ', 'request_addr', 
'cont...@bugs.debian.org', 'request_msgid', '<50744da6.9030...@abeckmann.de>', 
'request_subject', ...) called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 513
eval {...} called at 
/usr/local/lib/site_perl/Debbugs/Control/Service.pm line 512
Debbugs::Control::Service::control_line('line', 'retitle -1 symlink 
conffiles are not supported, causing probl...', 'clonebugs', 'HASH(0x33eb3f8)', 
'limit', 'HASH(0x33ea8d8)', 'common_control_options', 'ARRAY(0x33ea920)', 
'errors', ...) called at /usr/lib/debbugs/service line 474

> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Processed: Fwd: Processed (with 5 errors): Fwd: Processed (with 5 errors): Re: Bug#690051: symlink-conffiles: dpkg stores md5sum of target file in its database and does not update it on upgrades

2012-10-09 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> # # trying again after hitting #684542
> # trying again after Failed to clone 690051: Bug is marked as being merged 
> with others. Use an existing clone.
> unmerge 690051
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Bug #421344 [dpkg] dpkg: does not gracefully handle symlink conffiles
Disconnected #690051 from all other report(s).
> clone 690051 -1
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Bug 690051 cloned as bug 690067
690067 was not blocked by any bugs.
690067 was blocking: 421346
Added blocking bug(s) of 690067: 421346
> reassign -1 syslog-ng-core 3.3.5-2
Bug #690067 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Bug reassigned from package 'dpkg' to 'syslog-ng-core'.
No longer marked as found in versions dpkg/1.16.8 and dpkg/1.13.25.
Ignoring request to alter fixed versions of bug #690067 to the same values 
previously set
Bug #690067 [syslog-ng-core] symlink-conffiles: dpkg stores md5sum of target 
file in its database and does not update it on upgrades
Marked as found in versions syslog-ng/3.3.5-2.
> found -1 3.3.6-1
Bug #690067 [syslog-ng-core] symlink-conffiles: dpkg stores md5sum of target 
file in its database and does not update it on upgrades
Marked as found in versions syslog-ng/3.3.6-1.
> severity -1 serious
Bug #690067 [syslog-ng-core] symlink-conffiles: dpkg stores md5sum of target 
file in its database and does not update it on upgrades
Severity set to 'serious' from 'normal'
> retitle -1 symlink conffiles are not supported, causing problems for dpkg on 
> upgrade/removal and incorrect debsums reports
Bug #690067 [syslog-ng-core] symlink-conffiles: dpkg stores md5sum of target 
file in its database and does not update it on upgrades
Changed Bug title to 'symlink conffiles are not supported, causing problems for 
dpkg on upgrade/removal and incorrect debsums reports' from 'symlink-conffiles: 
dpkg stores md5sum of target file in its database and does not update it on 
upgrades'
> merge 421344 690051
Bug #421344 [dpkg] dpkg: does not gracefully handle symlink conffiles
Bug #690051 [dpkg] symlink-conffiles: dpkg stores md5sum of target file in its 
database and does not update it on upgrades
Merged 421344 690051
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
421344: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421344
690051: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690051
690067: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690067
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org