diff options
author | stas <stas@FreeBSD.org> | 2009-01-12 19:19:20 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2009-01-12 19:19:20 +0800 |
commit | a143a71a97450fe679a9cebbf59ebe55eedce28e (patch) | |
tree | 12fbb55ac4869eb9017d2ff828b9fc50aecb67c6 /lang/ruby18 | |
parent | a79a1a0c8a476044160be77346893d2694403cb0 (diff) | |
download | freebsd-ports-gnome-a143a71a97450fe679a9cebbf59ebe55eedce28e.tar.gz freebsd-ports-gnome-a143a71a97450fe679a9cebbf59ebe55eedce28e.tar.zst freebsd-ports-gnome-a143a71a97450fe679a9cebbf59ebe55eedce28e.zip |
- Fix build with OPENSSL_PORT.
PR: ports/130399
Submitted by: bf <bf2006a@yahoo.com>
Diffstat (limited to 'lang/ruby18')
-rw-r--r-- | lang/ruby18/Makefile | 4 | ||||
-rw-r--r-- | lang/ruby18/files/extra-patch-ext_openssl_openssl_missing.h | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile index 546233d2a967..ec8154bdb83f 100644 --- a/lang/ruby18/Makefile +++ b/lang/ruby18/Makefile @@ -34,6 +34,10 @@ RUBY_NO_BUILD_DEPENDS= yes RUBY_NO_RUN_DEPENDS= yes _RUBY_SYSLIBDIR= ${PREFIX}/lib +.ifdef(WITH_OPENSSL_PORT) +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ext_openssl_openssl_missing.h +.endif + OPTIONS= PTHREADS "Enable pthreads support (may break some apps)" off \ ONIGURUMA "Build with oniguruma regular expressions lib" off \ GCPATCH "Build with GC performance statistics collector" off \ diff --git a/lang/ruby18/files/extra-patch-ext_openssl_openssl_missing.h b/lang/ruby18/files/extra-patch-ext_openssl_openssl_missing.h new file mode 100644 index 000000000000..06cf6959223e --- /dev/null +++ b/lang/ruby18/files/extra-patch-ext_openssl_openssl_missing.h @@ -0,0 +1,13 @@ +--- ext/openssl/openssl_missing.h.orig 2009-01-11 20:16:56.000000000 -0500 ++++ ext/openssl/openssl_missing.h 2009-01-11 20:17:30.000000000 -0500 +@@ -120,8 +120,8 @@ + int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); + int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx); + int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx); +-int BN_rand_range(BIGNUM *r, BIGNUM *range); +-int BN_pseudo_rand_range(BIGNUM *r, BIGNUM *range); ++int BN_rand_range(BIGNUM *r, const BIGNUM *range); ++int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range); + char *CONF_get1_default_config_file(void); + int PEM_def_callback(char *buf, int num, int w, void *key); + |