This commit is contained in:
Tim Lianov 2025-01-09 20:31:19 +04:00
parent 6d75e0f3eb
commit 4e18bbc1a2

View File

@ -57,29 +57,29 @@ RUN set -ex \
RUN wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.xz" \
# && echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum -c - \
# \
# && mkdir -p /usr/src/ruby \
# && tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
# && rm ruby.tar.xz \
# \
# && cd /usr/src/ruby \
# \
\
&& mkdir -p /usr/src/ruby \
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
&& rm ruby.tar.xz \
\
&& cd /usr/src/ruby \
\
# # hack in "ENABLE_PATH_CHECK" disabling to suppress:
# # warning: Insecure world writable dir
# && { \
# echo '#define ENABLE_PATH_CHECK 0'; \
# echo; \
# cat file.c; \
# } > file.c.new \
# && mv file.c.new file.c \
# \
# && autoconf \
# # the configure script does not detect isnan/isinf as macros
# && ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
# ./configure --disable-install-doc --enable-shared \
# && make -j"$(getconf _NPROCESSORS_ONLN)" \
# && make install \
# \
&& { \
echo '#define ENABLE_PATH_CHECK 0'; \
echo; \
cat file.c; \
} > file.c.new \
&& mv file.c.new file.c \
\
&& autoconf \
# the configure script does not detect isnan/isinf as macros
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
./configure --disable-install-doc --enable-shared \
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
&& make install \
\
# && runDeps="$( \
# scanelf --needed --nobanner --recursive /usr/local \
# | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \