Bug#694283: libcanberra-gtk-common-dev: missing Breaks+Replaces: libcanberra-gtk-dev (<< 0.26)

Andreas Beckmann debian at abeckmann.de
Sun Nov 25 00:28:22 UTC 2012


Package: libcanberra-gtk-common-dev
Version: 0.28-5
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite
Control: found -1 0.26-1

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 libcanberra-gtk-dev.
  Unpacking libcanberra-gtk-dev (from .../libcanberra-gtk-dev_0.24-1_amd64.deb) ...

  Setting up libcanberra-gtk-dev (0.24-1) ...

  Selecting previously deselected package libcanberra-gtk-common-dev.
  Unpacking libcanberra-gtk-common-dev (from .../libcanberra-gtk-common-dev_0.28-5_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/libcanberra-gtk-common-dev_0.28-5_all.deb (--unpack):
   trying to overwrite '/usr/share/vala/vapi/libcanberra-gtk.vapi', which is also in package libcanberra-gtk-dev 0.24-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/include/canberra-gtk.h
  usr/share/vala/vapi/libcanberra-gtk.vapi


These files were split from libcanberra-gtk-dev recently:

  libcanberra (0.26-1) experimental; urgency=low
   * Split header and vapi used for both gtk2 and gtk3 into
     libcanberra-gtk-common-dev


The following relationships are currently defined:

  Package:   libcanberra-gtk-common-dev
  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:  libcanberra-gtk-common-dev
  Breaks:   libcanberra-gtk-dev (<< 0.26)
  Replaces: libcanberra-gtk-dev (<< 0.26)


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: libcanberra-gtk-dev=0.24-1_libcanberra-gtk-common-dev=0.28-5.log.gz
Type: application/x-gzip
Size: 17981 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20121125/959b1ecf/attachment-0001.bin>


More information about the pkg-gnome-maintainers mailing list