Bug#812743: libsdformat4-dev and libsdformat3-dev: error when trying to install together

Ralf Treinen treinen at free.fr
Tue Jan 26 09:07:06 UTC 2016


Package: libsdformat3-dev,libsdformat4-dev
Version: libsdformat3-dev/3.06.00-3
Version: libsdformat4-dev/4.0.0-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2016-01-26
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:



Extracting templates from packages: 42%
Extracting templates from packages: 85%
Extracting templates from packages: 100%
Selecting previously unselected package libgmp10:amd64.
(Reading database ... 10941 files and directories currently installed.)
Preparing to unpack .../libgmp10_2%3a6.1.0+dfsg-2_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.1.0+dfsg-2) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.3-2_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.3-2) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.3-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1) ...
Selecting previously unselected package gcc-5-base:amd64.
Preparing to unpack .../gcc-5-base_5.3.1-7_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.3.1-7) ...
Processing triggers for libc-bin (2.21-7) ...
Setting up gcc-5-base:amd64 (5.3.1-7) ...
(Reading database ... 10971 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a5.3.1-7_amd64.deb ...
Unpacking libgcc1:amd64 (1:5.3.1-7) over (1:4.8.2-19) ...
Processing triggers for libc-bin (2.21-7) ...
Setting up libgcc1:amd64 (1:5.3.1-7) ...
Processing triggers for libc-bin (2.21-7) ...
(Reading database ... 10971 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.3.1-7_amd64.deb ...
Unpacking libstdc++6:amd64 (5.3.1-7) over (4.8.2-19) ...
Processing triggers for libc-bin (2.21-7) ...
Setting up libstdc++6:amd64 (5.3.1-7) ...
Processing triggers for libc-bin (2.21-7) ...
Selecting previously unselected package libboost-iostreams1.58.0:amd64.
(Reading database ... 10985 files and directories currently installed.)
Preparing to unpack .../libboost-iostreams1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-iostreams1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.25.90.20160101-2_amd64.deb ...
Unpacking binutils (2.25.90.20160101-2) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.16.1-1_amd64.deb ...
Unpacking libisl15:amd64 (0.16.1-1) ...
Selecting previously unselected package cpp-5.
Preparing to unpack .../cpp-5_5.3.1-7_amd64.deb ...
Unpacking cpp-5 (5.3.1-7) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a5.3.1-1_amd64.deb ...
Unpacking cpp (4:5.3.1-1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.3.1-7_amd64.deb ...
Unpacking libcc1-0:amd64 (5.3.1-7) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.3.1-7_amd64.deb ...
Unpacking libgomp1:amd64 (5.3.1-7) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.3.1-7_amd64.deb ...
Unpacking libitm1:amd64 (5.3.1-7) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.3.1-7_amd64.deb ...
Unpacking libatomic1:amd64 (5.3.1-7) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.3.1-7_amd64.deb ...
Unpacking libasan2:amd64 (5.3.1-7) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.3.1-7_amd64.deb ...
Unpacking liblsan0:amd64 (5.3.1-7) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.3.1-7_amd64.deb ...
Unpacking libtsan0:amd64 (5.3.1-7) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.3.1-7_amd64.deb ...
Unpacking libubsan0:amd64 (5.3.1-7) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.3.1-7_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.3.1-7) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.3.1-7_amd64.deb ...
Unpacking libmpx0:amd64 (5.3.1-7) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_5.3.1-7_amd64.deb ...
Unpacking libquadmath0:amd64 (5.3.1-7) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.3.1-7_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.3.1-7) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.3.1-7_amd64.deb ...
Unpacking gcc-5 (5.3.1-7) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.3.1-1_amd64.deb ...
Unpacking gcc (4:5.3.1-1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.21-7_amd64.deb ...
Unpacking libc-dev-bin (2.21-7) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.3.3-7_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.3.3-7) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.21-7_amd64.deb ...
Unpacking libc6-dev:amd64 (2.21-7) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.3.1-7_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.3.1-7) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.3.1-7_amd64.deb ...
Unpacking g++-5 (5.3.1-7) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.3.1-1_amd64.deb ...
Unpacking g++ (4:5.3.1-1) ...
Selecting previously unselected package libicu55:amd64.
Preparing to unpack .../libicu55_55.1-7_amd64.deb ...
Unpacking libicu55:amd64 (55.1-7) ...
Selecting previously unselected package icu-devtools.
Preparing to unpack .../icu-devtools_55.1-7_amd64.deb ...
Unpacking icu-devtools (55.1-7) ...
Selecting previously unselected package libboost1.58-dev:amd64.
Preparing to unpack .../libboost1.58-dev_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost1.58-dev:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-dev:amd64.
Preparing to unpack .../libboost-dev_1.58.0.1_amd64.deb ...
Unpacking libboost-dev:amd64 (1.58.0.1) ...
Selecting previously unselected package libboost-system1.58.0:amd64.
Preparing to unpack .../libboost-system1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-system1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-filesystem1.58.0:amd64.
Preparing to unpack .../libboost-filesystem1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-filesystem1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-system1.58-dev:amd64.
Preparing to unpack .../libboost-system1.58-dev_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-system1.58-dev:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-filesystem1.58-dev:amd64.
Preparing to unpack .../libboost-filesystem1.58-dev_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-filesystem1.58-dev:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-filesystem-dev:amd64.
Preparing to unpack .../libboost-filesystem-dev_1.58.0.1_amd64.deb ...
Unpacking libboost-filesystem-dev:amd64 (1.58.0.1) ...
Selecting previously unselected package libboost-program-options1.58.0:amd64.
Preparing to unpack .../libboost-program-options1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-program-options1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-program-options1.58-dev:amd64.
Preparing to unpack .../libboost-program-options1.58-dev_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-program-options1.58-dev:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-program-options-dev:amd64.
Preparing to unpack .../libboost-program-options-dev_1.58.0.1_amd64.deb ...
Unpacking libboost-program-options-dev:amd64 (1.58.0.1) ...
Selecting previously unselected package libboost-regex1.58.0:amd64.
Preparing to unpack .../libboost-regex1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-regex1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libicu-dev:amd64.
Preparing to unpack .../libicu-dev_55.1-7_amd64.deb ...
Unpacking libicu-dev:amd64 (55.1-7) ...
Selecting previously unselected package libboost-regex1.58-dev:amd64.
Preparing to unpack .../libboost-regex1.58-dev_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-regex1.58-dev:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libboost-regex-dev:amd64.
Preparing to unpack .../libboost-regex-dev_1.58.0.1_amd64.deb ...
Unpacking libboost-regex-dev:amd64 (1.58.0.1) ...
Selecting previously unselected package libboost-system-dev:amd64.
Preparing to unpack .../libboost-system-dev_1.58.0.1_amd64.deb ...
Unpacking libboost-system-dev:amd64 (1.58.0.1) ...
Selecting previously unselected package libboost-thread1.58.0:amd64.
Preparing to unpack .../libboost-thread1.58.0_1.58.0+dfsg-4.1_amd64.deb ...
Unpacking libboost-thread1.58.0:amd64 (1.58.0+dfsg-4.1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.4_all.deb ...
Unpacking libdpkg-perl (1.18.4) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-4) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.46.2-3_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.46.2-3) ...
Selecting previously unselected package sdformat-sdf.
Preparing to unpack .../sdformat-sdf_4.0.0-1_all.deb ...
Unpacking sdformat-sdf (4.0.0-1) ...
Selecting previously unselected package libconsole-bridge0.2v5:amd64.
Preparing to unpack .../libconsole-bridge0.2v5_0.3.0-3_amd64.deb ...
Unpacking libconsole-bridge0.2v5:amd64 (0.3.0-3) ...
Selecting previously unselected package libignition-math2:amd64.
Preparing to unpack .../libignition-math2_2.2.3+dfsg1-4_amd64.deb ...
Unpacking libignition-math2:amd64 (2.2.3+dfsg1-4) ...
Selecting previously unselected package libtinyxml2.6.2v5:amd64.
Preparing to unpack .../libtinyxml2.6.2v5_2.6.2-3_amd64.deb ...
Unpacking libtinyxml2.6.2v5:amd64 (2.6.2-3) ...
Selecting previously unselected package liburdfdom-model-state0.3v5:amd64.
Preparing to unpack .../liburdfdom-model-state0.3v5_0.3.0-2_amd64.deb ...
Unpacking liburdfdom-model-state0.3v5:amd64 (0.3.0-2) ...
Selecting previously unselected package liburdfdom-model0.3v5:amd64.
Preparing to unpack .../liburdfdom-model0.3v5_0.3.0-2_amd64.deb ...
Unpacking liburdfdom-model0.3v5:amd64 (0.3.0-2) ...
Selecting previously unselected package liburdfdom-sensor0.3v5:amd64.
Preparing to unpack .../liburdfdom-sensor0.3v5_0.3.0-2_amd64.deb ...
Unpacking liburdfdom-sensor0.3v5:amd64 (0.3.0-2) ...
Selecting previously unselected package liburdfdom-world0.3v5:amd64.
Preparing to unpack .../liburdfdom-world0.3v5_0.3.0-2_amd64.deb ...
Unpacking liburdfdom-world0.3v5:amd64 (0.3.0-2) ...
Selecting previously unselected package libsdformat3:amd64.
Preparing to unpack .../libsdformat3_3.6.0-3_amd64.deb ...
Unpacking libsdformat3:amd64 (3.6.0-3) ...
Selecting previously unselected package libtinyxml-dev:amd64.
Preparing to unpack .../libtinyxml-dev_2.6.2-3_amd64.deb ...
Unpacking libtinyxml-dev:amd64 (2.6.2-3) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../pkg-config_0.29-3_amd64.deb ...
Unpacking pkg-config (0.29-3) ...
Selecting previously unselected package libconsole-bridge-dev:amd64.
Preparing to unpack .../libconsole-bridge-dev_0.3.0-3_amd64.deb ...
Unpacking libconsole-bridge-dev:amd64 (0.3.0-3) ...
Selecting previously unselected package liburdfdom-headers-dev.
Preparing to unpack .../liburdfdom-headers-dev_0.3.0-2_all.deb ...
Unpacking liburdfdom-headers-dev (0.3.0-2) ...
Selecting previously unselected package liburdfdom-dev:amd64.
Preparing to unpack .../liburdfdom-dev_0.3.0-2_amd64.deb ...
Unpacking liburdfdom-dev:amd64 (0.3.0-2) ...
Selecting previously unselected package libignition-math2-dev:amd64.
Preparing to unpack .../libignition-math2-dev_2.2.3+dfsg1-4_amd64.deb ...
Unpacking libignition-math2-dev:amd64 (2.2.3+dfsg1-4) ...
Selecting previously unselected package libsdformat3-dev:amd64.
Preparing to unpack .../libsdformat3-dev_3.6.0-3_amd64.deb ...
Unpacking libsdformat3-dev:amd64 (3.6.0-3) ...
Selecting previously unselected package libsdformat4:amd64.
Preparing to unpack .../libsdformat4_4.0.0-1_amd64.deb ...
Unpacking libsdformat4:amd64 (4.0.0-1) ...
Selecting previously unselected package libsdformat4-dev:amd64.
Preparing to unpack .../libsdformat4-dev_4.0.0-1_amd64.deb ...
Unpacking libsdformat4-dev:amd64 (4.0.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/libsdformat4-dev_4.0.0-1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/pkgconfig/sdformat.pc', which is also in package libsdformat3-dev:amd64 3.6.0-3
Processing triggers for libc-bin (2.21-7) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libsdformat4-dev_4.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/lib/x86_64-linux-gnu/cmake/sdformat/SDFormatConfig.cmake
  /usr/lib/x86_64-linux-gnu/cmake/sdformat/SDFormatConfigVersion.cmake
  /usr/lib/x86_64-linux-gnu/libsdformat.so
  /usr/lib/x86_64-linux-gnu/pkgconfig/sdformat.pc

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.



More information about the debian-science-maintainers mailing list