[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#987257: libcw{7,-dev}: removal of libcw{7,-dev} makes files disappear from libcw6{,-dev}



Package: libcw-dev,libcw7
Version: 3.6.0-1
Severity: serious
User: debian-qa@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 libcw6-dev
  # (1)
  apt-get install libcw-dev
  apt-get remove libcw-dev
  # (2)

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

  /usr/include/libcw.h
  /usr/include/libcw_debug.h
  /usr/lib/x86_64-linux-gnu/libcw.a
  /usr/lib/x86_64-linux-gnu/libcw.so
  /usr/lib/x86_64-linux-gnu/pkgconfig/libcw.pc
  /usr/share/man/man3/libcw.3.gz

  /usr/share/man/man7/cw.7.gz

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 libcw-dev package has the following relationships with libcw6-dev:

  Conflicts: n/a
  Replaces:  libcw3-dev, libcw4-dev, libcw5-dev, libcw6-dev, unixcw-dev
  Breaks:    libcw3-dev, unixcw-dev

The libcw7 package has the following relationships with libcw6:

  Conflicts: n/a
  Replaces:  libcw3, libcw4, libcw5, libcw6, unixcw
  Breaks:    libcw3, unixcw

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

0m25.1s ERROR: FAIL: After purging files have disappeared:
  /usr/include/libcw.h   owned by: libcw-dev
  /usr/include/libcw_debug.h     owned by: libcw-dev
  /usr/lib/x86_64-linux-gnu/libcw.a      owned by: libcw-dev
  /usr/lib/x86_64-linux-gnu/libcw.so -> libcw.so.6.6.1   owned by: libcw-dev
  /usr/lib/x86_64-linux-gnu/pkgconfig/libcw.pc   owned by: libcw-dev
  /usr/share/man/man3/libcw.3.gz         owned by: libcw-dev
  /usr/share/man/man7/cw.7.gz    owned by: libcw7:amd64

0m25.1s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/libcw6-dev.list     not owned
  /var/lib/dpkg/info/libcw6:amd64.list   not owned


cheers,

Andreas

Attachment: libcw6-dev=3.5.1-4_libcw-dev=3.6.0-1.log.gz
Description: application/gzip


Reply to: