Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.3
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Ruby 1.9.3
-
Labels:None
-
Environment:Adding OpenVMS IA64 servers support. J2SE V6.0. JRuby 1.6.3
-
Number of attachments :
Description
I am unable to add OpenVMS style file names support in JRuby 1.6.3. I am getting repeated such kind of errors while compiling a modified src/org/jruby/JRubyFile.java:
[apt]
/PHV/PHV/JRUBY_VMS/jruby-1.6.3/src/org/jruby/RubyFile.java:1109: cannot
find symbol
[apt] symbol : variable IS_OPENVMS
[apt] location: class org.jruby.ext.posix.util.Platform
[apt] if (Platform.IS_OPENVMS)
This is because jnr-posix.jar does not include support for OpenVMS.
I did download jruby-jnr-posix-1.1.8-0-g3035acd.tar.gz and
jnr-jnr-constants-0.8.1-0-gd3d4acc.zip but jnr-constants lacks a
build.xml causing jruby-jnr-posix/build.xml to fail.
Can you add those two lines in jnr_posix/src/org/jruby/ext/posix/util/Platfrom.java :
...
private static final String OPENVMS = "openvms";
...
public static final boolean IS_OPENVMS = OS_NAME_LC.equals(OPENVMS);
...
and submit a new jnr-posix.jar ?
Thank you in advance.
Philippe Vouters
Activity
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | JRuby 1.6.4 [ 17472 ] | |
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Assignee | Thomas E Enebo [ enebo ] | Charles Oliver Nutter [ headius ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
jnr-posix should build using maven (in which case, it'll suck in jnr-constants automagically).
To make jnr-posix work properly, you would want to regenerate the constants in jnr-constants for openvms, at the very least, the Errno constants. That might be a bit tricky, since I'm pretty sure the generator is hardcoded to use gcc ... or at least a decent posix environment. It also depends on a working JRuby FFI.
That can all be worked around though with a bit of hacking of the generator scripts.