Package: python3-dkim
Version: 0.8.0-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts replaces-without-breaks

Hi,

during a test with piuparts and DOSE tools I noticed your package causes
removal of files that also belong to another package.
This is caused by using Replaces without corresponding Breaks.

The installation sequence to reproduce this problem is

  apt-get install python-dkim/stretch
  # (1)
  apt-get install python3-dkim/buster
  apt-get remove python3-dkim
  # (2)

The list of installed files at points (1) and (2) should be identical,
but the following files have disappeared:

  /usr/bin/arcsign
  /usr/bin/arcverify
  /usr/bin/dkimsign
  /usr/bin/dkimverify
  /usr/bin/dknewkey
  /usr/share/man/man1/arcsign.1.gz
  /usr/share/man/man1/arcverify.1.gz
  /usr/share/man/man1/dkimsign.1.gz
  /usr/share/man/man1/dkimverify.1.gz
  /usr/share/man/man1/dknewkey.1.gz


This is a serious bug violating policy 7.6, see
https://www.debian.org/doc/debian-policy/#overwriting-files-and-replacing-packages-replaces
and also see the footnote that describes this incorrect behavior
https://www.debian.org/doc/debian-policy/ (old: footnotes.html#f53)
[footnote permalink broken (#879048), search for /To see why/]

The python3-dkim package has the following relationships with python-dkim:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  python-dkim (<< 0.8.0~)

>From the attached log (scroll to the bottom...):

1m3.6s DEBUG: Modified(user, group, mode, size, target): 
/var/lib/dpkg/info/python-dkim.list expected(root, root, - 100644, 2041, None) 
!= found(root, root, - 100644, 1777, None)
1m3.6s ERROR: FAIL: After purging files have disappeared:
  /usr/bin/arcsign       owned by: python3-dkim
  /usr/bin/arcverify     owned by: python3-dkim
  /usr/bin/dkimsign      owned by: python3-dkim
  /usr/bin/dkimverify    owned by: python3-dkim
  /usr/bin/dknewkey      owned by: python3-dkim
  /usr/share/man/man1/arcsign.1.gz       owned by: python3-dkim
  /usr/share/man/man1/arcverify.1.gz     owned by: python3-dkim
  /usr/share/man/man1/dkimsign.1.gz      owned by: python3-dkim
  /usr/share/man/man1/dkimverify.1.gz    owned by: python3-dkim
  /usr/share/man/man1/dknewkey.1.gz      owned by: python3-dkim

1m3.6s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/python-dkim.list    not owned


cheers,

Andreas

Attachment: python-dkim=0.6.1-1_python3-dkim=0.8.0-1.log.gz
Description: application/gzip

Reply via email to