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: 2
Popularity: 0.000047
First Submitted: 2015-08-10 10:19
Last Updated: 2016-06-13 10:51

Required by (1000)

Sources (2)

Latest Comments

tkh23 commented on 2018-03-14 02:33

Does not build :(

In file included from ossl.h:57:0, from ossl_pkcs12.c:6: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl_pkcs7.c:11: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl_pkey_rsa.c:13: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl_x509req.c:11: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl_hmac.c:13: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl_x509revoked.c:11: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:57:0, from ossl.c:11: /usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software." ^~~~~ In file included from ossl.h:205:0, from ossl_pkcs7.c:11: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs7.c:11: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ In file included from ossl.h:205:0, from ossl_hmac.c:13: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_hmac.c:13: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ In file included from ossl.h:31:0, from ossl_hmac.c:13: ossl_hmac.c: In function ‘ossl_hmac_alloc’: ossl_hmac.c:16:35: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ obj = Data_Make_Struct(klass, HMAC_CTX, 0, ossl_hmac_free, ctx) ^ ../../ruby.h:512:43: note: in definition of macro ‘ALLOC’ #define ALLOC(type) (type)xmalloc(sizeof(type)) ^~~~ ossl_hmac.c:16:11: note: in expansion of macro ‘Data_Make_Struct’ obj = Data_Make_Struct(klass, HMAC_CTX, 0, ossl_hmac_free, ctx) ^~~~~~~~~~~~~~~~ ossl_hmac.c:54:5: note: in expansion of macro ‘MakeHMAC’ MakeHMAC(obj, klass, ctx); ^~~~~~~~ ossl_hmac.c:16:35: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ obj = Data_Make_Struct(klass, HMAC_CTX, 0, ossl_hmac_free, ctx) ^ ../../ruby.h:431:28: note: in definition of macro ‘Data_Make_Struct’ memset(sval, 0, sizeof(type)),\ ^~~~ ossl_hmac.c:54:5: note: in expansion of macro ‘MakeHMAC’ MakeHMAC(obj, klass, ctx); ^~~~~~~~ ossl_hmac.c: In function ‘ossl_hmac_initialize’: ossl_hmac.c:73:5: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations] HMAC_Init_ex(ctx, RSTRING_PTR(key), RSTRING_LEN(key), ^~~~~~~~~~~~ In file included from /usr/include/openssl/hmac.h:13:0, from /usr/include/openssl/ssl.h:56, from ossl.h:59, from ossl_hmac.c:13: /usr/include/openssl/hmac.h:28:1: note: declared here DEPRECATEDIN_1_1_0(owur int HMAC_Init(HMAC_CTX ctx, const void key, int len, ^ ossl_hmac.c: In function ‘hmac_final’: ossl_hmac.c:114:14: error: storage size of ‘final’ isn’t known HMAC_CTX final; ^~~~~ ossl_hmac.c: In function ‘ossl_hmac_reset’: ossl_hmac.c:182:5: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations] HMAC_Init_ex(ctx, NULL, 0, NULL, NULL); ^~~~~~~~~~~~ In file included from /usr/include/openssl/hmac.h:13:0, from /usr/include/openssl/ssl.h:56, from ossl.h:59, from ossl_hmac.c:13: /usr/include/openssl/hmac.h:28:1: note: declared here DEPRECATEDIN_1_1_0(owur int HMAC_Init(HMAC_CTX ctx, const void key, int len, ^ In file included from ossl.h:205:0, from ossl_pkcs7.c:11: ossl_pkcs7.c: In function ‘ossl_pkcs7si_new’: openssl_missing.h:58:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_PKCS7_SIGNER_INFO, (char )si) ^ ossl_pkcs7.c:89:20: note: in expansion of macro ‘PKCS7_SIGNER_INFO_dup’ pkcs7 = p7si ? PKCS7_SIGNER_INFO_dup(p7si) : PKCS7_SIGNER_INFO_new(); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs7.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * ()(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ In file included from ossl.h:205:0, from ossl_pkcs7.c:11: ossl_pkcs7.c: In function ‘DupPKCS7SignerPtr’: openssl_missing.h:58:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_PKCS7_SIGNER_INFO, (char )si) ^ ossl_pkcs7.c:102:19: note: in expansion of macro ‘PKCS7_SIGNER_INFO_dup’ if (!(pkcs7 = PKCS7_SIGNER_INFO_dup(p7si))) { ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs7.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * ()(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ In file included from ossl.h:205:0, from ossl_pkcs7.c:11: ossl_pkcs7.c: In function ‘ossl_pkcs7ri_new’: openssl_missing.h:63:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_PKCS7_RECIP_INFO, (char )ri) ^ ossl_pkcs7.c:115:20: note: in expansion of macro ‘PKCS7_RECIP_INFO_dup’ pkcs7 = p7ri ? PKCS7_RECIP_INFO_dup(p7ri) : PKCS7_RECIP_INFO_new(); ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs7.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * ()(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ In file included from ossl.h:205:0, from ossl_pkcs7.c:11: ossl_pkcs7.c: In function ‘DupPKCS7RecipientPtr’: openssl_missing.h:63:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_PKCS7_RECIP_INFO, (char )ri) ^ ossl_pkcs7.c:128:19: note: in expansion of macro ‘PKCS7_RECIP_INFO_dup’ if (!(pkcs7 = PKCS7_RECIP_INFO_dup(p7ri))) { ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs7.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * ()(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ make[1]: [Makefile:197: ossl_hmac.o] Error 1 make[1]: Waiting for unfinished jobs.... make[1]: [Makefile:197: ossl_pkcs7.o] Error 1 In file included from ossl.h:205:0, from ossl_pkey_rsa.c:13: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkey_rsa.c:13: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ ossl_pkey_rsa.c: In function ‘ossl_rsa_new’: ossl_pkey_rsa.c:64:24: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’ if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { ^~ ossl_pkey_rsa.c: In function ‘rsa_generate’: ossl_pkey_rsa.c:82:5: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations] return RSA_generate_key(size, exp, ^~~~~~ In file included from /usr/include/openssl/rsa.h:13:0, from /usr/include/openssl/x509.h:31, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkey_rsa.c:13: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA RSA_generate_key(int bits, unsigned long e, void ^ In file included from ossl.h:205:0, from ossl_x509req.c:11: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_x509req.c:11: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ ossl_x509req.c: In function ‘ossl_x509req_get_signature_algorithm’: ossl_x509req.c:295:34: error: dereferencing pointer to incomplete type ‘X509_REQ {aka struct X509_req_st}’ if (!i2a_ASN1_OBJECT(out, req->sig_alg->algorithm)) { ^~ make[1]: [Makefile:197: ossl_x509req.o] Error 1 make[1]: [Makefile:197: ossl_pkey_rsa.o] Error 1 In file included from ossl.h:205:0, from ossl_x509revoked.c:11: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from ossl.h:205:0, from ossl_pkcs12.c:6: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_x509revoked.c:11: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_pkcs12.c:6: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ In file included from ossl.h:205:0, from ossl_x509revoked.c:11: ossl_x509revoked.c: In function ‘ossl_x509revoked_new’: openssl_missing.h:53:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_X509_REVOKED, (char )rev) ^ ossl_x509revoked.c:48:8: note: in expansion of macro ‘X509_REVOKED_dup’ new = X509_REVOKED_dup(rev); ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_x509revoked.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * (*)(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ In file included from ossl.h:205:0, from ossl_x509revoked.c:11: ossl_x509revoked.c: In function ‘DupX509RevokedPtr’: openssl_missing.h:53:2: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type [-Wincompatible-pointer-types] (char ()())d2i_X509_REVOKED, (char )rev) ^ ossl_x509revoked.c:64:17: note: in expansion of macro ‘X509_REVOKED_dup’ if (!(new = X509_REVOKED_dup(rev))) { ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl_x509revoked.c:11: /usr/include/openssl/asn1.h:681:7: note: expected ‘void * (*)(void , const unsigned char , long int)’ but argument is of type ‘char * ()()’ void ASN1_dup(i2d_of_void i2d, d2i_of_void d2i, void x); ^~~~~~~~ ossl_x509revoked.c: In function ‘ossl_x509revoked_get_serial’: ossl_x509revoked.c:102:34: error: dereferencing pointer to incomplete type ‘X509_REVOKED {aka struct x509_revoked_st}’ return asn1integer_to_num(rev->serialNumber); ^~ In file included from ossl.h:205:0, from ossl.c:11: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0 EVP_MD_CTX EVP_MD_CTX_create(void); ^ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/x509v3.h:14, from ossl.h:58, from ossl.c:11: openssl_missing.h:83:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_init(EVP_MD_CTX ctx); ^ openssl_missing.h:91:6: error: expected declaration specifiers or ‘...’ before ‘(’ token void EVP_MD_CTX_destroy(EVP_MD_CTX ctx); ^ ossl.c: In function ‘ossl_verify_cb’: ossl.c:209:42: error: dereferencing pointer to incomplete type ‘X509_STORE_CTX {aka struct x509_store_ctx_st}’ proc = (VALUE)X509_STORE_get_ex_data(ctx->ctx, ossl_verify_cb_idx); ^~ make[1]: [Makefile:197: ossl_pkcs12.o] Error 1 make[1]: [Makefile:197: ossl_x509revoked.o] Error 1 make[1]: [Makefile:197: ossl.o] Error 1 make[1]: Leaving directory '/opt/PKGBUILDS/ruby1.8/src/ruby-1.8.7-p374/ext/openssl' make: [Makefile:293: all] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

SolarAquarion commented on 2018-02-27 17:11

Can you add http://security.debian.org/debian-security/pool/updates/main/r/ruby1.8/ruby1.8_1.8.7.358-7.1+deb7u5.debian.tar.xz and do the patches

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
+ };
+