[DRE-maint] Bug#714777: ruby-strong-parameters and ruby-jbuilder: error when trying to install together

Ralf Treinen treinen at free.fr
Tue Jul 2 18:24:10 UTC 2013


Package: ruby-jbuilder,ruby-strong-parameters
Version: ruby-jbuilder/1.4.01-1
Version: ruby-strong-parameters/0.2.1-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2013-07-02
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:


WARNING: The following packages cannot be authenticated!
  libffi6 libyaml-0-2 libruby1.9.1 ruby1.9.1 ruby rake ruby-i18n
  ruby-multi-json ruby-activesupport-3.2 ruby-blankslate ruby-builder
  ruby-activemodel-3.2 ruby-arel ruby-tzinfo ruby-activerecord-3.2 ruby-rack
  ruby-rack-cache ruby-rack-test ruby-journey ruby-hike ruby-tilt
  ruby-sprockets ruby-erubis ruby-actionpack-3.2 ruby-mime-types ruby-polyglot
  ruby-treetop ruby-mail ruby-actionmailer-3.2 ruby-activeresource-3.2
  ruby-activesupport ruby-jbuilder ruby-rack-ssl ruby-thor ruby-railties-3.2
  ruby-strong-parameters

Extracting templates from packages: 83%
Extracting templates from packages: 100%
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libffi6:amd64.
(Reading database ... 10832 files and directories currently installed.)
Unpacking libffi6:amd64 (from .../libffi6_3.0.13-4_amd64.deb) ...
Selecting previously unselected package libyaml-0-2:amd64.
Unpacking libyaml-0-2:amd64 (from .../libyaml-0-2_0.1.4-2_amd64.deb) ...
Selecting previously unselected package libruby1.9.1.
Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.3.194-8.1+b1_amd64.deb) ...
Selecting previously unselected package ruby1.9.1.
Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.3.194-8.1+b1_amd64.deb) ...
Selecting previously unselected package ruby.
Unpacking ruby (from .../ruby_1%3a1.9.3_all.deb) ...
Selecting previously unselected package rake.
Unpacking rake (from .../archives/rake_10.0.4-1_all.deb) ...
Selecting previously unselected package ruby-i18n.
Unpacking ruby-i18n (from .../ruby-i18n_0.6.4-1_all.deb) ...
Selecting previously unselected package ruby-multi-json.
Unpacking ruby-multi-json (from .../ruby-multi-json_1.3.6-1_all.deb) ...
Selecting previously unselected package ruby-activesupport-3.2.
Unpacking ruby-activesupport-3.2 (from .../ruby-activesupport-3.2_3.2.13-3_all.deb) ...
Selecting previously unselected package ruby-blankslate.
Unpacking ruby-blankslate (from .../ruby-blankslate_2.1.2.4-4_all.deb) ...
Selecting previously unselected package ruby-builder.
Unpacking ruby-builder (from .../ruby-builder_3.2.0-1_all.deb) ...
Selecting previously unselected package ruby-activemodel-3.2.
Unpacking ruby-activemodel-3.2 (from .../ruby-activemodel-3.2_3.2.13-5_all.deb) ...
Selecting previously unselected package ruby-arel.
Unpacking ruby-arel (from .../ruby-arel_3.0.2-3_all.deb) ...
Selecting previously unselected package ruby-tzinfo.
Unpacking ruby-tzinfo (from .../ruby-tzinfo_0.3.33-3_all.deb) ...
Selecting previously unselected package ruby-activerecord-3.2.
Unpacking ruby-activerecord-3.2 (from .../ruby-activerecord-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package ruby-rack.
Unpacking ruby-rack (from .../ruby-rack_1.5.2-1_all.deb) ...
Selecting previously unselected package ruby-rack-cache.
Unpacking ruby-rack-cache (from .../ruby-rack-cache_1.2-2_all.deb) ...
Selecting previously unselected package ruby-rack-test.
Unpacking ruby-rack-test (from .../ruby-rack-test_0.6.2-1_all.deb) ...
Selecting previously unselected package ruby-journey.
Unpacking ruby-journey (from .../ruby-journey_1.0.4-1_all.deb) ...
Selecting previously unselected package ruby-hike.
Unpacking ruby-hike (from .../ruby-hike_1.2.1-2_all.deb) ...
Selecting previously unselected package ruby-tilt.
Unpacking ruby-tilt (from .../ruby-tilt_1.3.3-2_all.deb) ...
Selecting previously unselected package ruby-sprockets.
Unpacking ruby-sprockets (from .../ruby-sprockets_2.4.3-1_all.deb) ...
Selecting previously unselected package ruby-erubis.
Unpacking ruby-erubis (from .../ruby-erubis_2.7.0-2_all.deb) ...
Selecting previously unselected package ruby-actionpack-3.2.
Unpacking ruby-actionpack-3.2 (from .../ruby-actionpack-3.2_3.2.13-7_all.deb) ...
Selecting previously unselected package ruby-mime-types.
Unpacking ruby-mime-types (from .../ruby-mime-types_1.23-1_all.deb) ...
Selecting previously unselected package ruby-polyglot.
Unpacking ruby-polyglot (from .../ruby-polyglot_0.3.3-3_all.deb) ...
Selecting previously unselected package ruby-treetop.
Unpacking ruby-treetop (from .../ruby-treetop_1.4.14-1_all.deb) ...
Selecting previously unselected package ruby-mail.
Unpacking ruby-mail (from .../ruby-mail_2.5.4-1_all.deb) ...
Selecting previously unselected package ruby-actionmailer-3.2.
Unpacking ruby-actionmailer-3.2 (from .../ruby-actionmailer-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package ruby-activeresource-3.2.
Unpacking ruby-activeresource-3.2 (from .../ruby-activeresource-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package ruby-activesupport.
Unpacking ruby-activesupport (from .../ruby-activesupport_2%3a3.2.13+1_all.deb) ...
Selecting previously unselected package ruby-jbuilder.
Unpacking ruby-jbuilder (from .../ruby-jbuilder_1.4.1-1_all.deb) ...
Selecting previously unselected package ruby-rack-ssl.
Unpacking ruby-rack-ssl (from .../ruby-rack-ssl_1.3.2-2_all.deb) ...
Selecting previously unselected package ruby-thor.
Unpacking ruby-thor (from .../ruby-thor_0.18.1-1_all.deb) ...
Selecting previously unselected package ruby-railties-3.2.
Unpacking ruby-railties-3.2 (from .../ruby-railties-3.2_3.2.13-4.1_all.deb) ...
Selecting previously unselected package ruby-strong-parameters.
Unpacking ruby-strong-parameters (from .../ruby-strong-parameters_0.2.1-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/ruby-strong-parameters_0.2.1-1_all.deb (--unpack):
 trying to overwrite '/usr/lib/ruby/vendor_ruby/generators/rails/templates/controller.rb', which is also in package ruby-jbuilder 1.4.1-1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/ruby-strong-parameters_0.2.1-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/generators/rails/templates/controller.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://edos.debian.net/file-overwrites/.



More information about the Pkg-ruby-extras-maintainers mailing list