# HG changeset patch # User Stanislas Leduc # Date 1718389143 0 # Node ID 04e93fb7932a13c7a238f71340d002769e426e6e # Parent 5f3c47fa6c89a0f427d4ef77cbded2298437822f Patch ruby to be use openssl 3.x diff -r 5f3c47fa6c89 -r 04e93fb7932a ruby/receipt --- a/ruby/receipt Fri Jun 14 14:46:05 2024 +0000 +++ b/ruby/receipt Fri Jun 14 18:19:03 2024 +0000 @@ -42,7 +42,21 @@ # Rules to configure and make the package. compile_rules() { - #patch -Np1 < $stuff/openssl-1.0.patch + # thanks magiruuvelvet for workaround to use ruby 2.x with openssl 3.x + # see https://github.com/magiruuvelvet/alpine-ruby-2.7-openssl3 + patch -Np1 < $stuff/openssl-3.0.patch + + mkdir build && cd build + wget https://github.com/ruby/openssl/archive/refs/tags/v3.2.0.tar.gz + tar xf v3.2.0.tar.gz + cd .. + + rm -rf ext/openssl test/openssl + mv build/openssl-3.2.0/ext/openssl ext + mv build/openssl-3.2.0/lib ext/openssl + mv build/openssl-3.2.0/History.md ext/openssl + mv build/openssl-3.2.0/openssl.gemspec ext/openssl + mv build/openssl-3.2.0/test/openssl test ./configure \ --prefix=/usr \