You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- user `rvm` no longer exists, replaced by `rubyuser`
- `rvm` has been replaced by `rbenv` and `ruby-build`
- no longer applying the sendfile patches to Ruby
- no longer updating gems belonging to the bootstrap rubies
# See also https://github.com/rake-compiler/rake-compiler-dock/issues/13
182
169
RUN find /usr/local/rake-compiler/ruby/*linux*/ -name libruby.so | xargs rm
183
170
RUN find /usr/local/rake-compiler/ruby/*linux*/ -name libruby-static.a | while read f ; do cp $f `echo $f | sed s/-static//` ; done
184
171
RUN find /usr/local/rake-compiler/ruby/*linux*/ -name libruby.a | while read f ; do ar t $f | xargs ar d $f ; done
185
-
RUN find /usr/local/rake-compiler/ruby/*linux*/ -name mkmf.rb | while read f ; do sed -i ':a;N;$!ba;s/TRY_LINK = [^\n]*\n[^\n]*\n[^\n]*LOCAL_LIBS)/& -lruby-static -lpthread -lrt -ldl <%ifplatform=~/x86/%> -lcrypt <%end%>/' $f ; done
172
+
RUN find /usr/local/rake-compiler/ruby/*linux*/ -name mkmf.rb | while read f ; do sed -i ':a;N;$!ba;s/TRY_LINK = [^\n]*\n[^\n]*\n[^\n]*LOCAL_LIBS)/& -lruby-static -lpthread -lrt -ldl <%ifplatform =~ /x86/%> -lcrypt <%end%>/' $f ; done
186
173
<%end%>
187
174
188
-
<%ifplatform=~/mingw/%>
175
+
<%ifplatform =~ /mingw/%>
189
176
# RubyInstaller doesn't install libgcc -> link it static.
190
177
RUN find /usr/local/rake-compiler/ruby/*mingw*/ -name rbconfig.rb | while read f ; do sed -i 's/."LDFLAGS". = "/&-static-libgcc /' $f ; done
191
178
# Raise Windows-API to Vista (affects ruby <2.6only)
@@ -197,7 +184,7 @@ RUN find /usr/local/rake-compiler/ruby -name lib*-ruby*.dll.a | while read f ; d
197
184
# ruby-2.5 links to libcrypt, which isn't necessary for extensions
198
185
RUN find /usr/local/rake-compiler/ruby -name rbconfig.rb | while read f ; do sed -i 's/-lcrypt//' $f ; done
199
186
200
-
<%ifplatform=~/darwin/%>
187
+
<%ifplatform =~ /darwin/%>
201
188
# ruby-3.2+ on darwin links with `-bundle_loader`,
202
189
# - see https://github.com/rake-compiler/rake-compiler-dock/issues/87
203
190
# - note that we do this for "3.[2-9].0" to match rubies 3.2 and later
@@ -206,15 +193,13 @@ RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby/3.[2-9].0* -name rbconfig.rb
206
193
while read f ; do sed -i 's/\["EXTDLDFLAGS"\] = "/&-Wl,-flat_namespace /' $f ; done
207
194
<%end%>
208
195
196
+
209
197
##
210
198
## Final adjustments
211
199
##
212
200
USER root
213
201
214
-
# Fix paths in rake-compiler/config.yml
215
-
RUN sed -i -- "s:/root/.rake-compiler:/usr/local/rake-compiler:g" /usr/local/rake-compiler/config.yml
216
-
217
-
<%ifplatform=~/mingw/%>
202
+
<%ifplatform =~ /mingw/%>
218
203
# Install wrappers for strip commands as a workaround for "Protocolerror" in boot2docker.
219
204
COPY build/strip_wrapper_vbox /root/
220
205
RUN mv /usr/bin/<%=target%>-strip /usr/bin/<%=target%>-strip.bin && \
@@ -247,7 +232,7 @@ RUN cd /usr/include/ && \
247
232
patch -p1 < /root/math_h.patch
248
233
<%end%>
249
234
250
-
<%ifplatform=~/arm64-darwin/%>
235
+
<%ifplatform =~ /arm64-darwin/%>
251
236
# Add a arm64 darwin target as alternative to aarch64
252
237
RUN grep -E 'rbconfig-aarch64-darwin' /usr/local/rake-compiler/config.yml | sed 's/rbconfig-[a-z0-9_]*-darwin/rbconfig-<%=platform%>/' >> /usr/local/rake-compiler/config.yml
253
238
<%end%>
@@ -259,15 +244,12 @@ RUN gcc $HOME/sigfw.c -o /usr/bin/sigfw
259
244
# Install user mapper
260
245
COPY build/runas /usr/bin/
261
246
COPY build/rcd-env.sh /etc/profile.d/
262
-
RUN echo "source /etc/profile.d/rcd-env.sh">> /etc/rubybashrc
247
+
RUN echo 'source /etc/profile.d/rcd-env.sh'>> /etc/rubybashrc
0 commit comments