Package: libmodglue1,libmodglue1v5
Version: libmodglue1/1.17-2.2+b1
Version: libmodglue1v5/1.17-2.3
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:


(Reading database ... 10899 files and directories currently installed.)
Preparing to unpack .../aptitude_0.7-1+b1_amd64.deb ...
Unpacking aptitude (0.7-1+b1) over (0.6.10-1) ...
Preparing to unpack .../aptitude-common_0.7-1_all.deb ...
Unpacking aptitude-common (0.7-1) over (0.6.10-1) ...
Selecting previously unselected package gcc-5-base:amd64.
Preparing to unpack .../gcc-5-base_5.2.1-15_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.2.1-15) ...
Processing triggers for man-db (2.7.2-1) ...
Setting up gcc-5-base:amd64 (5.2.1-15) ...
(Reading database ... 10900 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 libapt-pkg4.16:amd64.
(Reading database ... 10914 files and directories currently installed.)
Preparing to unpack .../libapt-pkg4.16_1.0.10.2_amd64.deb ...
Unpacking libapt-pkg4.16:amd64 (1.0.10.2) ...
Selecting previously unselected package libboost-iostreams1.58.0:amd64.
Preparing to unpack .../libboost-iostreams1.58.0_1.58.0+dfsg-3_amd64.deb ...
Unpacking libboost-iostreams1.58.0:amd64 (1.58.0+dfsg-3) ...
(Reading database ... 10968 files and directories currently installed.)
Removing libcwidget3:amd64 (0.5.17-1) ...
Removing libsigc++-2.0-0c2a:amd64 (2.4.1-1) ...
Processing triggers for libc-bin (2.19-19) ...
Selecting previously unselected package libsigc++-2.0-0v5:amd64.
(Reading database ... 10915 files and directories currently installed.)
Preparing to unpack .../libsigc++-2.0-0v5_2.4.1-2_amd64.deb ...
Unpacking libsigc++-2.0-0v5:amd64 (2.4.1-2) ...
Selecting previously unselected package libcwidget3v5:amd64.
Preparing to unpack .../libcwidget3v5_0.5.17-4_amd64.deb ...
Unpacking libcwidget3v5:amd64 (0.5.17-4) ...
(Reading database ... 10968 files and directories currently installed.)
Removing libept1.4.12:amd64 (1.0.12) ...
Removing libxapian22 (1.2.17-1) ...
Processing triggers for libc-bin (2.19-19) ...
Selecting previously unselected package libxapian22v5.
(Reading database ... 10955 files and directories currently installed.)
Preparing to unpack .../libxapian22v5_1.2.21-1.2_amd64.deb ...
Unpacking libxapian22v5 (1.2.21-1.2) ...
Selecting previously unselected package libmodglue1.
Preparing to unpack .../libmodglue1_1.17-2.2+b1_amd64.deb ...
Unpacking libmodglue1 (1.17-2.2+b1) ...
Selecting previously unselected package libmodglue1v5.
Preparing to unpack .../libmodglue1v5_1.17-2.3_amd64.deb ...
Unpacking libmodglue1v5 (1.17-2.3) ...
dpkg: error processing archive 
/var/cache/apt/archives/libmodglue1v5_1.17-2.3_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/prompt.1.gz', which is also in 
package libmodglue1 1.17-2.2+b1
Processing triggers for man-db (2.7.2-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libmodglue1v5_1.17-2.3_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/bin/prompt
  /usr/bin/ptywrap
  /usr/lib/libmodglue.a
  /usr/lib/libmodglue.so.1
  /usr/lib/libmodglue.so.1.0.17
  /usr/lib/pkgconfig/modglue.pc
  /usr/share/man/man1/prompt.1.gz
  /usr/share/man/man1/ptywrap.1.gz

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