Package: ruby
Version: 1:2.1.0.4
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

while analyzing piuparts wheezy->jessie upgrade tests I noticed some
cases where old ruby packages were not being upgraded since apt preferred
to keep some old library installed instead of removing it and installing
a successor instead (transitional packages would ease such paths ...)
Fortunately the ruby package has a significantly high score, so adding
some Breaks to it would be well honored to get rid of some old stuff.

Please add (unversioned)

  Breaks: ruby-activesupport-3.2

Since the other ruby-active*-3.2 packages depend on ruby-activesupport-3.2
this should be sufficient to get rid of all of them.

I did a quick test in my local piuparts instance and saw that this change
is sufficient to fix the ruby-related incomplete upgrades.

Excerpt from the apt problemresolver debug output from the upgrade of
ruby-jquery-rails:

[...]
  106 ruby [ amd64 ] < 1:1.9.3 -> 1:2.1.0.4 > ( ruby )
[...]
  21 ruby-activesupport-3.2 [ amd64 ] < 3.2.6-6+deb7u1 > ( ruby )
[...]
  7 ruby-activerecord-3.2 [ amd64 ] < 3.2.6-5+deb7u1 > ( ruby )
[...]
  2 ruby-arel [ amd64 ] < 3.0.2-2 -> 5.0.1.20140414130214-1 > ( ruby )
  2 ruby-activesupport [ amd64 ] < none -> 2:4.1.8-1 > ( ruby )
[...]
  1 ruby-polyglot [ amd64 ] < 0.3.3-3 -> 0.3.4-1 > ( ruby )
  -1 ruby-railties-3.2 [ amd64 ] < 3.2.6-3 > ( ruby )
  -1 ruby1.9.1 [ amd64 ] < 1.9.3.194-8.1+deb7u2 > ( ruby )
  Starting 2
  Investigating (0) ruby-arel [ amd64 ] < 3.0.2-2 -> 5.0.1.20140414130214-1 > ( 
ruby )
  Broken ruby-arel:amd64 Breaks on ruby-activerecord-3.2 [ amd64 ] < 
3.2.6-5+deb7u1 > ( ruby )
    Considering ruby-activerecord-3.2:amd64 7 as a solution to ruby-arel:amd64 2
    Holding Back ruby-arel:amd64 rather than change ruby-activerecord-3.2:amd64
  Investigating (0) ruby-activesupport [ amd64 ] < none -> 2:4.1.8-1 > ( ruby )
  Broken ruby-activesupport:amd64 Breaks on ruby-activesupport-3.2 [ amd64 ] < 
3.2.6-6+deb7u1 > ( ruby )
    Considering ruby-activesupport-3.2:amd64 21 as a solution to 
ruby-activesupport:amd64 2
    Holding Back ruby-activesupport:amd64 rather than change 
ruby-activesupport-3.2:amd64
  Investigating (0) ruby-railties [ amd64 ] < none -> 2:4.1.8-1 > ( ruby )
  Broken ruby-railties:amd64 Depends on ruby-activesupport [ amd64 ] < none -> 
2:4.1.8-1 > ( ruby ) (= 2:4.1.8-1)
    Considering ruby-activesupport:amd64 2 as a solution to ruby-railties:amd64 
1
    Holding Back ruby-railties:amd64 rather than change ruby-activesupport:amd64
  Investigating (0) ruby-actionview [ amd64 ] < none -> 2:4.1.8-1 > ( ruby )
  Broken ruby-actionview:amd64 Depends on ruby-activesupport [ amd64 ] < none 
-> 2:4.1.8-1 > ( ruby ) (= 2:4.1.8-1)
    Considering ruby-activesupport:amd64 2 as a solution to 
ruby-actionview:amd64 0
    Holding Back ruby-actionview:amd64 rather than change 
ruby-activesupport:amd64
  Investigating (0) ruby-actionpack [ amd64 ] < none -> 2:4.1.8-1 > ( ruby )
  Broken ruby-actionpack:amd64 Depends on ruby-actionview [ amd64 ] < none -> 
2:4.1.8-1 > ( ruby ) (= 2:4.1.8-1)
    Considering ruby-actionview:amd64 0 as a solution to ruby-actionpack:amd64 0
    Holding Back ruby-actionpack:amd64 rather than change ruby-actionview:amd64
   Try to Re-Instate (1) ruby-arel:amd64
  Investigating (1) ruby-jquery-rails [ amd64 ] < 2.0.2-1 -> 3.1.2-2 > ( ruby )
  Broken ruby-jquery-rails:amd64 Depends on ruby-railties [ amd64 ] < none -> 
2:4.1.8-1 > ( ruby )
    Considering ruby-railties:amd64 1 as a solution to ruby-jquery-rails:amd64 1
    Holding Back ruby-jquery-rails:amd64 rather than change ruby-railties:amd64
   Try to Re-Instate (2) ruby-jquery-rails:amd64
  Done
  The following NEW packages will be installed:
[...]
  The following packages have been kept back:
    ruby-arel ruby-jquery-rails
  The following packages will be upgraded:
[...]


after adding the Breaks the summary (diff shown) looks good:

[...]
+  The following packages will be REMOVED:
+    ruby-actionmailer-3.2 ruby-actionpack-3.2 ruby-activemodel-3.2
+    ruby-activerecord-3.2 ruby-activesupport-3.2 ruby-railties-3.2
   The following NEW packages will be installed:
[...]
-  The following packages have been kept back:
-    ruby-arel ruby-jquery-rails
   The following packages will be upgraded:
[...]


Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to