ruby: update to 3.0.2.

This commit is contained in:
Leah Neukirchen 2021-07-14 20:07:05 +02:00
parent 6b073dbce5
commit e2fe59f345
4 changed files with 5 additions and 49 deletions

View file

@ -434,7 +434,7 @@ libKScreenLocker.so.5 kscreenlocker-5.8.4_1
libparted.so.2 libparted-3.1_1
libparted-fs-resize.so.0 libparted-3.1_1
libntfs-3g.so.88 ntfs-3g-2017.3.23_1
libruby.so.2.7 ruby-2.7.2_3
libruby.so.3.0 ruby-3.0.2_1
libprocessui.so.9 libksysguard-5.18.90_1
libksignalplotter.so.9 libksysguard-5.18.90_1
libksgrd.so.9 libksysguard-5.18.90_1

View file

@ -1,13 +0,0 @@
$OpenBSD: patch-ext_openssl_extconf_rb,v 1.1 2018/02/23 09:54:25 sthen Exp $
Index: ext/openssl/extconf.rb
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -134,6 +134,7 @@ have_func("HMAC_CTX_free")
OpenSSL.check_func("RAND_pseudo_bytes", "openssl/rand.h") # deprecated
have_func("X509_STORE_get_ex_data")
have_func("X509_STORE_set_ex_data")
+have_func("X509_STORE_get_ex_new_index")
have_func("X509_CRL_get0_signature")
have_func("X509_REQ_get0_signature")
have_func("X509_REVOKED_get0_serialNumber")

View file

@ -1,31 +0,0 @@
$OpenBSD: patch-ext_openssl_openssl_missing_h,v 1.4 2018/02/23 09:54:25 sthen Exp $
Index: ext/openssl/openssl_missing.h
--- a/ext/openssl/openssl_missing.h
+++ b/ext/openssl/openssl_missing.h
@@ -72,6 +72,9 @@ void ossl_HMAC_CTX_free(HMAC_CTX *);
#if !defined(HAVE_X509_STORE_SET_EX_DATA)
# define X509_STORE_set_ex_data(x, idx, data) \
CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))
+#endif
+
+#if !defined(HAVE_X509_STORE_GET_EX_NEW_INDEX)
# define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
(newf), (dupf), (freef))
@@ -145,6 +148,7 @@ void ossl_X509_REQ_get0_signature(const X509_REQ *, co
#endif
#if !defined(HAVE_OPAQUE_OPENSSL)
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
#define IMPL_PKEY_GETTER(_type, _name) \
static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \
return pkey->pkey._name; }
@@ -196,6 +200,7 @@ IMPL_PKEY_GETTER(EC_KEY, ec)
#undef IMPL_PKEY_GETTER
#undef IMPL_KEY_ACCESSOR2
#undef IMPL_KEY_ACCESSOR3
+#endif
#endif /* HAVE_OPAQUE_OPENSSL */
#if !defined(EVP_CTRL_AEAD_GET_TAG)

View file

@ -1,8 +1,8 @@
# Template file for 'ruby'
_ruby_abiver=2.7.0
_ruby_abiver=3.0.0
pkgname=ruby
version=2.7.4
version=3.0.2
revision=1
build_style=gnu-configure
configure_args="--enable-shared --disable-rpath
@ -15,8 +15,8 @@ short_desc="Ruby programming language"
homepage="http://www.ruby-lang.org/en/"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Ruby, BSD-2-Clause"
distfiles="https://cache.ruby-lang.org/pub/ruby/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=bffa8aec9da392eda98f1c561071bb6e71d217d541c617fc6e3282d79f4e7d48
distfiles="https://cache.ruby-lang.org/pub/ruby/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=570e7773100f625599575f363831166d91d49a1ab97d3ab6495af44774155c40
case "$XBPS_TARGET_MACHINE" in
*-musl) # Broken on the builders but successfully built locally