Permalink
Browse files

ruby 1.9.3 support

  • Loading branch information...
skaes committed Apr 7, 2012
1 parent d1e61eb commit 51dc8867256c3d8af7c145520772c626c3d6b535
View
@@ -1,34 +1,48 @@
= Patchsets for RVM
= RVM Patchsets for MRI-Ruby
== About
Over time, I have developed a number of patches to MRI ruby which I use in all my
projects. I maintain them using stgit. This repository provides them as patchsets for RVM.
They are also frequently merged into the main rvm repository, so usually you can use
them directly after installing/updating rvm.
== Usage
First install the patchsets into your RVM path:
=== Step 1
To use the a recent version of the patchsets, just update rvm:
rvm get head # OR
rvm get stable
If rvm isn't update to date yet, or you can easily install them from this repository:
* clone the repository to some convenient place
* cd into the top level directory
* run install.sh
This will automatically remove old versions of the patchsets.
Second, reinstall the rubies you want to patch:
=== Step 2
Reinstall the rubies you want to patch:
rvm reinstall 1.8.7 --patch railsexpress
rvm reinstall 1.9.2 --patch railsexpress
rvm reinstall 1.9.3 --patch railsexpress
Alternatively, you can pass the ruby version to reinstall to the install script:
./install.sh 1.8.7 1.9.2
./install.sh 1.8.7 1.9.2 1.9.3
IF you don't want to mess up your vanilla rubies, pass a -n flag to rvm when installing
the patches:
rvm reinstall 1.8.7 --patch railsexpress -n railsexpress
rvm reinstall 1.9.2 --patch railsexpress -n railsexpress
rvm reinstall 1.9.3 --patch railsexpress -n railsexpress
This will then require you to specify the ruby version for rvm like so:
@@ -46,6 +60,7 @@ there's no guarantee. The following versions are currently supported:
1.9.2-p180 #
1.9.2-p290 #
1.9.2-p318 # current rvm default for MRI-ruby 1.9.2
1.9.3-p125 # current rvm default for MRI-ruby 1.9.3
In order to make some patch level n the default for rvm, add the line
@@ -57,10 +72,11 @@ To enable heap dump support, pass the --enable-gcdebug option to the rvm install
rvm reinstall 1.8.7 --patch railsexpress -C --enable-gcdebug -n gcdebug
rvm reinstall 1.9.2 --patch railsexpress -C --enable-gcdebug -n gcdebug
rvm reinstall 1.9.3 --patch railsexpress -C --enable-gcdebug -n gcdebug
If rvm cannot configure your ruby, update your rvm install.
=== Using patches for ruby-branches (1.8.7 only)
=== Using patches for ruby-branches (1.8.7/1.9.3 only)
The most recent patch level on the ruby_1_8_7 branch is 360. If you want to use it, you
can install the corresponding ruby version with the following command:
@@ -74,6 +90,12 @@ You can then use it with the command
Note that the patch contained in patch level 359 fixes a serious bug in the ruby
marshaling code, which can crash the ruby interpreter.
On 1.9.3, you can install head similarly:
rvm reinstall 1.9.3-head --patch railsexpress -n railsexpress
== Caveats
* The 1.9.3 patches heave not received a lot of testing. Use at your own risk!
== Credits
Oops, something went wrong.

0 comments on commit 51dc886

Please sign in to comment.