History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1348
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Charles Oliver Nutter
Reporter: Jerome Dochez
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

gem installation does not set executable rights correctly

Created: 13/Sep/07 04:12 PM   Updated: 22/Dec/07 06:28 AM
Component/s: None
Affects Version/s: JRuby 1.0.1
Fix Version/s: JRuby 1.1b1, JRuby 1.0.2

Time Tracking:
Not Specified

Environment: mac os x


 Description  « Hide
on mac os x, when installing a gem, the default executable as identified in the gem is not correctly set with executable rights.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 13/Sep/07 04:13 PM
And it works on trunk/1.1?

Charles Oliver Nutter - 13/Sep/07 04:43 PM
1.0.x seems ok with Java 6; trying Java 5 next.

Charles Oliver Nutter - 13/Sep/07 04:48 PM
Ok, it's definitely not setting executable under Java 5. Java 5 provides no mechanisms for chmod and friends, so we have been spawning the external "chmod" command. My guess is that this is failing to launch correctly, but either way this is a very problematic area for us. The same problem would exist under JRuby trunk/1.1, but we have also introduced JNA to call the real POSIX chmod function when possible, so it will happen much less frequently. I will investigate whether chmod is not spawning correctly under Java 5. Other suggestion are welcome.

Charles Oliver Nutter - 13/Sep/07 04:59 PM
Ok, it looks like an issue where we need to pass the absolute path when launching chmod; modifying it to pass the absolute path appears to make chmod work correctly. I will commit this to trunk and 1.0 branch.

Charles Oliver Nutter - 13/Sep/07 05:03 PM
Fixed in 4317 on 1 .0 branch and 4318 on trunk.