这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #645849
dpkg: conffile marked as obsolete after being taken over by different package

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Michael Biebl <biebl@debian.org>

Date: Wed, 19 Oct 2011 03:57:02 UTC

Severity: normal

Merged with 886389

Found in version dpkg/1.19.0.4

Blocking fix for 983441: libxapp1: generates an obsolete conffile

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#645849; Package console-setup. (Wed, 19 Oct 2011 03:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <biebl@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 19 Oct 2011 03:57:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Biebl <biebl@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: obsolete conffiles not removed on upgrades
Date: Wed, 19 Oct 2011 05:53:55 +0200
Package: console-setup
Version: 1.73
Severity: important

While doing a test-upgrade from squeeze to sid, the following conffiles
were not cleaned up during the upgrade and marked as obsolete in the
dpkg status file:

Conffiles:
 /etc/console-setup/remap.inc 775b76c6c04cd18f8c72563e413a36aa obsolete
 /etc/console-setup/compose.VISCII.inc 0741db54ddb6268e476010a44f219f03 obsolete
 /etc/console-setup/compose.TIS-620.inc 31b73af83ef3993c128e2b983b9eaf89 obsolete
 /etc/console-setup/compose.KOI8-U.inc 217ee62f6982736276f41f760f8622f8 obsolete
 /etc/console-setup/compose.KOI8-R.inc 8cfd7766b86e5e55d6e71d0d95519c92 obsolete
 /etc/console-setup/compose.ISO-8859-9.inc 1893bc3994c24917c907a17ceb2f284b obsolete
 /etc/console-setup/compose.ISO-8859-8.inc 9cceaa9f3312f89aba371d3c893f4e7b obsolete
 /etc/console-setup/compose.ISO-8859-7.inc aa280de25f20e82f58da707101b24d48 obsolete
 /etc/console-setup/compose.ISO-8859-6.inc 41ea36ea1c1a1c0c9bebdf0016395e1f obsolete
 /etc/console-setup/compose.ISO-8859-5.inc f861a4b0403490677e6d400f2d7129da obsolete
 /etc/console-setup/compose.ISO-8859-4.inc 4092be9556db0ac82e96eae413f1bd47 obsolete
 /etc/console-setup/compose.ISO-8859-3.inc e70d7b634791b9c97db75bddf6dcc5fa obsolete
 /etc/console-setup/compose.ISO-8859-2.inc a56cb83dbe0cd88e4deef52d966d30e4 obsolete
 /etc/console-setup/compose.ISO-8859-16.inc 8245c19b5262d8d23ca856587739eb20 obsolete
 /etc/console-setup/compose.ISO-8859-15.inc cfa9b04fec26afa1debc17ce09d46a0a obsolete
 /etc/console-setup/compose.ISO-8859-14.inc a19822b59629ea7af7682d9247de807f obsolete
 /etc/console-setup/compose.ISO-8859-13.inc 9c2f47a52091515749fefc62fc8efd63 obsolete
 /etc/console-setup/compose.ISO-8859-11.inc ad2f3cc7ee64602a790bad8a2a989243 obsolete
 /etc/console-setup/compose.ISO-8859-10.inc e5fce59617c839b56574c9e323d34686 obsolete
 /etc/console-setup/compose.ISO-8859-1.inc 719a4300a50dcb168d7de921bab338e9 obsolete
 /etc/console-setup/compose.ISIRI-3342.inc 5ada7fbba750192f11fa238add232ba9 obsolete
 /etc/console-setup/compose.IBM1133.inc a31102602f7e7cab9738022b6c5469ae obsolete
 /etc/console-setup/compose.GEORGIAN-PS.inc cf45272b6bf35a22223b132600dc36c3 obsolete
 /etc/console-setup/compose.GEORGIAN-ACADEMY.inc b6d80f40abff7e8af236796ebaca0247 obsolete
 /etc/console-setup/compose.CP1256.inc 5ea5e4d41da7a88f742863810e86144b obsolete
 /etc/console-setup/compose.CP1255.inc c972a2e90938657e97b643366b98b2ed obsolete
 /etc/console-setup/compose.CP1251.inc fef88d8c8dd4c726498003fd3cd84a7f obsolete
 /etc/console-setup/compose.ARMSCII-8.inc fef36b61fb8b1cacc151ad3db127f777 obsolete


See
http://wiki.debian.org/DpkgConffileHandling
and man dpkg-maintscript-helper for how to handle obsolete conffiles.

Cheers,
Michael


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-2-486
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages console-setup depends on:
ii  console-setup-linux     1.73  
ii  debconf                 1.5.41
ii  keyboard-configuration  1.73  
ii  xkb-data                2.1-2 

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii  locales   2.13-21
ii  lsb-base  3.2-28 

