[Pkg-libvirt-maintainers] Bug#694461: libgvnc-1.0-0-dbg: missing Breaks+Replaces: libgtk-vnc-1.0-0-dbg (<< 0.4.3-2)

Andreas Beckmann debian at abeckmann.de
Mon Nov 26 15:59:30 UTC 2012


Package: libgvnc-1.0-0-dbg
Version: 0.4.3-2
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 libgtk-vnc-1.0-0-dbg.
  Unpacking libgtk-vnc-1.0-0-dbg (from .../libgtk-vnc-1.0-0-dbg_0.4.1-4_amd64.deb) ...

  Setting up libgtk-vnc-1.0-0-dbg (0.4.1-4) ...

  Selecting previously deselected package libgvnc-1.0-0-dbg.
  Unpacking libgvnc-1.0-0-dbg (from .../libgvnc-1.0-0-dbg_0.5.0-3_amd64.deb) ...
  dpkg: error processing /var/cache/apt/archives/libgvnc-1.0-0-dbg_0.5.0-3_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/debug/usr/lib/libgvnc-1.0.so.0.0.1', which is also in package libgtk-vnc-1.0-0-dbg 0.4.1-4


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/lib/debug/usr/lib/libgvnc-1.0.so.0.0.1

The libgvnc* packages were split off recently:

  gtk-vnc (0.4.3-2) unstable; urgency=low 
     * Split out libgvnc-1.0


The following relationships are currently defined:

  Package:   libgvnc-1.0-0-dbg
  Conflicts: n/a
  Breaks:    n/a
  Replaces:  libgtk-vnc-1.0-dbg (<= 0.4.3-1)

The replaced package name has a typo: the SOVERSION part is missing.

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:  libgvnc-1.0-0-dbg
  Breaks:   libgtk-vnc-1.0-0-dbg (<< 0.4.3-2)
  Replaces: libgtk-vnc-1.0-0-dbg (<< 0.4.3-2)


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: libgtk-vnc-1.0-0-dbg=0.4.1-4_libgvnc-1.0-0-dbg=0.5.0-3.log.gz
Type: application/x-gzip
Size: 15172 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20121126/0828ad94/attachment.bin>


More information about the Pkg-libvirt-maintainers mailing list