[DRE-maint] Bug#812809: yard and ruby-appraiser: error when trying to install together
Ralf Treinen
treinen at free.fr
Tue Jan 26 19:01:39 UTC 2016
Package: ruby-appraiser,yard
Version: ruby-appraiser/0.2.0-2
Version: yard/0.8.7.6-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:
Preconfiguring packages ...
Selecting previously unselected package libyaml-0-2:amd64.
(Reading database ... 10941 files and directories currently installed.)
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.2e-1_amd64.deb ...
Unpacking libssl1.0.2:amd64 (1.0.2e-1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2e-1_amd64.deb ...
Unpacking openssl (1.0.2e-1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20160104_all.deb ...
Unpacking ca-certificates (20160104) ...
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 libgmp10:amd64.
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 libjs-jquery.
Preparing to unpack .../libjs-jquery_1.11.3+dfsg-4_all.deb ...
Unpacking libjs-jquery (1.11.3+dfsg-4) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../rubygems-integration_1.10_all.deb ...
Unpacking rubygems-integration (1.10) ...
Selecting previously unselected package ruby-power-assert.
Preparing to unpack .../ruby-power-assert_0.2.6-1_all.deb ...
Unpacking ruby-power-assert (0.2.6-1) ...
Selecting previously unselected package ruby-test-unit.
Preparing to unpack .../ruby-test-unit_3.1.7-1_all.deb ...
Unpacking ruby-test-unit (3.1.7-1) ...
Selecting previously unselected package ruby-minitest.
Preparing to unpack .../ruby-minitest_5.8.4-1_all.deb ...
Unpacking ruby-minitest (5.8.4-1) ...
Selecting previously unselected package libruby2.2:amd64.
Preparing to unpack .../libruby2.2_2.2.4-1_amd64.deb ...
Unpacking libruby2.2:amd64 (2.2.4-1) ...
Selecting previously unselected package ruby2.2.
Preparing to unpack .../ruby2.2_2.2.4-1_amd64.deb ...
Unpacking ruby2.2 (2.2.4-1) ...
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_1%3a2.2.4_all.deb ...
Unpacking ruby (1:2.2.4) ...
Selecting previously unselected package ruby-colored.
Preparing to unpack .../ruby-colored_1.2-2_all.deb ...
Unpacking ruby-colored (1.2-2) ...
Selecting previously unselected package ruby-json.
Preparing to unpack .../ruby-json_1.8.3-1+b1_amd64.deb ...
Unpacking ruby-json (1.8.3-1+b1) ...
Selecting previously unselected package ruby-appraiser.
Preparing to unpack .../ruby-appraiser_0.2.0-2_all.deb ...
Unpacking ruby-appraiser (0.2.0-2) ...
Selecting previously unselected package ruby-locale.
Preparing to unpack .../ruby-locale_2.1.2-1_all.deb ...
Unpacking ruby-locale (2.1.2-1) ...
Selecting previously unselected package ruby-text.
Preparing to unpack .../ruby-text_1.3.0-1_all.deb ...
Unpacking ruby-text (1.3.0-1) ...
Selecting previously unselected package ruby-gettext.
Preparing to unpack .../ruby-gettext_3.1.7-1_all.deb ...
Unpacking ruby-gettext (3.1.7-1) ...
Selecting previously unselected package yard.
Preparing to unpack .../yard_0.8.7.6-1_all.deb ...
Unpacking yard (0.8.7.6-1) ...
dpkg: error processing archive /var/cache/apt/archives/yard_0.8.7.6-1_all.deb (--unpack):
trying to overwrite '/usr/lib/ruby/vendor_ruby/rubygems_plugin.rb', which is also in package ruby-appraiser 0.2.0-2
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/yard_0.8.7.6-1_all.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/ruby/vendor_ruby/rubygems_plugin.rb
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 Pkg-ruby-extras-maintainers
mailing list