mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Fix patching ruby
This commit is contained in:
parent
255e47d887
commit
d9530f3124
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue