[Python-apps-team] Bug#718621: mercurial: conffiles not removed

Paul Wise pabs at debian.org
Mon Aug 12 13:14:58 UTC 2013


On Mon, 2013-08-12 at 14:32 +0200, Javi Merino wrote:

> 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?

I didn't read the post; I guess it isn't helpful then and I'm not sure
what the right answer is here.

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

Are you sure about that?

pabs at chianamo ~ $ aptitude download mercurial
Get: 1 http://http.debian.net/debian/ testing/main mercurial amd64 2.6.3-1 [69.6 kB]
Fetched 69.6 kB in 5s (12.6 kB/s)    
pabs at chianamo ~ $ dpkg -x mercurial_2.6.3-1_amd64.deb mercurial
pabs at chianamo ~ $ find mercurial/etc/
mercurial/etc/
mercurial/etc/mercurial
mercurial/etc/mercurial/hgrc.d
mercurial/etc/bash_completion.d


> 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:

For me it does do that (clean chroot):

pabs at chianamo ~ $ sudo cowbuilder --login --basepath /var/cache/pbuilder/base.cow.sid/
[sudo] password for pabs: 
 -> Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.16306 
  forking: cp -al /var/cache/pbuilder/base.cow.sid /var/cache/pbuilder/build//cow.16306 
I: removed stale ilistfile /var/cache/pbuilder/build//cow.16306/.ilist
 -> Invoking pbuilder
  forking: pbuilder login --buildplace /var/cache/pbuilder/build//cow.16306 --no-targz --internal-chrootexec chroot /var/cache/pbuilder/build//cow.16306 cow-shell 
W: /root/.pbuilderrc does not exist
I: Running in no-targz mode
I: copying local configuration
I: mounting /proc filesystem
I: mounting /run/shm filesystem
I: mounting /dev/pts filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: entering the shell
root at chianamo:/# apt-get install ucf python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libexpat1 libffi6 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.0.0 mime-support python-minimal python2.7
  python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binfmt-support
Recommended packages:
  file
The following NEW packages will be installed:
  libexpat1 libffi6 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.0.0 mime-support python python-minimal python2.7
  python2.7-minimal ucf
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5370 kB of archives.
After this operation, 19.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libssl1.0.0:amd64.
(Reading database ... 12193 files and directories currently installed.)
Unpacking libssl1.0.0:amd64 (from .../libssl1.0.0_1.0.1e-3_amd64.deb) ...
Selecting previously unselected package libexpat1:amd64.
Unpacking libexpat1:amd64 (from .../libexpat1_2.1.0-4_amd64.deb) ...
Selecting previously unselected package libffi6:amd64.
Unpacking libffi6:amd64 (from .../libffi6_3.0.13-4_amd64.deb) ...
Selecting previously unselected package libpython2.7-minimal.
Unpacking libpython2.7-minimal (from .../libpython2.7-minimal_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.5-7_amd64.deb) ...
Selecting previously unselected package mime-support.
Unpacking mime-support (from .../mime-support_3.54_all.deb) ...
Selecting previously unselected package libpython2.7-stdlib.
Unpacking libpython2.7-stdlib (from .../libpython2.7-stdlib_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.5-3_amd64.deb) ...
Selecting previously unselected package libpython-stdlib:amd64.
Unpacking libpython-stdlib:amd64 (from .../libpython-stdlib_2.7.5-3_amd64.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.5-3_amd64.deb) ...
Selecting previously unselected package ucf.
Unpacking ucf (from .../ucf_3.0027+nmu1_all.deb) ...
Moving old data out of the way
Setting up libssl1.0.0:amd64 (1.0.1e-3) ...
Setting up libexpat1:amd64 (2.1.0-4) ...
Setting up libffi6:amd64 (3.0.13-4) ...
Setting up libpython2.7-minimal (2.7.5-7) ...
Setting up python2.7-minimal (2.7.5-7) ...
Setting up mime-support (3.54) ...
update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode
Setting up libpython2.7-stdlib (2.7.5-7) ...
Setting up python2.7 (2.7.5-7) ...
Setting up python-minimal (2.7.5-3) ...
Setting up libpython-stdlib:amd64 (2.7.5-3) ...
Setting up python (2.7.5-3) ...
Setting up ucf (3.0027+nmu1) ...
Processing triggers for libc-bin ...
root at chianamo:/# apt-get install wget
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgcrypt11 libgnutls26 libgpg-error0 libidn11 libp11-kit0 libtasn1-3
Suggested packages:
  rng-tools
The following NEW packages will be installed:
  libgcrypt11 libgnutls26 libgpg-error0 libidn11 libp11-kit0 libtasn1-3 wget
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2183 kB of archives.
After this operation, 5506 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libgpg-error0:amd64.
(Reading database ... 13074 files and directories currently installed.)
Unpacking libgpg-error0:amd64 (from .../libgpg-error0_1.10-3.1_amd64.deb) ...
Selecting previously unselected package libgcrypt11:amd64.
Unpacking libgcrypt11:amd64 (from .../libgcrypt11_1.5.3-1_amd64.deb) ...
Selecting previously unselected package libp11-kit0:amd64.
Unpacking libp11-kit0:amd64 (from .../libp11-kit0_0.18.5-1_amd64.deb) ...
Selecting previously unselected package libtasn1-3:amd64.
Unpacking libtasn1-3:amd64 (from .../libtasn1-3_2.14-3_amd64.deb) ...
Selecting previously unselected package libgnutls26:amd64.
Unpacking libgnutls26:amd64 (from .../libgnutls26_2.12.23-5_amd64.deb) ...
Selecting previously unselected package libidn11:amd64.
Unpacking libidn11:amd64 (from .../libidn11_1.28-1_amd64.deb) ...
Selecting previously unselected package wget.
Unpacking wget (from .../archives/wget_1.14-2_amd64.deb) ...
Setting up libgpg-error0:amd64 (1.10-3.1) ...
Setting up libgcrypt11:amd64 (1.5.3-1) ...
Setting up libp11-kit0:amd64 (0.18.5-1) ...
Setting up libtasn1-3:amd64 (2.14-3) ...
Setting up libgnutls26:amd64 (2.12.23-5) ...
Setting up libidn11:amd64 (1.28-1) ...
Setting up wget (1.14-2) ...
Processing triggers for libc-bin ...
root at chianamo:/# wget http://snapshot.debian.org/archive/debian/20130609T155242Z/pool/main/m/mercurial/mercurial_2.6.2-1_amd64.deb
--2013-08-12 13:08:05--  http://snapshot.debian.org/archive/debian/20130609T155242Z/pool/main/m/mercurial/mercurial_2.6.2-1_amd64.deb
Resolving snapshot.debian.org (snapshot.debian.org)... 193.62.202.30, 2001:630:206:4000:1a1a:0:c13e:ca1e
Connecting to snapshot.debian.org (snapshot.debian.org)|193.62.202.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75496 (74K) [application/x-debian-package]
Saving to: 'mercurial_2.6.2-1_amd64.deb'

100%[==================================================================================================>] 75,496       209KB/s   in 0.4s   

2013-08-12 13:08:05 (209 KB/s) - 'mercurial_2.6.2-1_amd64.deb' saved [75496/75496]

root at chianamo:/# wget http://snapshot.debian.org/archive/debian/20130609T155242Z/pool/main/m/mercurial/mercurial-common_2.6.2-1_all.deb
--2013-08-12 13:08:20--  http://snapshot.debian.org/archive/debian/20130609T155242Z/pool/main/m/mercurial/mercurial-common_2.6.2-1_all.deb
Resolving snapshot.debian.org (snapshot.debian.org)... 193.62.202.30, 2001:630:206:4000:1a1a:0:c13e:ca1e
Connecting to snapshot.debian.org (snapshot.debian.org)|193.62.202.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2489348 (2.4M) [application/x-debian-package]
Saving to: 'mercurial-common_2.6.2-1_all.deb'

100%[==================================================================================================>] 2,489,348   1.16MB/s   in 2.0s   

2013-08-12 13:08:22 (1.16 MB/s) - 'mercurial-common_2.6.2-1_all.deb' saved [2489348/2489348]
      
root at chianamo:/# dpkg -i mercurial-common_2.6.2-1_all.deb mercurial_2.6.2-1_amd64.deb
Selecting previously unselected package mercurial-common.
(Reading database ... 13214 files and directories currently installed.)
Unpacking mercurial-common (from mercurial-common_2.6.2-1_all.deb) ...
Selecting previously unselected package mercurial.
Unpacking mercurial (from mercurial_2.6.2-1_amd64.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
root at chianamo:/# dpkg-query -W -f='${Conffiles}\n' mercurial | grep obsolet
root at chianamo:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  mercurial mercurial-common
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2562 kB of archives.
After this operation, 87.0 kB disk space will be freed.
Do you want to continue [Y/n]? 
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 13853 files and directories currently installed.)
Preparing to replace mercurial 2.6.2-1 (using .../mercurial_2.6.3-1_amd64.deb) ...
Unpacking replacement mercurial ...
Preparing to replace mercurial-common 2.6.2-1 (using .../mercurial-common_2.6.3-1_all.deb) ...
Unpacking replacement mercurial-common ...
Setting up mercurial-common (2.6.3-1) ...
Setting up mercurial (2.6.3-1) ...
root at chianamo:/# dpkg-query -W -f='${Conffiles}\n' mercurial | grep obsolet
 /etc/bash_completion.d/mercurial ad9c61fc3330bdf30b26193bbee2bf8e obsolete
 /etc/mercurial/hgrc bcefdbdbe45da0913c9ae243149fd497 obsolete
 /etc/mercurial/hgrc.d/mergetools.rc 256f6d68e04f68df651392d7019bad0a obsolete
 /etc/mercurial/hgrc.d/cacerts.rc 9f9020947cdcb24be9e042f5fa40a43a obsolete

> 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?

I don't know what the issue is, only that I can reproduce it.
I wonder if it is an architecture specific problem, I am on amd64.
I am at DebConf so if you can find me maybe we can have a debug session.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130812/5eb9dab5/attachment-0001.sig>


More information about the Python-apps-team mailing list