From d9530f312409f8c27e47202857db16db91e3d7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Mon, 1 Feb 2021 18:31:37 +0100 Subject: [PATCH] Fix patching ruby --- scripts/install-ruby | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/install-ruby b/scripts/install-ruby index 6d5280f..178bc25 100755 --- a/scripts/install-ruby +++ b/scripts/install-ruby @@ -30,7 +30,14 @@ rm ruby.tar.gz cd /usr/src/ruby # Apply patches -find "/patches/ruby/$RUBY_VERSION" -name '*.patch' | xargs -rpn1 patch -p1 -i +if [[ -d "/patches/ruby/$RUBY_VERSION" ]]; then + for i in "/patches/ruby/$RUBY_VERSION"/*.patch; do + echo "$i..." + patch -p1 -i "$i" + done +fi + +# Compile ./configure --enable-shared --disable-install-doc --disable-install-rdoc --disable-install-capi make install -j $(nproc)