Apply Alpine patches for Ruby images

This commit is contained in:
Disassembler 2020-10-24 22:08:12 +02:00
parent 5c1130eafe
commit 1c140bb593
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,8 @@ RUN EOF
# Compile and install Ruby
cd /usr/src/ruby
autoconf
# Hackfix isnan/isinf macros
export ac_cv_func_isnan=yes ac_cv_func_isinf=yes
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
make -j $(getconf _NPROCESSORS_ONLN)
make install

View File

@ -14,7 +14,13 @@ RUN EOF
# Compile and install Ruby
cd /usr/src/ruby
# Hackfix thread stack size
# https://github.com/docker-library/ruby/issues/196, https://bugs.ruby-lang.org/issues/14387
wget 'https://bugs.ruby-lang.org/attachments/download/7081/0001-thread_pthread.c-make-get_main_stack-portable-on-lin.patch' -O thread-stack-fix.patch
patch -p1 -i thread-stack-fix.patch
autoconf
# Hackfix isnan/isinf macros
export ac_cv_func_isnan=yes ac_cv_func_isinf=yes
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
make -j $(getconf _NPROCESSORS_ONLN)
make install

View File

@ -15,6 +15,8 @@ RUN EOF
# Compile and install Ruby
cd /usr/src/ruby
autoconf
# Hackfix isnan/isinf macros
export ac_cv_func_isnan=yes ac_cv_func_isinf=yes
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
make -j $(getconf _NPROCESSORS_ONLN)
make install