Last active
May 6, 2019 01:45
-
-
Save khustochka/4555523 to your computer and use it in GitHub Desktop.
Patching ruby using ruby build Edit ruby definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_combined_patch() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p362/segfault_fix_7629.diff | patch -F 25 -p1 -N -f | |
autoconf | |
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
make -j 8 | |
make install | |
} >&4 2>&1 | |
} | |
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz#36c852831d02cf90508c29852361d01b" | |
install_package "ruby-1.9.3-p362" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz#1efc2316dc50e97591792d90647fade2" combined_patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
patch -F 25
is vital. Was failing to apply patch without this.