Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-08 Thread Andreas Beckmann
On 2016-03-09 05:02, Sebastien Badia wrote:
> root@986c8ab6cb31:~# dpkg -i ruby-amqp_1.5.1-3_all.deb 
> Selecting previously unselected package ruby-amqp.
> (Reading database ... 18260 files and directories currently installed.)
> Preparing to unpack ruby-amqp_1.5.1-3_all.deb ...
> Unpacking ruby-amqp (1.5.1-3) ...
> Replacing files in old package ruby-amq-client (1.0.4-1) ...
> Setting up ruby-amqp (1.5.1-3) ...
> root@986c8ab6cb31:~# apt policy ruby-amq-client
> ruby-amq-client:
>   Installed: 1.0.4-1
>   Candidate: 1.0.4-1
>   Version table:
>  *** 1.0.4-1 100
> 100 /var/lib/dpkg/status
> root@986c8ab6cb31:~# apt policy ruby-amqp  
> ruby-amqp:
>   Installed: 1.5.1-3
>   Candidate: 1.5.1-3
>   Version table:
>  *** 1.5.1-3 100
> 100 /var/lib/dpkg/status

That looks like you only have a Replaces: ruby-amq-client without a
corresponding Breaks. If you remove ruby-amqp at this point,
ruby-amq-client will still be installed, but will be missing some files,
despite of dpkg considering it as correctly installed.


Andreas



Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-08 Thread Sebastien Badia
On Tue, Mar 08, 2016 at 09:15:01PM (+0100), Andreas Beckmann wrote:
> Hi,
> 
> removal of the old package is not sufficient, you still need to add 
> Breaks+Replaces:

Hi!

Oh indeed, Humrf… I missed this…

It should be ok in the version -3

Thanks! And sorry for the inconvenience.

root@986c8ab6cb31:~# apt policy ruby-amq-client
ruby-amq-client:
  Installed: 1.0.4-1
  Candidate: 1.0.4-1
  Version table:
 *** 1.0.4-1 100
100 /var/lib/dpkg/status
root@986c8ab6cb31:~# dpkg -i ruby-amqp_1.5.1-3_all.deb 
Selecting previously unselected package ruby-amqp.
(Reading database ... 18260 files and directories currently installed.)
Preparing to unpack ruby-amqp_1.5.1-3_all.deb ...
Unpacking ruby-amqp (1.5.1-3) ...
Replacing files in old package ruby-amq-client (1.0.4-1) ...
Setting up ruby-amqp (1.5.1-3) ...
root@986c8ab6cb31:~# apt policy ruby-amq-client
ruby-amq-client:
  Installed: 1.0.4-1
  Candidate: 1.0.4-1
  Version table:
 *** 1.0.4-1 100
100 /var/lib/dpkg/status
root@986c8ab6cb31:~# apt policy ruby-amqp  
ruby-amqp:
  Installed: 1.5.1-3
  Candidate: 1.5.1-3
  Version table:
 *** 1.5.1-3 100
100 /var/lib/dpkg/status

Seb


signature.asc
Description: PGP signature


Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-08 Thread Andreas Beckmann
Followup-For: Bug #817012
Control: found -1 1.5.1-2

Hi,

