[Pkg-haskell-maintainers] Bug#620779: libghc6-xml-doc and libghc-xml-doc: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Apr 4 06:34:54 UTC 2011


Package: libghc-xml-doc,libghc6-xml-doc
Version: libghc-xml-doc/1.3.7-2
Version: libghc6-xml-doc/1.3.7-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2011-04-04
Architecture: amd64
Distribution: sid

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:


WARNING: The following packages cannot be authenticated!
  gcc-4.6-base libgcc1 libstdc++6 gcc-4.5-base binutils libgmp10 libgmpxx4ldbl
  libppl9 libpwl5 libppl-c4 libcloog-ppl0 libelfg0 libmpfr4 libmpc2 cpp-4.5
  cpp libgomp1 gcc-4.5 gcc libbsd0 libbsd-dev libc-dev-bin linux-libc-dev
  libc6-dev libffi5 libffi-dev libgmp-dev ghc ghc-haddock libghc-xml-doc
  libghc6-xml-doc

Extracting templates from packages: 96%
Extracting templates from packages: 100%
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package gcc-4.6-base.
(Reading database ... 8750 files and directories currently installed.)
Unpacking gcc-4.6-base (from .../gcc-4.6-base_4.6.0-2_amd64.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up gcc-4.6-base (4.6.0-2) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 8759 files and directories currently installed.)
Preparing to replace libgcc1 1:4.4.5-12 (using .../libgcc1_1%3a4.6.0-2_amd64.deb) ...
Unpacking replacement libgcc1 ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libgcc1 (1:4.6.0-2) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 8759 files and directories currently installed.)
Preparing to replace libstdc++6 4.4.5-12 (using .../libstdc++6_4.6.0-2_amd64.deb) ...
Unpacking replacement libstdc++6 ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libstdc++6 (4.6.0-2) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package gcc-4.5-base.
(Reading database ... 8759 files and directories currently installed.)
Unpacking gcc-4.5-base (from .../gcc-4.5-base_4.5.2-8_amd64.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.21.0.20110327-2_amd64.deb) ...
Selecting previously deselected package libgmp10.
Unpacking libgmp10 (from .../libgmp10_2%3a5.0.1+dfsg-7_amd64.deb) ...
Selecting previously deselected package libgmpxx4ldbl.
Unpacking libgmpxx4ldbl (from .../libgmpxx4ldbl_2%3a5.0.1+dfsg-7_amd64.deb) ...
Selecting previously deselected package libppl9.
Unpacking libppl9 (from .../libppl9_0.11.2-3_amd64.deb) ...
Selecting previously deselected package libpwl5.
Unpacking libpwl5 (from .../libpwl5_0.11.2-3_amd64.deb) ...
Selecting previously deselected package libppl-c4.
Unpacking libppl-c4 (from .../libppl-c4_0.11.2-3_amd64.deb) ...
Selecting previously deselected package libcloog-ppl0.
Unpacking libcloog-ppl0 (from .../libcloog-ppl0_0.15.9-3_amd64.deb) ...
Selecting previously deselected package libelfg0.
Unpacking libelfg0 (from .../libelfg0_0.8.13-1_amd64.deb) ...
Selecting previously deselected package libmpfr4.
Unpacking libmpfr4 (from .../libmpfr4_3.0.0-9_amd64.deb) ...
Selecting previously deselected package libmpc2.
Unpacking libmpc2 (from .../libmpc2_0.9-2_amd64.deb) ...
Selecting previously deselected package cpp-4.5.
Unpacking cpp-4.5 (from .../cpp-4.5_4.5.2-8_amd64.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.5.2-5_amd64.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.6.0-2_amd64.deb) ...
Selecting previously deselected package gcc-4.5.
Unpacking gcc-4.5 (from .../gcc-4.5_4.5.2-8_amd64.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.5.2-5_amd64.deb) ...
Selecting previously deselected package libbsd0.
Unpacking libbsd0 (from .../libbsd0_0.2.0-1_amd64.deb) ...
Selecting previously deselected package libbsd-dev.
Unpacking libbsd-dev (from .../libbsd-dev_0.2.0-1_amd64.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.2-13_amd64.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.38-2_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.11.2-13_amd64.deb) ...
Selecting previously deselected package libffi5.
Unpacking libffi5 (from .../libffi5_3.0.9-3_amd64.deb) ...
Selecting previously deselected package libffi-dev.
Unpacking libffi-dev (from .../libffi-dev_3.0.9-3_amd64.deb) ...
Selecting previously deselected package libgmp-dev.
Unpacking libgmp-dev (from .../libgmp-dev_2%3a5.0.1+dfsg-7_amd64.deb) ...
Selecting previously deselected package ghc.
Unpacking ghc (from .../archives/ghc_7.0.2-7_amd64.deb) ...
Selecting previously deselected package ghc-haddock.
Unpacking ghc-haddock (from .../ghc-haddock_7.0.2-7_amd64.deb) ...
Selecting previously deselected package libghc-xml-doc.
Unpacking libghc-xml-doc (from .../libghc-xml-doc_1.3.7-2_all.deb) ...
Selecting previously deselected package libghc6-xml-doc.
Unpacking libghc6-xml-doc (from .../libghc6-xml-doc_1.3.7-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libghc6-xml-doc_1.3.7-1_all.deb (--unpack):
 trying to overwrite '/usr/share/doc-base/haskell-xml-api', which is also in package libghc-xml-doc 1.3.7-2
configured to not write apport reports
Processing triggers for man-db ...
Processing triggers for install-info ...
Errors were encountered while processing:
 /var/cache/apt/archives/libghc6-xml-doc_1.3.7-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
cow-shell unlink .ilist: No such file or directory


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/share/doc-base/haskell-xml-api

This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may
also register in the BTS that the other package is affected by the bug.

-Ralf.

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





More information about the Pkg-haskell-maintainers mailing list