Versions of packages keyboard-configuration depends on:
ii  debconf  1.5.41

Versions of packages console-setup-linux depends on:
ii  kbd                     1.15.3-7
ii  keyboard-configuration  1.73    

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
ii  console-common  <none>  
ii  console-data    2:1.10-9
ii  console-tools   <none>  
ii  kbd             1.15.3-7

-- debconf information excluded




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#645849; Package console-setup. (Wed, 19 Oct 2011 10:43:01 GMT) (full text, mbox, link).


Acknowledgement sent to Anton Zinoviev <anton@lml.bas.bg>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 19 Oct 2011 10:43:05 GMT) (full text, mbox, link).


Message #10 received at 645849@bugs.debian.org (full text, mbox, reply):

From: Anton Zinoviev <anton@lml.bas.bg>
To: Michael Biebl <biebl@debian.org>, 645849@bugs.debian.org
Subject: Re: Bug#645849: obsolete conffiles not removed on upgrades
Date: Wed, 19 Oct 2011 13:06:45 +0300
On Wed, Oct 19, 2011 at 05:53:55AM +0200, Michael Biebl wrote:
> Package: console-setup
> Version: 1.73
> Severity: important
> 
> While doing a test-upgrade from squeeze to sid, the following conffiles
> were not cleaned up during the upgrade and marked as obsolete in the
> dpkg status file:
> 
> Conffiles:
>  /etc/console-setup/remap.inc 775b76c6c04cd18f8c72563e413a36aa obsolete
>  /etc/console-setup/compose.VISCII.inc 0741db54ddb6268e476010a44f219f03 obsolete
>
> [...]

The conffiles are not obsoleted, now they belong to another package - 
console-setup-linux. I am sure this is not the first time conffiles have 
been transferred from one Debian package to another, but I don't know 
what is the proper way to handle this. I suppose this bug belongs to 
dpkg, should I reassign?

Anton Zinoviev





Bug reassigned from package 'console-setup' to 'dpkg'. Request was from Anton Zinoviev <anton@lml.bas.bg> to control@bugs.debian.org. (Sun, 30 Oct 2011 20:15:05 GMT) (full text, mbox, link).


