Bug#700671: ruby: breaks squeeze-wheezy upgrade if apt-listbugs/0.1.3 is installed

2013-02-23 Thread Antonio Terceiro
clone 700671 -1
reassign -1 ruby1.9.1
tag 700671 + pending confirmed
tag -1 + pending confirmed
retitle -1 ruby1.9.1: alternatives priority bump breaks squeeze-wheezy 
upgrades when apt-listbugs is installed
thanks

Hello Sebastian, thanks for your bug report.

On Fri, Feb 15, 2013 at 11:58:36PM +0100, Sebastian Ramacher wrote:
 Package: ruby
 Version: 4.9
 Severity: serious
 Justification: breaks squeeze-wheezy upgrades
 
 The transition of the default version from ruby1.8 to ruby1.9.1 causes
 the upgrade from squeeze to wheezy to fail if apt-listbugs is installed.
 After replacing squeeze with wheezy in /etc/apt/sources.list and a
 successful 'apt-get update' and 'apt-get install dpkg apt', 'apt-get
 [upgrade|install|dist-upgrade]' all fail with:
 
 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load 
 such file -- gettext (LoadError)
 from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /usr/sbin/apt-listbugs:240:in `main'
 E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code 
 (10)
 E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
 
 'apt-get install dpkg apt' causes ruby to be installed and thus
 /usr/bin/ruby points to ruby1.9.1 afterwards. However, ruby-gettext,
 which provides the gettext module for ruby1.9.1, doesn't get installed.
 Since /usr/bin/apt-listbugs has #!/usr/bin/ruby as shebang,
 apt-listbugs is then executed with ruby1.9.1 and fails with the error
 message above.
 
 apt-listbugs's shebang has been changed to #/usr/bin/ruby1.8 in
 0.1.6. So I think that ruby should gain a Breaks: apt-listbugs (
 0.1.6) to force the upgrade of apt-listbugs if ruby is installed.
 
 I'm filing this bug with severity serious since it breaks upgrades from
 squeeze to wheezy.
 
 If my analysis of this bug is wrong, please reassign it to the correct
 package and change the severity accordingly.
 
 I've attached the log of performing the upgrade to wheezy in a squeeze
 chroot which has apt-listbugs installed.

I've just reproduced the problem on a fresh squeeze VM here.

Since the alternatives priority bump that causes ruby1.9.1 to be the default
ruby in wheezy is in package ruby1.9.1, I think it makes sense to also declare
the Breaks there so in the case where ruby1.9.1 is also already installed in
the system before the upgrade, it will work accordingly.

Expect uploads really soon now.

-- 
Antonio Terceiro terce...@debian.org


signature.asc
Description: Digital signature


Bug#700671: ruby: breaks squeeze-wheezy upgrade if apt-listbugs/0.1.3 is installed

2013-02-15 Thread Sebastian Ramacher
Package: ruby
Version: 4.9
Severity: serious
Justification: breaks squeeze-wheezy upgrades

The transition of the default version from ruby1.8 to ruby1.9.1 causes
the upgrade from squeeze to wheezy to fail if apt-listbugs is installed.
After replacing squeeze with wheezy in /etc/apt/sources.list and a
successful 'apt-get update' and 'apt-get install dpkg apt', 'apt-get
[upgrade|install|dist-upgrade]' all fail with:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load 
such file -- gettext (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/sbin/apt-listbugs:240:in `main'
E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10

'apt-get install dpkg apt' causes ruby to be installed and thus
/usr/bin/ruby points to ruby1.9.1 afterwards. However, ruby-gettext,
which provides the gettext module for ruby1.9.1, doesn't get installed.
Since /usr/bin/apt-listbugs has #!/usr/bin/ruby as shebang,
apt-listbugs is then executed with ruby1.9.1 and fails with the error
message above.

apt-listbugs's shebang has been changed to #/usr/bin/ruby1.8 in
0.1.6. So I think that ruby should gain a Breaks: apt-listbugs (
0.1.6) to force the upgrade of apt-listbugs if ruby is installed.

I'm filing this bug with severity serious since it breaks upgrades from
squeeze to wheezy.

If my analysis of this bug is wrong, please reassign it to the correct
package and change the severity accordingly.

I've attached the log of performing the upgrade to wheezy in a squeeze
chroot which has apt-listbugs installed.

Regards
-- 
Sebastian Ramacher


squeeze-to-wheezy-update.log.xz
Description: Binary data


signature.asc
Description: Digital signature