Created
December 23, 2013 18:46
-
-
Save thescouser89/8102408 to your computer and use it in GitHub Desktop.
rbenv patch to be applied when installing ruby 1.8.7-p375 Patch adapted from https://github.com/sstephenson/ruby-build/wiki#make-error-for-200-p247-and-lower-on-fedorared-hat
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
--- ext/openssl/ossl_pkey_ec.c | |
+++ ext/openssl/ossl_pkey_ec.c | |
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
method = EC_GFp_mont_method(); | |
} else if (id == s_GFp_nist) { | |
method = EC_GFp_nist_method(); | |
+#if !defined(OPENSSl_NO_EC2M) | |
} else if (id == s_GF2m_simple) { | |
method = EC_GF2m_simple_method(); | |
+#endif | |
} | |
if (method) { | |
@@ -811,8 +813,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
if (id == s_GFp) { | |
new_curve = EC_GROUP_new_curve_GFp; | |
+#if !defined(OPENSSL_NO_EC2M) | |
} else if (id == s_GF2m) { | |
new_curve = EC_GROUP_new_curve_GF2m; | |
+#endif | |
} else { | |
rb_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m"); | |
} |
The curl options used on the link you referenced are needed. So the command is:
curl -fsSL https://gist.github.com/thescouser89/8102408/raw/417cba9fee6ba1945b967b5ef236f676bd5005e0/1.8.7-rbenv.patch | rbenv install --patch 1.8.7-p375
The -L option is especially needed as this will follow redirects now that GitHub has moved the gists to a new domain. Also the options disable curl output so just the patch is piped to rbenv. But thanks for the patch. It solved my problem on Fedora 20.
I have forked this and made one for Ruby 1.9.2-p320. Install with:
curl -fsSL https://gist.githubusercontent.com/eric1234/7035f3669bf880b8c71e/raw/3907bba14bf0d06daefdeead290635601dd0d92a/1.9.2-p320.patch | rbenv install --patch 1.9.2-p320
Another fork for 2.0.0-p0. Install with:
curl -fsSL https://gist.githubusercontent.com/eric1234/e23d63f99427b39787ca/raw/7859c4b08c9ae7c0cebc69d42cce2b553838dcf0/2.0.0-p0-rbenv.patch | rbenv install --patch 2.0.0-p0
the 1.9.2-p320 patch also works with 1.9.2-p330
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Patch adapted from: https://github.com/sstephenson/ruby-build/wiki#make-error-for-200-p247-and-lower-on-fedorared-hat