jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-1087

rubygems expects runtime.getJRubyHome() to be canonical

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.0.0RC2
  • Fix Version/s: JRuby 1.0.0RC3
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Windows

Description

jruby.home (accessed in Java by getJRubyHome) is expected to be canonical when it populates all the $:/loadpath entries when the system comes up. Software like rubygems basically assumes this or one of its path operations break. Rubygems manipulation of $: is pretty fragile in that it expects config::Config[sitelibdir] to be an exact match with an element in $:. So:

sitelibdir=c:/foo/bar

$: => ["c:/foo/bar/../bar"]

or 
$: => ["C:/foo/bar"]

or
$: => ["/foo/bar"] <= Assumes system drive is 'C'

none of the above will work. Perhaps it is a burden which JRuby/MRI needs to bear to guarantee sitelibdir and same $: element are identical.

The other option was to update LoadService.addPath to make sure all entries coming in were canonical. This semed like it would be more confusing than making original path canonical.

Another option is to actually use rbconfig values to populate $:. This might be the best solution, but I want a release out today.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Thomas E Enebo added a comment - 02/Jun/07 5:44 PM

Fixed in commit 3825

Show
Thomas E Enebo added a comment - 02/Jun/07 5:44 PM Fixed in commit 3825

People

  • Assignee:
    Thomas E Enebo
    Reporter:
    Thomas E Enebo
Vote (0)
Watch (0)

Dates

  • Created:
    02/Jun/07 5:08 PM
    Updated:
    22/Dec/07 6:29 AM
    Resolved:
    02/Jun/07 5:44 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.