[Debian-med-packaging] Bug#755196: libquazip1-headers and libquazip0-dev: error when trying to install together

Ralf Treinen treinen at free.fr
Fri Jul 18 17:51:45 UTC 2014


Package: libquazip0-dev,libquazip1-headers
Version: libquazip0-dev/0.5.1-2
Version: libquazip1-headers/0.6.2-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2014-07-18
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:


Selecting previously unselected package libffi6:amd64.
(Reading database ... 10857 files and directories currently installed.)
Preparing to unpack .../libffi6_3.1-2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.40.0-3_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.40.0-3) ...
Selecting previously unselected package qtcore4-l10n.
Preparing to unpack .../qtcore4-l10n_4%3a4.8.6+dfsg-2_all.deb ...
Unpacking qtcore4-l10n (4:4.8.6+dfsg-2) ...
Selecting previously unselected package libqtcore4:amd64.
Preparing to unpack .../libqtcore4_4%3a4.8.6+dfsg-2_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.6+dfsg-2) ...
Selecting previously unselected package libquazip0:amd64.
Preparing to unpack .../libquazip0_0.5.1-2_amd64.deb ...
Unpacking libquazip0:amd64 (0.5.1-2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.19-7_amd64.deb ...
Unpacking libc-dev-bin (2.19-7) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_3.14.12-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.14.12-1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.19-7_amd64.deb ...
Unpacking libc6-dev:amd64 (2.19-7) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-1) ...
Selecting previously unselected package libquazip0-dev:amd64.
Preparing to unpack .../libquazip0-dev_0.5.1-2_amd64.deb ...
Unpacking libquazip0-dev:amd64 (0.5.1-2) ...
Selecting previously unselected package libquazip1-headers.
Preparing to unpack .../libquazip1-headers_0.6.2-1_amd64.deb ...
Unpacking libquazip1-headers (0.6.2-1) ...
dpkg: error processing archive /var/cache/apt/archives/libquazip1-headers_0.6.2-1_amd64.deb (--unpack):
 trying to overwrite '/usr/include/quazip/quacrc32.h', which is also in package libquazip0-dev:amd64 0.5.1-2
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libquazip1-headers_0.6.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


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/include/quazip/JlCompress.h
  /usr/include/quazip/crypt.h
  /usr/include/quazip/ioapi.h
  /usr/include/quazip/quaadler32.h
  /usr/include/quazip/quachecksum32.h
  /usr/include/quazip/quacrc32.h
  /usr/include/quazip/quagzipfile.h
  /usr/include/quazip/quaziodevice.h
  /usr/include/quazip/quazip.h
  /usr/include/quazip/quazip_global.h
  /usr/include/quazip/quazipdir.h
  /usr/include/quazip/quazipfile.h
  /usr/include/quazip/quazipfileinfo.h
  /usr/include/quazip/quazipnewinfo.h
  /usr/include/quazip/unzip.h
  /usr/include/quazip/zip.h

This bug has been filed against 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 then
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 Debian-med-packaging mailing list