Package: gnuspool
Version: 1.7
Severity: serious
User: [email protected]
Usertags: piuparts replaces-without-breaks

Hi,

during a test with piuparts and EDOS 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 lpr
  # (1)
  apt-get install gnuspool
  apt-get remove gnuspool
  # (2)

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

  /usr/bin/lpq
  /usr/bin/lpr
  /usr/bin/lprm
  /usr/share/man/man1/lpq.1.gz
  /usr/share/man/man1/lpr.1.gz
  /usr/share/man/man1/lprm.1.gz

This is a serious bug violating policy 7.6, see
http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces
and also see the footnote that describes this incorrect behavior
http://www.debian.org/doc/debian-policy/footnotes.html#f53

The gnuspool package has the following relationships with lpr:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  lpr
  Provides:  lpr, lprng

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

0m32.9s ERROR: FAIL: After purging files have disappeared:
  /usr/bin/lpq   owned by: gnuspool
  /usr/bin/lpr   owned by: gnuspool
  /usr/bin/lprm  owned by: gnuspool
  /usr/share/man/man1/lpq.1.gz   owned by: gnuspool
  /usr/share/man/man1/lpr.1.gz   owned by: gnuspool
  /usr/share/man/man1/lprm.1.gz  owned by: gnuspool

0m32.9s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/lpr.list    not owned


cheers,

Attachment: lpr=1:2008.05.17+nmu1_gnuspool=1.7.log.gz
Description: GNU Zip compressed data

Reply via email to