Gem installs a bad shebang on application scripts (like rails)
--------------------------------------------------------------
Key: JRUBY-1725
URL: http://jira.codehaus.org/browse/JRUBY-1725
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.0.3
Environment: JRuby 1.0.3, Mac OS X 10.5.1, Java 1.5
Reporter: Caleb Land
Attachments: fix_gem_shebang.patch
When I install rails with:
{{gem install -y rails}}
the installed rails script in my jruby bin directory has the shebang:
{{#!/Users/caleb/Applications/jruby-1.0.3/bin/jruby}}
which in Mac OS X is bad since the jruby interpreter itself is a script.
Previous versions, used:
{{#!/usr/bin/env jruby}}
which works correctly.
I've attached a patch which fixes the issue. It just comments out some lines in
the {{lib/ruby/site_ruby/1.8/rubygems/installer.rb}} file.
Trunk still has these lines commented out.
--
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