Public bug reported:

Binary package hint: jruby1.2

package jruby1.2 includes an extra copy of rubygems. This should be
fixed - if jruby really requires rubygems, it should depend on rubygems
package instead of including an out of date copy of rubygems.

This bit me while trying to compile puavo-users from 
http://github.com/opinsys/puavo-users which requires rubygems 1.3.2 or higher. 
I was using rake installed with "jruby -S gem install rake". Running rake in 
puavo-users git clone results in following error message:
Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` 
and try again.

However, in the same time
$ gem --version
1.3.5

After a long time investigating this problem I found out that package jruby1.2 
is the problem here:
$ dpkg -S "1.8/rubygems.rb"
rubygems1.8: /usr/lib/ruby/1.8/rubygems.rb
jruby1.2: /usr/lib/jruby1.2/lib/ruby/site_ruby/1.8/rubygems.rb

Right... jruby1.2 includes an out of date copy (1.3.1) of rubygems. How
about just using the code from rubygems1.8 package instead?

Steps to reproduce:

sudo aptitude install jruby1.2 rubygems git-core
jruby -S gem install rake
git clone git://github.com/opinsys/puavo-users.git
cd puavo-users
~/.gem/jruby/1.8/bin/rake
(in /home/.../puavo-users)
Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` 
and try again.

$ lsb_release -rd
Description:    Ubuntu 9.10
Release:        9.10

$ apt-cache policy jruby1.2 rubygems
jruby1.2:
  Installed: 1.2.0-2ubuntu2
  Candidate: 1.2.0-2ubuntu2
  Version table:
 *** 1.2.0-2ubuntu2 0
        500 http://ftp.sunet.se karmic/main Packages
        100 /var/lib/dpkg/status
rubygems:
  Installed: 1.3.5-1ubuntu2
  Candidate: 1.3.5-1ubuntu2
  Version table:
 *** 1.3.5-1ubuntu2 0
        500 http://ftp.sunet.se karmic/universe Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: amd64
CheckboxSubmission: f0bf0101e3df07a87acfbc156f0db03d
CheckboxSystem: b5acb6c9ca4017b1d44043910f45329d
Date: Wed May 19 10:17:32 2010
Dependencies:
 
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 
(20091020.3)
Package: jruby1.2 1.2.0-2ubuntu2
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.31-9.152-rt
SourcePackage: jruby1.2
Uname: Linux 2.6.31-9-rt x86_64

** Affects: jruby1.2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
jruby1.2 contains a copy of an old version of rubygems
https://bugs.launchpad.net/bugs/582683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to