Package Details: ruby1.8 1.8.7_p374-3

Git Clone URL: https://aur.archlinux.org/ruby1.8.git (read-only)
Package Base: ruby1.8
Description: The obsolete version of the ruby programming language. Consider 2.x instead.
Upstream URL: http://www.ruby-lang.org/en/
Licenses: custom
Provides: ruby=1.8.7
Submitter: farseerfc
Maintainer: farseerfc
Last Packager: farseerfc
Votes: 0
Popularity: 0.000000
First Submitted: 2015-08-10 10:19
Last Updated: 2016-06-13 10:51

Required by (815)

Sources (2)

Latest Comments

farseerfc commented on 2016-06-13 10:52

@jsn sorry for no reply for a long time. I have pushed a new PKGBUILD to remove SSLv3.

tkh23 commented on 2016-03-29 00:30

How does one use your patch?

jsn commented on 2016-03-26 09:55

Fails to build for me now because some recent openssl update removed some functions that are referenced in ruby1.8 openssl module. Here's a patch that fixes that for me:
diff -ruN x/ruby1.8/PKGBUILD ruby1.8/PKGBUILD
--- x/ruby1.8/PKGBUILD 2015-08-10 13:20:46.000000000 +0300
+++ ruby1.8/PKGBUILD 2016-03-17 01:17:57.416142512 +0300
@@ -10,12 +10,11 @@
url='http://www.ruby-lang.org/en/'
provides=('ruby=1.8.7')
options=('!emptydirs')
makedepends=('tk')
depends=('gdbm' 'db' 'openssl' 'zlib' 'readline')
optdepends=('tk: for Ruby/TK')

-source=("ftp://ftp.ruby-lang.org/pub/ruby/1.8/$_pkgname-$_pkgver.tar.bz2" "fix.patch")
-md5sums=('83c92e2b57ea08f31187060098b2200b' 'f560402603b3dca36d4a6abfcb180cb9')
+source=("ftp://ftp.ruby-lang.org/pub/ruby/1.8/$_pkgname-$_pkgver.tar.bz2" "fix.patch" "ssl.patch")
+md5sums=('83c92e2b57ea08f31187060098b2200b' 'f560402603b3dca36d4a6abfcb180cb9' '293e4f54874185908775890bfa3aac8b')

_optimal_make_jobs() {
if [ -r /proc/cpuinfo ]; then
@@ -56,6 +55,7 @@

msg 'Applying patch...'
patch -Np1 < ${srcdir}/fix.patch
+ patch -Np1 < ${srcdir}/ssl.patch

msg 'Running make...'
make -j$(_optimal_make_jobs)
diff -ruN x/ruby1.8/ssl.patch ruby1.8/ssl.patch
--- x/ruby1.8/ssl.patch 1970-01-01 03:00:00.000000000 +0300
+++ ruby1.8/ssl.patch 2016-03-17 01:17:57.416142512 +0300
@@ -0,0 +1,17 @@
+--- ruby-1.8.7-p374/ext/openssl/ossl_ssl.c.old 2016-03-17 01:12:47.181230073 +0300
++++ ruby-1.8.7-p374/ext/openssl/ossl_ssl.c 2016-03-17 01:12:06.176806790 +0300
+@@ -107,12 +107,14 @@
+ OSSL_SSL_METHOD_ENTRY(SSLv2_server),
+ OSSL_SSL_METHOD_ENTRY(SSLv2_client),
+ #endif
++#if 0
+ OSSL_SSL_METHOD_ENTRY(SSLv3),
+ OSSL_SSL_METHOD_ENTRY(SSLv3_server),
+ OSSL_SSL_METHOD_ENTRY(SSLv3_client),
+ OSSL_SSL_METHOD_ENTRY(SSLv23),
+ OSSL_SSL_METHOD_ENTRY(SSLv23_server),
+ OSSL_SSL_METHOD_ENTRY(SSLv23_client),
++#endif
+ #undef OSSL_SSL_METHOD_ENTRY
+ };
+