removal of the old package is not sufficient, you still need to add 
Breaks+Replaces:

  Selecting previously unselected package ruby-amqp.
  Preparing to unpack .../ruby-amqp_1.5.1-2_all.deb ...
  Unpacking ruby-amqp (1.5.1-2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/ruby-amqp_1.5.1-2_all.deb (--unpack):
   trying to overwrite 
'/usr/lib/ruby/vendor_ruby/amq/protocol/get_response.rb', which is also in 
package ruby-amq-client 1.0.4-1
  Errors were encountered while processing:
   /var/cache/apt/archives/ruby-amqp_1.5.1-2_all.deb

Noticed on upgrade tests from testing to sid.


Andreas



Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-07 Thread Ralf Treinen
Bonjour Sebastien,

thanks for the removal of ruby-amq-client. However, I think that you
still should add to ruby-amqp Replaces/Conflicts with ruby-amq-client,
in order allow for smooth upgrade from old installations.

Cheers -Ralf.



Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-07 Thread Sebastien Badia
tags 817012 + pending
thanks

Hi Ralf,

Thanks for this bug report!

Just fixed the issue (request a ROM of ruby-amq-client, (upstream dead), and
prepared a new version for ruby-amqp).

Cheers,

Seb


signature.asc
Description: PGP signature


Bug#817012: ruby-amqp and ruby-amq-client: error when trying to install together

2016-03-06 Thread Ralf Treinen
Package: ruby-amq-client,ruby-amqp
Version: ruby-amq-client/1.0.4-1
Version: ruby-amqp/1.5.1-1
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2016-03-07
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 ... 10939 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 gcc-5-base:amd64.
Preparing to unpack .../gcc-5-base_5.3.1-10_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.3.1-10) ...
Setting up gcc-5-base:amd64 (5.3.1-10) ...
(Reading database ... 10953 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.3.1-10_amd64.deb ...
Unpacking libstdc++6:amd64 (5.3.1-10) over (4.8.2-19) ...
Processing triggers for libc-bin (2.21-9) ...
Setting up libstdc++6:amd64 (5.3.1-10) ...
Processing triggers for libc-bin (2.21-9) ...
Selecting previously unselected package libssl1.0.2:amd64.
(Reading database ... 10967 files and directories currently installed.)
Preparing to unpack .../libssl1.0.2_1.0.2g-1_amd64.deb ...
Unpacking libssl1.0.2:amd64 (1.0.2g-1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1_amd64.deb ...
Unpacking openssl (1.0.2g-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 rubygems-integration.
Preparing to unpack .../rubygems-integration_1.10_all.deb ...
Unpacking rubygems-integration (1.10) ...
Selecting previously unselected package ruby-did-you-mean.
Preparing to unpack .../ruby-did-you-mean_1.0.0-2_all.deb ...
Unpacking ruby-did-you-mean (1.0.0-2) ...
Selecting previously unselected package ruby-minitest.
Preparing to unpack .../ruby-minitest_5.8.4-2_all.deb ...
Unpacking ruby-minitest (5.8.4-2) ...
Selecting previously unselected package ruby-net-telnet.
Preparing to unpack .../ruby-net-telnet_0.1.1-2_all.deb ...
Unpacking ruby-net-telnet (0.1.1-2) ...
Selecting previously unselected package ruby-power-assert.
Preparing to unpack .../ruby-power-assert_0.2.7-1_all.deb ...
Unpacking ruby-power-assert (0.2.7-1) ...
Selecting previously unselected package ruby-test-unit.
Preparing to unpack .../ruby-test-unit_3.1.7-2_all.deb ...
Unpacking ruby-test-unit (3.1.7-2) ...
Selecting previously unselected package libruby2.3:amd64.
Preparing to unpack .../libruby2.3_2.3.0-4_amd64.deb ...
Unpacking libruby2.3:amd64 (2.3.0-4) ...
Selecting previously unselected package ruby2.3.
Preparing to unpack .../ruby2.3_2.3.0-4_amd64.deb ...
Unpacking ruby2.3 (2.3.0-4) ...
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_1%3a2.3.0+1_all.deb ...
Unpacking ruby (1:2.3.0+1) ...
Selecting previously unselected package rake.
Preparing to unpack .../archives/rake_10.5.0-2_all.deb ...
Unpacking rake (10.5.0-2) ...
Selecting previously unselected package ruby-eventmachine.
Preparing to unpack .../ruby-eventmachine_1.0.7-3+b4_amd64.deb ...
Unpacking ruby-eventmachine (1.0.7-3+b4) ...
Selecting previously unselected package ruby-amq-protocol.
Preparing to unpack .../ruby-amq-protocol_1.9.2-2_all.deb ...
Unpacking ruby-amq-protocol (1.9.2-2) ...
Selecting previously unselected package ruby-amq-client.
Preparing to unpack .../ruby-amq-client_1.0.4-1_all.deb ...
Unpacking ruby-amq-client (1.0.4-1) ...
Selecting previously unselected package ruby-amqp.
Preparing to unpack .../ruby-amqp_1.5.1-1_all.deb ...
Unpacking ruby-amqp (1.5.1-1) ...
dpkg: error processing archive 
/var/cache/apt/archives/ruby-amqp_1.5.1-1_all.deb (--unpack):
 trying to overwrite '/usr/lib/ruby/vendor_ruby/amq/protocol/get_response.rb', 
which is also in package ruby-amq-client 1.0.4-1
Processing triggers for libc-bin (2.21-9) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/ruby-amqp_1.5.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
cow-shell unlink .ilist: No such file or directory


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