Package: libcsv-java-doc
Version: 2.0-11
Severity: serious
User: trei...@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 libcsv-java.
  (Reading database ... 6286 files and directories currently installed.)
  Unpacking libcsv-java (from .../libcsv-java_2.0-10_all.deb) ...
  Setting up libcsv-java (2.0-10) ...

  Selecting previously deselected package libcsv-java-doc.
  (Reading database ... 6372 files and directories currently installed.)
  Unpacking libcsv-java-doc (from .../libcsv-java-doc_2.0-11_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/libcsv-java-doc_2.0-11_all.deb 
(--unpack):
   trying to overwrite '/usr/share/doc/libcsv-java/api/help-doc.html', which is 
also in package libcsv-java 2.0-10


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/libcsv-java/api/allclasses-frame.html
        usr/share/doc/libcsv-java/api/allclasses-noframe.html
        usr/share/doc/libcsv-java/api/com/csvreader/CsvReader.html
        usr/share/doc/libcsv-java/api/com/csvreader/CsvWriter.html
        usr/share/doc/libcsv-java/api/com/csvreader/package-frame.html
        usr/share/doc/libcsv-java/api/com/csvreader/package-summary.html
        usr/share/doc/libcsv-java/api/com/csvreader/package-tree.html
        usr/share/doc/libcsv-java/api/constant-values.html
        usr/share/doc/libcsv-java/api/deprecated-list.html
        usr/share/doc/libcsv-java/api/help-doc.html
        usr/share/doc/libcsv-java/api/index-all.html
        usr/share/doc/libcsv-java/api/index.html
        usr/share/doc/libcsv-java/api/overview-tree.html
        usr/share/doc/libcsv-java/api/package-list
        usr/share/doc/libcsv-java/api/resources/inherit.gif
        usr/share/doc/libcsv-java/api/stylesheet.css

The -doc package was added in -11:

  libcsv-java (2.0-11) unstable; urgency=low 
   * Split javadoc into separate package and add the javacsv.jar symlink
     to match the upstream jar name.


The following relationships are currently defined:

  Package:   libcsv-java-doc
  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:  libcsv-java-doc
  Breaks:   libcsv-java (<< 2.0-11)
  Replaces: libcsv-java (<< 2.0-11)


Cheers,

Andreas

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

Attachment: libcsv-java=2.0-10_libcsv-java-doc=2.0-11.log.gz
Description: GNU Zip compressed data

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to