mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Consolidated Ruby patches using major and minor versions
Previously we had to remember to apply specific patches for each version of Ruby, and it was easy to forget. Let's just simplify this by applying patches for the major and minor versions (e.g. 2.7, 3.0, etc.).
This commit is contained in:
parent
f0b78cb928
commit
88901ea9ff
15 changed files with 4 additions and 1500 deletions
|
|
@ -47,11 +47,12 @@ function build_common() {
|
|||
cd /usr/src/ruby
|
||||
|
||||
# Apply patches
|
||||
if [[ -d "/patches/ruby/$RUBY_VERSION" ]]; then
|
||||
for i in "/patches/ruby/$RUBY_VERSION"/*.patch; do
|
||||
ruby_version=`cut -d '.' -f 1,2 <<< $RUBY_VERSION`
|
||||
if [[ -d "/patches/ruby/$ruby_version" ]]; then
|
||||
for i in "/patches/ruby/$ruby_version"/*.patch; do
|
||||
echo "$i..."
|
||||
patch -p1 -i "$i"
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
# Compile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue