On Sun, Aug 11, 2013 at 05:28:56PM +0200, Paul Wise wrote: > On Sun, 2013-08-11 at 16:04 +0200, Javi Merino wrote: > > > /etc/bash_completion.d/mercurial and /etc/mercurial/hgrc were > > conffiles of mercurial in 2.6.2-1 and are conffiles of > > mercurial-common in 2.6.3-1. mercurial depends on mercurial-common, > > so is this really a bug? > > So the issue must be that you aren't properly transferring these > conffiles between packages. Perhaps this post helps with that: > > http://www.chiark.greenend.org.uk/ucgi/~cjwatson/blosxom/debian/2006-12-23-moving-conffiles.html > https://lists.debian.org/debian-devel/2006/12/msg00647.html
Well, that post says: "Fortunately, all of this is only necessary for upgrades from sarge to etch, and once we can expect everyone to have etch's dpkg installed we can move conffiles between packages more or less like any other files." So I don't really know how much of that post is actually helpful for this situation. What am I supposed to do? Remove the files in mercurial-common's preinst if they are present and their md5 match? > In addition, the second two files should be removed: > > pabs@chianamo ~ $ dpkg-query -W -f='${Conffiles}\n' mercurial | grep obsolete > | tail -n2 > /etc/mercurial/hgrc.d/mergetools.rc 256f6d68e04f68df651392d7019bad0a obsolete > /etc/mercurial/hgrc.d/cacerts.rc 9f9020947cdcb24be9e042f5fa40a43a obsolete Why? Those files are still present in mercurial 2.6.3-1 and they still are conffiles. I don't want to remove them, they are part of the package. > > Besides, I can't reproduce it on a clean sid chroot: > > Er, obviously you won't be able to reproduce it in a clean sid chroot > that never had the old version of mercurial installed. Ok, I tried upgrading from 2.6.2-1 to 2.6.3-1: adequate doesn't complain and dpkg-query doesn't show /etc/mercurial/hgrc.d/mergetools.rc and /etc/mercurial/hgrc.d/cacerts.rc as obsolete: # dpkg -i mercurial_2.6.2-1_i386.deb mercurial-common_2.6.2- Selecting previously unselected package mercurial. (Reading database ... 13127 files and directories currently installed.) Unpacking mercurial (from mercurial_2.6.2-1_i386.deb) ... Selecting previously unselected package mercurial-common. Unpacking mercurial-common (from mercurial-common_2.6.2-1_all.deb) ... Setting up mercurial-common (2.6.2-1) ... Setting up mercurial (2.6.2-1) ... Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version # aptitude safe-upgrade The following packages will be upgraded: mercurial mercurial-common The following packages are RECOMMENDED but will NOT be installed: ca-certificates openssh-client 2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/2562 kB of archives. After unpacking 14.3 kB will be used. Do you want to continue? [Y/n/?] debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 13766 files and directories currently installed.) Preparing to replace mercurial 2.6.2-1 (using .../mercurial_2.6.3-1_i386.d Unpacking replacement mercurial ... Preparing to replace mercurial-common 2.6.2-1 (using .../mercurial-common_ Unpacking replacement mercurial-common ... Setting up mercurial-common (2.6.3-1) ... Setting up mercurial (2.6.3-1) ... Current status: 0 updates [-2]. # adequate mercurial # dpkg-query -W -f='${Conffiles}\n' mercurial | grep obsolet /etc/bash_completion.d/mercurial ad9c61fc3330bdf30b26193bbee2bf8e obsolet /etc/mercurial/hgrc bcefdbdbe45da0913c9ae243149fd497 obsolete # > If you aren't going to fix this issue, please close the bug and I will > just purge and reinstall mercurial to get rid of this issue. I do want to fix it, it's just that I don't understand what's the issue so I don't know how to do it. I'm in DebConf, maybe you can explain it to me IRL? Cheers, Javi
signature.asc
Description: Digital signature