jruby -S gem install --ignore-dependencies ruby-debug fails if 
ruby-debug-base-0.10.3.2-java.gem is present
-----------------------------------------------------------------------------------------------------------

                 Key: JRUBY-4934
                 URL: http://jira.codehaus.org/browse/JRUBY-4934
             Project: JRuby
          Issue Type: Bug
         Environment: MacOS X 10.6.4, JRuby master
            Reporter: Stephen Bannasch
            Assignee: Thomas E Enebo


This is a strange problem (might be a problem with rubygems itself).

Installing ruby-debug for jruby is a two step process:
# manually download and install ruby-debug-base-0.10.3.2-java.gem
# jruby -S gem install --ignore-dependencies ruby-debug

But step two fails if the ruby-debug-base-0.10.3.2-java.gem files is still 
present.

... more details


Tested and problem occurs on jruby master, 1.5.1, and 1.4.0

{code}
[jruby-test (master)]$ git log -1
commit f0780342785c0bac5ad4a3f574cc696894faba3d
Author: Hiro Asari <[email protected]>
Date:   Tue Jul 13 21:51:58 2010 -0400

    Update mspec and rubyspec revisions and tag failing specs.
{code}

Following instructions here: http://debug-commons.rubyforge.org/#jruby-debug
I downloaded the latest  jruby-debug-base 0.10.3.2 release available here: 
http://rubyforge.org/frs/?group_id=3085
Which was: ruby-debug-base-0.10.3.2-java.gem: 
http://rubyforge.org/frs/download.php/70304/ruby-debug-base-0.10.3.2-java.gem

{code}
[jruby-test (master)]$ wget 
http://rubyforge.org/frs/download.php/70304/ruby-debug-base-0.10.3.2-java.gem

[jruby-test (master)]$ jruby -S gem install ruby-debug-base-0.10.3.2-java.gem 
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
Successfully installed ruby-debug-base-0.10.3.2-java
1 gem installed
Installing ri documentation for ruby-debug-base-0.10.3.2-java...
Couldn't find file to include: 'VERSION'
Installing RDoc documentation for ruby-debug-base-0.10.3.2-java...
Couldn't find file to include: 'VERSION'
{code}

I now have ruby-debug-base installed:

{code}
[jruby-test (master)]$ jruby -S gem list

*** LOCAL GEMS ***

columnize (0.3.1)
ruby-debug-base (0.10.3.2 java)
sources (0.0.1)
{code}

Start the second step -- but notice it's actually just repeating the first step 
again:

{code}
[jruby-test (master)]$ jruby -S gem install --ignore-dependencies ruby-debug
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
Successfully installed ruby-debug-base-0.10.3.2-java
1 gem installed
Installing ri documentation for ruby-debug-base-0.10.3.2-java...
Couldn't find file to include: 'VERSION'
Installing RDoc documentation for ruby-debug-base-0.10.3.2-java...
Couldn't find file to include: 'VERSION'
{code}

And thelist of installed gems stays the same:

{code}
[jruby-test (master)]$ gem list

*** LOCAL GEMS ***

columnize (0.3.1)
ruby-debug-base (0.10.3.2 java)
sources (0.0.1)
{code}

Remove the downloaded gem file and try again:

{code}
[jruby-test (master)]$ rm -f ruby-debug-base-0.10.3.2-java.gem

[jruby-test (master)]$ jruby -S gem install --ignore-dependencies ruby-debug
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
Successfully installed ruby-debug-0.10.3
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
{code}

Seems to work and checking the installed gem list shows success:

{code}
[jruby-test (master)]$ jruby -S gem list

*** LOCAL GEMS ***

columnize (0.3.1)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3.2 java)
sources (0.0.1)
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to