Package: calligrawords-data Version: 1:2.4.3-2 Severity: serious User: [email protected] 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 koffice-data.
(Reading database ... 6286 files and directories currently installed.)
Unpacking koffice-data (from .../koffice-data_1%3a2.2.1-4_all.deb) ...
Setting up koffice-data (1:2.2.1-4) ...
Selecting previously deselected package calligrawords-data.
(Reading database ... 6724 files and directories currently installed.)
Unpacking calligrawords-data (from
.../calligrawords-data_1%3a2.4.3-2_all.deb) ...
dpkg: error processing
/var/cache/apt/archives/calligrawords-data_1%3a2.4.3-2_all.deb (--unpack):
trying to overwrite '/usr/share/templates/TextDocument.desktop', which is
also in package koffice-data 1:2.2.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/share/templates/.source/TextDocument.kwt
usr/share/templates/TextDocument.desktop
The following relationships are currently defined:
Package: calligrawords-data
Conflicts: n/a
Breaks: calligra-data (<< 1:2.4.3-2)
Replaces: calligra-data (<< 1:2.4.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: calligrawords-data
Breaks: koffice-data
Replaces: koffice-data
Unversioned Breaks/Replaces should be fine since koffice-data was
removed from Debian.
Cheers,
Andreas
PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.
koffice-data=1:2.2.1-4_calligrawords-data=1:2.4.3-2.log.gz
Description: GNU Zip compressed data