Bug No longer marked as found in versions console-setup/1.73. Request was from Anton Zinoviev <anton@lml.bas.bg> to control@bugs.debian.org. (Sun, 30 Oct 2011 20:15:06 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'important' Request was from Anton Zinoviev <anton@lml.bas.bg> to control@bugs.debian.org. (Sun, 30 Oct 2011 20:15:06 GMT) (full text, mbox, link).


Changed Bug title to 'Provide a way to move conffiles from one package to another' from 'obsolete conffiles not removed on upgrades' Request was from Anton Zinoviev <anton@lml.bas.bg> to control@bugs.debian.org. (Sun, 30 Oct 2011 20:15:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#645849; Package dpkg. (Mon, 31 Oct 2011 07:54:07 GMT) (full text, mbox, link).


Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 31 Oct 2011 07:54:09 GMT) (full text, mbox, link).


Message #23 received at 645849@bugs.debian.org (full text, mbox, reply):

From: Raphael Hertzog <hertzog@debian.org>
To: Anton Zinoviev <anton@lml.bas.bg>
Cc: Michael Biebl <biebl@debian.org>, 645849@bugs.debian.org
Subject: Re: Bug#645849: obsolete conffiles not removed on upgrades
Date: Mon, 31 Oct 2011 08:49:42 +0100
retitle 645849 dpkg should better manage the Conffiles field
thanks

On Wed, 19 Oct 2011, Anton Zinoviev wrote:
> On Wed, Oct 19, 2011 at 05:53:55AM +0200, Michael Biebl wrote:
> > Package: console-setup
> > Version: 1.73
> > Severity: important
> > 
> > While doing a test-upgrade from squeeze to sid, the following conffiles
> > were not cleaned up during the upgrade and marked as obsolete in the
> > dpkg status file:
> > 
> > Conffiles:
> >  /etc/console-setup/remap.inc 775b76c6c04cd18f8c72563e413a36aa obsolete
> >  /etc/console-setup/compose.VISCII.inc 0741db54ddb6268e476010a44f219f03 obsolete
> >
> > [...]
> 
> The conffiles are not obsoleted, now they belong to another package - 
> console-setup-linux. I am sure this is not the first time conffiles have 
> been transferred from one Debian package to another, but I don't know 
> what is the proper way to handle this. I suppose this bug belongs to 
> dpkg, should I reassign?

Well, dpkg certainly handles conffiles moving from one package to the
other if you use the proper "Replaces" field like for any other file.

Michael, what does your system say for "dpkg -S
/etc/console-setup/remap.inc" ?

I think it will give the new package. And the file will only appear in
dpkg -L of the new package too. However it's true that the "Conffiles"
field is not always properly updated. The conffile often ends up being
listed on both packages.

I instrumented the "t-conffile-replaces" test case like this:
--- a/t-conffile-replaces/Makefile
+++ b/t-conffile-replaces/Makefile
@@ -9,6 +9,9 @@ define VERIFY
 test "`$(PKG_STATUS) pkg-conff-original`" = "install ok installed"
 test "`$(PKG_STATUS) pkg-conff-takeover`" = "install ok installed"
 test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile"
+$(DPKG_QUERY) -W -f'$${Conffiles}\n' pkg-conff-original
+echo "Takeover:"
+$(DPKG_QUERY) -W -f'$${Conffiles}\n' pkg-conff-takeover
 cmp ref-conffile /test-conffile
 endef

It gives various results depending on how dpkg is called:
test-two-run-ordered & test-two-run-reverse:
 /test-conffile e8a2f071ccdf836fc77865fba3ee8558
Takeover:
 /test-conffile 45a18cfae67be6e80a5ec2ee60579bf3

test-one-run-ordered:
 /test-conffile 45a18cfae67be6e80a5ec2ee60579bf3
Takeover:
 /test-conffile newconffile

test-one-run-reverse:
 /test-conffile newconffile
Takeover:
 /test-conffile 45a18cfae67be6e80a5ec2ee60579bf3

There's room for improvements here.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/




Changed Bug title to 'dpkg should better manage the Conffiles field' from 'Provide a way to move conffiles from one package to another' Request was from Raphael Hertzog <hertzog@debian.org> to control@bugs.debian.org. (Mon, 31 Oct 2011 07:54:11 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#645849; Package dpkg. (Mon, 31 Oct 2011 11:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Anton Zinoviev <anton@lml.bas.bg>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 31 Oct 2011 11:15:10 GMT) (full text, mbox, link).


Message #30 received at 645849@bugs.debian.org (full text, mbox, reply):

From: Anton Zinoviev <anton@lml.bas.bg>
To: Raphael Hertzog <hertzog@debian.org>
Cc: Michael Biebl <biebl@debian.org>, 645849@bugs.debian.org
Subject: Re: Bug#645849: obsolete conffiles not removed on upgrades
Date: Mon, 31 Oct 2011 13:07:51 +0200
On Mon, Oct 31, 2011 at 08:49:42AM +0100, Raphael Hertzog wrote:
> 
> Well, dpkg certainly handles conffiles moving from one package to the
> other if you use the proper "Replaces" field like for any other file.

Currently console-setup-linux doesn't "Replace" console-setup.

If this was the real cause of the problem, then perhaps the bug can be 
reassigned back to console-setup? Regardless of the reassigning, thanks 
for the hint!  I will change this in the next version of console-setup.

Anton Zinoviev




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#645849; Package dpkg. (Mon, 31 Oct 2011 13:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 31 Oct 2011 13:51:07 GMT) (full text, mbox, link).


Message #35 received at 645849@bugs.debian.org (full text, mbox, reply):

From: Raphael Hertzog <hertzog@debian.org>
To: Anton Zinoviev <anton@lml.bas.bg>
Cc: Michael Biebl <biebl@debian.org>, 645849@bugs.debian.org
Subject: Re: Bug#645849: obsolete conffiles not removed on upgrades
Date: Mon, 31 Oct 2011 14:46:12 +0100
On Mon, 31 Oct 2011, Anton Zinoviev wrote:
> Currently console-setup-linux doesn't "Replace" console-setup.

But it conflicts with old version of it, so it's enough to take over
the conffile since at no point in time is the conffile owned by 2
packages.

An obsolete conffile can always be taken over without any explicit
Replaces field.

> If this was the real cause of the problem, then perhaps the bug can be 
> reassigned back to console-setup? Regardless of the reassigning, thanks 
> for the hint!  I will change this in the next version of console-setup.

There's no real bug except the fact that the files are listed in the
Conffiles field of two packages at the same time. So I'll keep this bug
on dpkg.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/




Severity set to 'normal' from 'wishlist' Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:09 GMT) (full text, mbox, link).


Added indication that bug 645849 blocks 983441 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:10 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.19.0.4. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:10 GMT) (full text, mbox, link).


Merged 645849 886389 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:10 GMT) (full text, mbox, link).


Changed Bug title to 'dpkg: conffile marked as obsolete after being taken over by different package' from 'dpkg should better manage the Conffiles field'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 23:18:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 27 11:36:09 2025; Machine Name: berlioz

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.