Package: libsofthsm-dev,libsofthsm2-dev
Version: libsofthsm-dev/1.3.7-2+b1
Version: libsofthsm2-dev/2.0.0-1
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2015-08-24
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:


Preconfiguring packages ...
Selecting previously unselected package gcc-5-base:amd64.
(Reading database ... 10899 files and directories currently installed.)
Preparing to unpack .../gcc-5-base_5.2.1-15_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.2.1-15) ...
Setting up gcc-5-base:amd64 (5.2.1-15) ...
(Reading database ... 10906 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.2.1-15_amd64.deb ...
Unpacking libstdc++6:amd64 (5.2.1-15) over (4.8.2-19) ...
Setting up libstdc++6:amd64 (5.2.1-15) ...
Processing triggers for libc-bin (2.19-19) ...
Selecting previously unselected package ucf.
(Reading database ... 10920 files and directories currently installed.)
Preparing to unpack .../archives/ucf_3.0030_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0030) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.0.0+dfsg-7_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.0.0+dfsg-7) ...
Selecting previously unselected package libbotan-1.10-1.
Preparing to unpack .../libbotan-1.10-1_1.10.10-6_amd64.deb ...
Unpacking libbotan-1.10-1 (1.10.10-6) ...
Selecting previously unselected package softhsm-common.
Preparing to unpack .../softhsm-common_1.3.7-2+b1_amd64.deb ...
Unpacking softhsm-common (1.3.7-2+b1) ...
Selecting previously unselected package libsofthsm.
Preparing to unpack .../libsofthsm_1.3.7-2+b1_amd64.deb ...
Unpacking libsofthsm (1.3.7-2+b1) ...
Selecting previously unselected package libsofthsm-dev.
Preparing to unpack .../libsofthsm-dev_1.3.7-2+b1_amd64.deb ...
Unpacking libsofthsm-dev (1.3.7-2+b1) ...
Selecting previously unselected package softhsm2-common.
Preparing to unpack .../softhsm2-common_2.0.0-1_amd64.deb ...
Unpacking softhsm2-common (2.0.0-1) ...
Selecting previously unselected package libsofthsm2.
Preparing to unpack .../libsofthsm2_2.0.0-1_amd64.deb ...
Unpacking libsofthsm2 (2.0.0-1) ...
Selecting previously unselected package libsofthsm2-dev.
Preparing to unpack .../libsofthsm2-dev_2.0.0-1_amd64.deb ...
Unpacking libsofthsm2-dev (2.0.0-1) ...
dpkg: error processing archive 
/var/cache/apt/archives/libsofthsm2-dev_2.0.0-1_amd64.deb (--unpack):
 trying to overwrite '/usr/include/softhsm/pkcs11.h', which is also in package 
libsofthsm-dev 1.3.7-2+b1
Processing triggers for man-db (2.7.2-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libsofthsm2-dev_2.0.0-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/softhsm/pkcs11.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://qa.debian.org/dose/file-overwrites.html.

Reply via email to