Commit f4a34da8 by Mislav Marohnić

Add examples how to use the `--patch` option to the Readme

[ci skip]
parent dc1a7759
...@@ -123,6 +123,25 @@ You can set certain environment variables to control the build process. ...@@ -123,6 +123,25 @@ You can set certain environment variables to control the build process.
make options for buildling MRI. These variables will be passed to Ruby only, make options for buildling MRI. These variables will be passed to Ruby only,
not any dependent packages (e.g. libyaml). not any dependent packages (e.g. libyaml).
### Applying patches to Ruby before compiling
Both `rbenv install` and `ruby-build` support the `--patch` (`-p`) flag that
signals that a patch from stdin should be applied to Ruby, JRuby, or Rubinius
source code before the `./configure` and compilation steps.
Example usage:
```sh
# applying a single patch
$ rbenv install --patch 1.9.3-p429 < /path/to/ruby.patch
# applying a patch from HTTP
$ rbenv install --patch 1.9.3-p429 < <(curl -sSL http://git.io/ruby.patch)
# applying multiple patches
$ cat fix1.patch fix2.patch | rbenv install --patch 1.9.3-p429
```
### Checksum verification ### Checksum verification
If you have the `md5`, `openssl`, or `md5sum` tool installed, ruby-build will If you have the `md5`, `openssl`, or `md5sum` tool installed, ruby-build will
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment