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

Bug#694269: coccinelle-doc: missing Breaks+Replaces: coccinelle (<< 1.0.0~rc7.deb-4)



Package: coccinelle-doc
Version: 1.0.0~rc12.deb-4
Severity: serious
User: treinen@debian.org
Usertags: edos-file-overwrite

Date:
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 coccinelle.
  Unpacking coccinelle (from .../coccinelle_0.2.3.deb-1_amd64.deb) ...

  Setting up coccinelle (0.2.3.deb-1) ...
  Processing triggers for python-support ...

  Selecting previously deselected package coccinelle-doc.
  Unpacking coccinelle-doc (from .../coccinelle-doc_1.0.0~rc12.deb-4_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/coccinelle-doc_1.0.0~rc12.deb-4_all.deb (--unpack):
   trying to overwrite '/usr/share/doc-base/coccinelle-manual', which is also in package coccinelle 0.2.3.deb-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/doc-base/coccinelle-grammar
  usr/share/doc-base/coccinelle-manual
  usr/share/doc-base/coccinelle-options


The following relationships are currently defined:

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

I think this was caused by splitting out the -doc package:
  coccinelle (1.0.0~rc7.deb-4) unstable; urgency=low
   * Move pdf documentation and examples into a separate package

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:  coccinelle-doc
  Breaks:   coccinelle (<< 1.0.0~rc7.deb-4)
  Replaces: coccinelle (<< 1.0.0~rc7.deb-4)


Cheers,

Andreas

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

Attachment: coccinelle=0.2.3.deb-1_coccinelle-doc=1.0.0~rc12.deb-4.log.gz
Description: GNU Zip compressed data


Reply to: