Package: ejabberd,ejabberd-mod-http-upload
Version: ejabberd/15.10-1
Version: ejabberd-mod-http-upload/0.2015.10.02~dfsg0-1
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2015-11-03
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: 96%
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libltdl7:amd64.
(Reading database ... 10923 files and directories currently installed.)
Preparing to unpack .../libltdl7_2.4.2-1.11_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.2-1.11) ...
Selecting previously unselected package libgcrypt20:amd64.
Preparing to unpack .../libgcrypt20_1.6.4-3_amd64.deb ...
Unpacking libgcrypt20:amd64 (1.6.4-3) ...
Processing triggers for libc-bin (2.19-22) ...
Setting up libgcrypt20:amd64 (1.6.4-3) ...
Processing triggers for libc-bin (2.19-22) ...
Selecting previously unselected package libsystemd0:amd64.
(Reading database ... 10941 files and directories currently installed.)
Preparing to unpack .../libsystemd0_227-2_amd64.deb ...
Unpacking libsystemd0:amd64 (227-2) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.1.6-3) ...
Selecting previously unselected package libssl1.0.2:amd64.
Preparing to unpack .../libssl1.0.2_1.0.2d-3_amd64.deb ...
Unpacking libssl1.0.2:amd64 (1.0.2d-3) ...
Selecting previously unselected package ucf.
Preparing to unpack .../archives/ucf_3.0030_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0030) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2d-3_amd64.deb ...
Unpacking openssl (1.0.2d-3) ...
Selecting previously unselected package erlang-base.
Preparing to unpack .../erlang-base_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-base (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-asn1.
Preparing to unpack .../erlang-asn1_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-asn1 (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-crypto.
Preparing to unpack .../erlang-crypto_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-crypto (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-mnesia.
Preparing to unpack .../erlang-mnesia_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-mnesia (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-runtime-tools.
Preparing to unpack .../erlang-runtime-tools_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-runtime-tools (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-public-key.
Preparing to unpack .../erlang-public-key_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-public-key (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-ssl.
Preparing to unpack .../erlang-ssl_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-ssl (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-inets.
Preparing to unpack .../erlang-inets_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-inets (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../libodbc1_2.3.1-4_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.1-4) ...
Selecting previously unselected package erlang-odbc.
Preparing to unpack .../erlang-odbc_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-odbc (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-syntax-tools.
Preparing to unpack .../erlang-syntax-tools_1%3a18.0-dfsg-2+b1_amd64.deb ...
Unpacking erlang-syntax-tools (1:18.0-dfsg-2+b1) ...
Selecting previously unselected package erlang-goldrush.
Preparing to unpack .../erlang-goldrush_0.1.7-2_amd64.deb ...
Unpacking erlang-goldrush (0.1.7-2) ...
Selecting previously unselected package erlang-lager.
Preparing to unpack .../erlang-lager_3.0.1-1_amd64.deb ...
Unpacking erlang-lager (3.0.1-1) ...
Selecting previously unselected package erlang-p1-utils.
Preparing to unpack .../erlang-p1-utils_0.2015.10.16-1_amd64.deb ...
Unpacking erlang-p1-utils (0.2015.10.16-1) ...
Selecting previously unselected package erlang-p1-cache-tab.
Preparing to unpack .../erlang-p1-cache-tab_0.2015.07.28-1_amd64.deb ...
Unpacking erlang-p1-cache-tab (0.2015.07.28-1) ...
Selecting previously unselected package erlang-p1-iconv.
Preparing to unpack .../erlang-p1-iconv_0.2015.06.24-1_amd64.deb ...
Unpacking erlang-p1-iconv (0.2015.06.24-1) ...
Selecting previously unselected package erlang-p1-stringprep.
Preparing to unpack .../erlang-p1-stringprep_0.2015.02.04-1_amd64.deb ...
Unpacking erlang-p1-stringprep (0.2015.02.04-1) ...
Selecting previously unselected package erlang-p1-tls.
Preparing to unpack .../erlang-p1-tls_0.2015.08.03-1_amd64.deb ...
Unpacking erlang-p1-tls (0.2015.08.03-1) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.1.0-7_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-7) ...
Selecting previously unselected package erlang-p1-xml.
Preparing to unpack .../erlang-p1-xml_0.2015.10.23-1_amd64.deb ...
Unpacking erlang-p1-xml (0.2015.10.23-1) ...
Selecting previously unselected package erlang-p1-yaml.
Preparing to unpack .../erlang-p1-yaml_0.2015.10.07-1_amd64.deb ...
Unpacking erlang-p1-yaml (0.2015.10.07-1) ...
Selecting previously unselected package erlang-p1-zlib.
Preparing to unpack .../erlang-p1-zlib_0.2015.02.23-2_amd64.deb ...
Unpacking erlang-p1-zlib (0.2015.02.23-2) ...
Selecting previously unselected package ejabberd.
Preparing to unpack .../ejabberd_15.10-1_amd64.deb ...
Unpacking ejabberd (15.10-1) ...
Selecting previously unselected package ejabberd-mod-http-upload.
Preparing to unpack .../ejabberd-mod-http-upload_0.2015.10.02~dfsg0-1_amd64.deb 
...
Unpacking ejabberd-mod-http-upload (0.2015.10.02~dfsg0-1) ...
dpkg: error processing archive 
/var/cache/apt/archives/ejabberd-mod-http-upload_0.2015.10.02~dfsg0-1_amd64.deb 
(--unpack):
 trying to overwrite 
'/usr/lib/x86_64-linux-gnu/ejabberd/ebin/mod_http_upload.beam', which is also 
in package ejabberd 15.10-1
Processing triggers for libc-bin (2.19-22) ...
Processing triggers for man-db (2.7.4-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/ejabberd-mod-http-upload_0.2015.10.02~dfsg0-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/ejabberd/ebin/mod_http_upload.beam

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