Bug#694502: libgfs-mpi-1.3-2: missing Breaks+Replaces: libgfs-1.3-1

Andreas Beckmann debian at abeckmann.de
Tue Nov 27 00:33:15 UTC 2012


Package: libgfs-mpi-1.3-2
Version: 20091109-dfsg.1-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 libgfs-mpi-1.3-2.
  Unpacking libgfs-mpi-1.3-2 (from .../libgfs-mpi-1.3-2_20110329-dfsg.2-1_amd64.deb) ...
  dpkg: error processing /var/cache/apt/archives/libgfs-mpi-1.3-2_20110329-dfsg.2-1_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/libgfs3D-1.3.so.2.0.0', which is also in package libgfs-1.3-1 20091109-dfsg.1-1
  dpkg-deb: subprocess paste killed by signal (Broken pipe)


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/libgfs2D-1.3.so.2
	usr/lib/libgfs2D-1.3.so.2.0.0
	usr/lib/libgfs3D-1.3.so.2
	usr/lib/libgfs3D-1.3.so.2.0.0

The soname bump seems to have happened earlier, the packages were
bumped in 20091109-dfsg.1-2:

  gerris (20091109-dfsg.1-2) unstable; urgency=low
   * libgfs library package names bumped up to reflect increment in
     library soname.


The following relationships are currently defined:

  Package:   libgfs-mpi-1.3-2
  Breaks:    n/a
  Replaces:  libgfs-1.3-2
  Conflicts: libgfs-1.3-2

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:  libgfs-mpi-1.3-2
  Breaks:   libgfs-1.3-1
  Replaces: libgfs-1.3-1

As libgfs-1.3-1 is no longer in Debian, the Breaks/Replaces
can be unversioned. Or use consistent style and Conflicts
instead of Breaks.


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: libgfs-1.3-1=20091109-dfsg.1-1_libgfs-mpi-1.3-2=20110329-dfsg.2-1.log.gz
Type: application/x-gzip
Size: 6448 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20121127/8afc577f/attachment-0001.bin>


More information about the debian-science-maintainers mailing list