Package: libsensors-config
Version: 1:3.5.0-1
Severity: serious
User: [email protected]
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 libsensors4
  # (1)
  apt-get install libsensors-config
  apt-get remove libsensors-config
  # (2)

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

  /etc/sensors.d/.placeholder
  /etc/sensors3.conf

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 libsensors-config package has the following relationships with libsensors4:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  libsensors4

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

34m42.7s ERROR: FAIL: After purging files have disappeared:
  /etc/sensors.d/.placeholder    owned by: libsensors-config
  /etc/sensors3.conf     owned by: libsensors-config


cheers,

Andreas

Attachment: libsensors4=1:3.4.0-4_libsensors-config=1:3.5.0-1.log.gz
Description: application/gzip

Reply via email to