Package: displaycal
Version: 3.7.1.3-4
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 dispcalgui/stretch
  # (1)
  apt-get install displaycal/buster
  apt-get remove displaycal
  # (2)

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

  /etc/xdg/autostart/z-displaycal-apply-profiles.desktop         owned by: 
displaycal
  /usr/bin/displaycal    owned by: displaycal
  /usr/bin/displaycal-3dlut-maker        owned by: displaycal
  /usr/bin/displaycal-apply-profiles     owned by: displaycal
  /usr/bin/displaycal-curve-viewer       owned by: displaycal
  /usr/bin/displaycal-profile-info       owned by: displaycal
...
  /usr/share/man/man1/displaycal-scripting-client.1.gz   owned by: displaycal
  /usr/share/man/man1/displaycal-synthprofile.1.gz       owned by: displaycal
  /usr/share/man/man1/displaycal-testchart-editor.1.gz   owned by: displaycal
  /usr/share/man/man1/displaycal-vrml-to-x3d-converter.1.gz      owned by: 
displaycal
  /usr/share/man/man1/displaycal.1.gz    owned by: displaycal


This is a serious bug violating policy 7.6, see
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
and also see the footnote that describes this incorrect behavior:
https://www.debian.org/doc/debian-policy/ch-relationships.html#id13

The displaycal package has the following relationships with dispcalgui:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  dispcalgui

Since dispcalgui is a transitional package since 3.6.1.0-1
you should add/update
  Breaks+Replaces: dispcalgui (<< 3.6.1.0)
in the displaycal package.


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

0m41.7s ERROR: FAIL: After purging files have disappeared:
  /etc/xdg/autostart/z-displaycal-apply-profiles.desktop         owned by: 
displaycal
  /usr/bin/displaycal    owned by: displaycal
  /usr/bin/displaycal-3dlut-maker        owned by: displaycal
  /usr/bin/displaycal-apply-profiles     owned by: displaycal
  /usr/bin/displaycal-curve-viewer       owned by: displaycal
  /usr/bin/displaycal-profile-info       owned by: displaycal
...
  /usr/share/man/man1/displaycal-scripting-client.1.gz   owned by: displaycal
  /usr/share/man/man1/displaycal-synthprofile.1.gz       owned by: displaycal
  /usr/share/man/man1/displaycal-testchart-editor.1.gz   owned by: displaycal
  /usr/share/man/man1/displaycal-vrml-to-x3d-converter.1.gz      owned by: 
displaycal
  /usr/share/man/man1/displaycal.1.gz    owned by: displaycal

0m41.7s ERROR: FAIL: After purging files have been modified:
  /etc/mailcap   not owned
  /var/lib/dpkg/info/dispcalgui.list     not owned


cheers,

Andreas

Attachment: dispcalgui=3.2.2.0-1_displaycal=3.7.1.3-4.log.gz
Description: application/gzip

Reply via email to