Forum: JRuby ksh versions of bash scripts

Posted by Matthew Winter (Guest)
on 2010-03-06 01:00
(Received via mailing list)
Hi,

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?

Thanks.

Regards
Matthew Winter
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Hirotsugu Asari (Guest)
on 2010-03-06 04:30
(Received via mailing list)
On Mar 5, 2010, at 5:58 PM, Matthew Winter wrote:

> Hi,
> 
> 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.


> Thanks.
> 
> Regards
> Matthew Winter

[1] http://jira.codehaus.org/browse/JRUBY-1967


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

    http://xircles.codehaus.org/manage_email
Posted by Matthew Winter (Guest)
on 2010-03-06 05:21
(Received via mailing list)
Hi,

OK, Thanks.

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 Winter


On 06/03/2010, at 2:30 PM, Hirotsugu Asari 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.
> 
> [1] http://jira.codehaus.org/browse/JRUBY-1967
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 


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

    http://xircles.codehaus.org/manage_email
Posted by Vladimir Sizikov (Guest)
on 2010-03-06 08:52
(Received via mailing list)
Hi

On Sat, Mar 6, 2010 at 5:20 AM, Matthew Winter <wintermi@teratools.com> 
wrote:
> 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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email
Posted by Matthew Winter (Guest)
on 2010-03-06 10:13
(Received via mailing list)
Hi,

> git clone git://github.com/vvs/jruby-launcher.git
> cd jruby-launcher
> make
> 

I will give the native launcher a go first then.

Are there any known issues with using the launcher against JRuby 1.4?

Thanks.

Regards
Matthew Winter

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

    http://xircles.codehaus.org/manage_email
Posted by Vladimir Sizikov (Guest)
on 2010-03-06 14:34
(Received via mailing list)
Hi Matthew,

On Sat, Mar 6, 2010 at 10:12 AM, Matthew Winter <wintermi@teratools.com> 
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:
http://gist.github.com/323675

A lot. :)

Thanks,
  --Vladimir

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

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-03-07 14:12
(Received via mailing list)
On Sat, Mar 6, 2010 at 7:33 AM, Vladimir Sizikov <vsizikov@gmail.com> 
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?

- Charlie

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

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-03-07 14:18
(Received via mailing list)
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:

http://jira.codehaus.org/browse/JRUBY-1967
http://jira.codehaus.org/browse/JRUBY-2119

- Charlie

On Fri, Mar 5, 2010 at 10:20 PM, Matthew Winter <wintermi@teratools.com> 
wrote:
> On 06/03/2010, at 2:30 PM, Hirotsugu Asari wrote:
>>
>>> Matthew Winter
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.