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

Bug#694288: libsoprano-doc: missing Breaks+Replaces: libsoprano-dev (<< 2.6.0)



Package: libsoprano-doc
Version: 2.6.0+dfsg.1-1
Severity: serious
User: treinen@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 libsoprano-dev.
  Unpacking libsoprano-dev (from .../libsoprano-dev_2.5.0+dfsg.1-1_amd64.deb) ...

  Setting up libsoprano-dev (2.5.0+dfsg.1-1) ...

  Selecting previously deselected package libsoprano-doc.
  (Reading database ... 7390 files and directories currently installed.)
  Unpacking libsoprano-doc (from .../libsoprano-doc_2.7.6+dfsg.1-1_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/libsoprano-doc_2.7.6+dfsg.1-1_all.deb (--unpack):
   trying to overwrite '/usr/share/soprano/doc/soprano.tag', which is also in package libsoprano-dev 2.5.0+dfsg.1-1


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/soprano/doc/soprano.tag

This file was moved around recently:

  soprano (2.6.0+dfsg.1-1) unstable; urgency=low 
   * Generate soprano.tag while building docs (patch
     doxyfile_generate_tagfile.diff) and install the file to libsoprano-doc
     (/usr/share/soprano/doc/) rather than libsoprano-dev.


The following relationships are currently defined:

  Package:   libsoprano-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:  libsoprano-doc
  Breaks:   libsoprano-dev (<< 2.6.0)
  Replaces: libsoprano-dev (<< 2.6.0)


Cheers,

Andreas

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.

Attachment: libsoprano-dev=2.5.0+dfsg.1-1_libsoprano-doc=2.7.6+dfsg.1-1.log.gz
Description: GNU Zip compressed data


Reply to: