Bug#694291: liblscp-doc: missing Breaks+Replaces: liblscp-dev (<< 0.5.6-4)

Andreas Beckmann debian at abeckmann.de
Sun Nov 25 02:21:01 UTC 2012


Package: liblscp-doc
Version: 0.5.6-4
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Architecture: amd64
Distribution: squeeze->wheezy (partial) upgrade

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:

  Selecting previously deselected package liblscp2.
  (Reading database ... 6286 files and directories currently installed.)
  Unpacking liblscp2 (from .../liblscp2_0.5.5-1+cvs080828_amd64.deb) ...
  Selecting previously deselected package liblscp-dev.
  Unpacking liblscp-dev (from .../liblscp-dev_0.5.5-1+cvs080828_amd64.deb) ...
  Setting up liblscp2 (0.5.5-1+cvs080828) ...
  Setting up liblscp-dev (0.5.5-1+cvs080828) ...

  Selecting previously deselected package liblscp-doc.
  (Reading database ... 6373 files and directories currently installed.)
  Unpacking liblscp-doc (from .../liblscp-doc_0.5.6-5_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/liblscp-doc_0.5.6-5_all.deb (--unpack):
   trying to overwrite '/usr/share/doc-base/liblscp', which is also in package liblscp-dev 0.5.5-1+cvs080828


This is a serious bug as it makes installation/upgrade fail, and
violates sections 7.6.1 and 10.1 of the policy.

As this problem can be demonstrated during partial upgrades from squeeze
to wheezy (but not within squeeze or wheezy itself), this indicates a
missing or insufficiently versioned Replaces+Breaks relationship.
But since this particular upgrade ordering is not forbidden by any
dependency relationship, it is possible that apt (or $PACKAGE_MANAGER)
will use this erroneus path on squeeze->wheezy upgrades.

Here is a list of files that are known to be shared by both packages
(according to the Contents files for squeeze and wheezy on amd64, which
may be slightly out of sync):
  
  usr/share/doc-base/liblscp

The documentation was recently moved to a separate package:

  liblscp (0.5.6-4) unstable; urgency=low
   * Move developers reference's HTML files from the -dev package into
     a new arch-indep package: liblscp-doc (Closes: #656881).


The following relationships are currently defined:

  Package:   liblscp-doc
  Conflicts: n/a
  Breaks:    n/a
  Replaces:  n/a

The following relationships should be added for a clean takeover of
these files
(http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces):

  Package:  liblscp-doc
  Breaks:   liblscp-dev (<< 0.5.6-4)
  Replaces: liblscp-dev (<< 0.5.6-4)


Cheers,

Andreas

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: liblscp-dev=0.5.5-1+cvs080828_liblscp-doc=0.5.6-5.log.gz
Type: application/x-gzip
Size: 5820 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20121125/a9964f69/attachment-0001.bin>


More information about the pkg-multimedia-maintainers mailing list