Skip to content

Commit 7548777

Browse files
committed
bump rubies:
- 3.4.0 → 3.4.1 - 3.3.5 → 3.3.5 [^1] - 3.2.0 → 3.2.6 - 3.1.0 → 3.1.2 [^2] - 3.0.0 → 3.0.7 - 2.7.0 → 2.7.8 - 2.6.0 → 2.6.10 - 2.5.0 → 2.5.9 - 2.4.0 → 2.4.10 And update the default rbenv from 3.1.3 to 3.1.6. Note that we also need to set the OSXCROSS_PKG_CONFIG_USE_NATIVE_VARIABLES environment variable because I started running into errors during configuration with the 3.0.x series. [^1]: unchanged [^2]: not the latest 3.1.6 because ruby/ruby#6193 broke cross-compilation builds until it was fixed in 3.2.0.rc2 by ruby/ruby#6944 and ruby/ruby#6959 which weren't backported (see https://bugs.ruby-lang.org/issues/19239)
1 parent cc37afb commit 7548777

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

Dockerfile.mri.erb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get -y update && \
1515
##
1616
RUN groupadd -r rubyuser && useradd -r -g rubyuser -G sudo -p "" --create-home rubyuser
1717

18-
ENV RBENV_ROOT=/usr/local/rbenv RBENV_RUBIES="2.5.9 3.1.3"
18+
ENV RBENV_ROOT=/usr/local/rbenv RBENV_RUBIES="2.5.9 3.1.6"
1919

2020
# chown after running `rbenv init` because that command creates some subdirectories
2121
RUN git clone https://github.com/rbenv/rbenv.git ${RBENV_ROOT} && \
@@ -109,19 +109,19 @@ RUN sudo mkdir -p /usr/local/rake-compiler && \
109109
#
110110
xrubies_build_plan = if platform =~ /x64-mingw-ucrt/
111111
[
112-
# Rubyinstaller-3.1.0+ is platform x64-mingw-ucrt
113-
["3.4.0:3.3.5:3.2.0:3.1.0", "3.1.3"],
112+
# Rubyinstaller-3.1+ is platform x64-mingw-ucrt
113+
["3.4.1:3.3.5:3.2.6:3.1.2", "3.1.6"],
114114
]
115115
elsif platform =~ /x64-mingw32/
116116
[
117-
# Rubyinstaller prior to 3.1.0 is platform x64-mingw32
118-
["2.6.0:2.5.0:2.4.0", "2.5.9"],
119-
["3.0.0:2.7.0", "3.1.3"],
117+
# Rubyinstaller prior to 3.1 is platform x64-mingw32
118+
["2.6.10:2.5.9:2.4.10", "2.5.9"],
119+
["3.0.7:2.7.8", "3.1.6"],
120120
]
121121
else
122122
[
123-
["2.6.0:2.5.0:2.4.0", "2.5.9"],
124-
["3.4.0:3.3.5:3.2.0:3.1.0:3.0.0:2.7.0", "3.1.3"],
123+
["2.6.10:2.5.9:2.4.10", "2.5.9"],
124+
["3.4.1:3.3.5:3.2.6:3.1.2:3.0.7:2.7.8", "3.1.6"],
125125
]
126126
end
127127

@@ -215,8 +215,8 @@ RUN echo 'source /etc/profile.d/rcd-env.sh' >> /etc/rubybashrc
215215
# Install sudoers configuration
216216
COPY build/sudoers /etc/sudoers.d/rake-compiler-dock
217217

218-
RUN bash -c "rbenv global 3.1.3"
218+
RUN bash -c "rbenv global 3.1.6"
219219

220-
ENV RUBY_CC_VERSION=3.4.0:3.3.5:3.2.0:3.1.0:3.0.0:2.7.0:2.6.0:2.5.0:2.4.0
220+
ENV RUBY_CC_VERSION=3.4.1:3.3.5:3.2.6:3.1.2:3.0.7:2.7.8:2.6.10:2.5.9:2.4.10
221221

222222
CMD bash

build/mk_osxcross.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ rm -rf *~ build tarballs/*
2727
echo "export PATH=/opt/osxcross/target/bin:\$PATH" >> /etc/rubybashrc
2828
echo "export MACOSX_DEPLOYMENT_TARGET=10.13" >> /etc/rubybashrc
2929
echo "export OSXCROSS_MP_INC=1" >> /etc/rubybashrc
30+
echo "export OSXCROSS_PKG_CONFIG_USE_NATIVE_VARIABLES=1" >> /etc/rubybashrc
31+
3032

3133
# Add links to build tools without target version kind of:
3234
# arm64-apple-darwin-clang => arm64-apple-darwin20.1-clang

0 commit comments

Comments
 (0)