Just wondering if anyone has created ksh versions of the bash scripts.
I also noticed that for JRuby 1.5, you are looking at native binaries
for the Unix launch scripts, will this be just for Intel/Linux or will
you also be providing versions for other Unix/Platforms?
Do we have a release candidate date for JRuby 1.5 at this point?
Just wondering if anyone has created ksh versions of the bash scripts.
I don’t think anyone has. There is a long-standing ticket [1] about
making the current script less bash-y, but I don’t think we got there
yet.
I also noticed that for JRuby 1.5, you are looking at native binaries for the Unix launch scripts, will this be just for Intel/Linux or will you also be providing versions for other Unix/Platforms?
Good question. Right now, ‘ant dist’ target on the trunk builds a binary
package that doesn’t include the jruby-launcher gem, which will build
the native launcher on the machine. Until this gem is installed, ‘jruby’
will remain a bash script. This behavior may change before the final 1.5
release.
Do we have a release candidate date for JRuby 1.5 at this point?
No, I don’t think we have a date. I can feel that it is getting close,
though.
I will look at rewriting the bash script to remove the need to use the
declare, which seems to be the core issue. I will then send through a
patch of what we produce and you can make a call to whether you want to
use it or not. I agree with the comment in the ticket that it should be
brought down to an sh script then should work across all platforms when
the native launcher is not used.
Regards
Matthew W.
On 06/03/2010, at 2:30 PM, Hirotsugu A. wrote:
Good question. Right now, ‘ant dist’ target on the trunk builds a binary package that doesn’t include the jruby-launcher gem, which will build the native launcher on the machine. Until this gem is installed, ‘jruby’ will remain a bash script. This behavior may change before the final 1.5 release.
I will look at rewriting the bash script to remove the need to use the declare, which seems to be the core issue.
Good. Thanks!
I will then send through a patch of what we produce and you can make a call to whether you want to use it or not. I agree with the comment in the ticket that it should be brought down to an sh script then should work across all platforms when the native launcher is not used.
Have you tried to build the native launcher? Potentially, this could
bring much more benefits, and the launcher would have more features
compared to shell launcher, and it is more actively developed and
maintained compared to shell launcher.
If you have some problems with native launcher compilation, patches
are most welcome, esp. on platforms which we don’t have access too.
To build the native launcher:
git clone git://github.com/vvs/jruby-launcher.git
cd jruby-launcher
make
Thanks,
–Vladimir
I also noticed that for JRuby 1.5, you are looking at native binaries for the Unix launch scripts, will this be just for Intel/Linux or will you also be providing versions for other Unix/Platforms?
Regards
On Sat, Mar 6, 2010 at 7:33 AM, Vladimir S. [email protected]
wrote:
current launcher, thanks to Nick,
can be used on Linux/Macos, etc.
I think he meant using the new gem-installable native launcher on
JRuby 1.4. As far as I can tell there should be no issue with that
(other than any remaining issues with the launcher itself, of course).
Right?
On Sat, Mar 6, 2010 at 10:12 AM, Matthew W. [email protected]
wrote:
I will give the native launcher a go first then.
Are there any known issues with using the launcher against JRuby 1.4?
It works, but since that was the first public release, the
functionality was not 100% complete.
Also, the launcher in JRuby 1.4 is only for Windows. While the
current launcher, thanks to Nick,
can be used on Linux/Macos, etc.
Here’s the list of changes/fixes in JRuby Native Launcher since JRuby
1.4.0:
I would echo what Vladimir said; the bash script is has become
unwieldy enough that we’re hoping we can provide a native launcher for
everyone.
That said, we’ll always need a script-based launcher for platforms
where the native launcher can’t build or to simply bootstrap JRuby
(you have to have something to gem install the new native
launcher!). There have been attempts to port it to ksh or sh but none
were ever completed. Having a lowest-common denominator startup script
for sh would be the ideal, since we’d never depend on bash being
installed.
If you think you’re up to the challenge, go for it. There are previous
attempts in JIRA: