Skip to content

Instantly share code, notes, and snippets.

@khustochka
Last active May 6, 2019 01:45
Show Gist options
  • Save khustochka/4555523 to your computer and use it in GitHub Desktop.
Save khustochka/4555523 to your computer and use it in GitHub Desktop.
Patching ruby using ruby build Edit ruby definition
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
@khustochka
Copy link
Author

patch -F 25 is vital. Was failing to apply patch without this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment