Apply Alpine patches for Ruby images
This commit is contained in:
parent
5c1130eafe
commit
1c140bb593
@ -15,6 +15,8 @@ RUN EOF
|
|||||||
# Compile and install Ruby
|
# Compile and install Ruby
|
||||||
cd /usr/src/ruby
|
cd /usr/src/ruby
|
||||||
autoconf
|
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
|
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
|
||||||
make -j $(getconf _NPROCESSORS_ONLN)
|
make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
make install
|
make install
|
||||||
|
@ -14,7 +14,13 @@ RUN EOF
|
|||||||
|
|
||||||
# Compile and install Ruby
|
# Compile and install Ruby
|
||||||
cd /usr/src/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
|
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
|
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
|
||||||
make -j $(getconf _NPROCESSORS_ONLN)
|
make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
make install
|
make install
|
||||||
|
@ -15,6 +15,8 @@ RUN EOF
|
|||||||
# Compile and install Ruby
|
# Compile and install Ruby
|
||||||
cd /usr/src/ruby
|
cd /usr/src/ruby
|
||||||
autoconf
|
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
|
./configure --build=x86_64-linux-musl --disable-install-doc --enable-shared
|
||||||
make -j $(getconf _NPROCESSORS_ONLN)
|
make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user