Skip to content

Commit df55e4b

Browse files
committed
hm
1 parent 3cd038b commit df55e4b

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

Dockerfile.template.patch

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/Dockerfile.template b/Dockerfile.template
2-
index 9f9a685..5134250 100644
2+
index c402e73..b5b520e 100644
33
--- a/Dockerfile.template
44
+++ b/Dockerfile.template
5-
@@ -36,7 +36,8 @@ ENV RUBY_DOWNLOAD_SHA256 {{ .sha256.xz }}
5+
@@ -42,7 +42,8 @@ ENV RUBY_DOWNLOAD_SHA256 {{ .sha256.xz }}
66

77
# some of ruby's build scripts are written in ruby
88
# we purge system ruby later to make sure our final image uses what we just built
@@ -12,23 +12,23 @@ index 9f9a685..5134250 100644
1212
\
1313
{{ if is_alpine then ( -}}
1414
apk add --no-cache --virtual .ruby-builddeps \
15-
@@ -52,6 +53,7 @@ RUN set -eux; \
15+
@@ -58,6 +59,7 @@ RUN set -eux; \
1616
dpkg-dev dpkg \
1717
g++ \
1818
gcc \
1919
+ git \
2020
gdbm-dev \
2121
glib-dev \
2222
gmp-dev \
23-
@@ -93,6 +95,7 @@ RUN set -eux; \
23+
@@ -99,6 +101,7 @@ RUN set -eux; \
2424
bzip2 \
2525
g++ \
2626
gcc \
2727
+ git \
2828
libbz2-dev \
2929
libffi-dev \
3030
libgdbm-compat-dev \
31-
@@ -181,12 +184,10 @@ RUN set -eux; \
31+
@@ -187,12 +190,10 @@ RUN set -eux; \
3232
cargo --version; \
3333
fi; \
3434
\
@@ -41,16 +41,31 @@ index 9f9a685..5134250 100644
4141
\
4242
cd /usr/src/ruby; \
4343
\
44-
@@ -194,7 +195,7 @@ RUN set -eux; \
44+
@@ -200,7 +201,22 @@ RUN set -eux; \
4545
# https://github.com/docker-library/ruby/issues/196
4646
# https://bugs.ruby-lang.org/issues/14387#note-13 (patch source)
4747
# https://bugs.ruby-lang.org/issues/14387#note-16 ("Therefore ncopa's patch looks good for me in general." -- only breaks glibc which doesn't matter here)
4848
- wget -O 'thread-stack-fix.patch' 'https://bugs.ruby-lang.org/attachments/download/7081/0001-thread_pthread.c-make-get_main_stack-portable-on-lin.patch'; \
4949
+ wget -O 'thread-stack-fix.patch' 'https://raw.githubusercontent.com/docker-ruby-nightly/ruby/master/thread-stack-fix.patch'; \
50+
+ wget -q -O - https://github.com/ruby/ruby/commit/db52e98520349e2bfcd471a0c2f96d696a4f7498.patch | patch -p1 -R; \
51+
+ wget -q -O - https://github.com/ruby/ruby/commit/54df6cddd79f0b04cfc3b2f33b9bb79897a4c78a.patch | patch -p1 -R; \
52+
+ wget -q -O - https://github.com/ruby/ruby/commit/250fdd13c7a2e80bb4c58469dfc732e60a3a8b54.patch | patch -p1 -R; \
53+
+ wget -q -O - https://github.com/ruby/ruby/commit/bcbc6ed57112e1e4ad76fb2db6c9c7b35685b890.patch | patch -p1 -R; \
54+
+ wget -q -O - https://github.com/ruby/ruby/commit/0b4b30af9e09be12960ad1e9aff89b195b7c3734.patch | patch -p1 -R; \
55+
+ wget -q -O - https://github.com/ruby/ruby/commit/9cc71cb9093caa7ee471def8aa8f0de596e366cf.patch | patch -p1 -R; \
56+
+ wget -q -O - https://github.com/ruby/ruby/commit/a7d4a9df03f8b99432f7b1d58c3cd04dc639965c.patch | patch -p1 -R; \
57+
+ wget -q -O - https://github.com/ruby/ruby/commit/50e987bdca0f160412b27b97c8ef49d28b8c515e.patch | patch -p1 -R; \
58+
+ wget -q -O - https://github.com/ruby/ruby/commit/0584f9fb0951bee3ea2645bdba0af56a2b320ed3.patch | patch -p1 -R; \
59+
+ wget -q -O - https://github.com/ruby/ruby/commit/050c00141c7e8fdded5355b4c31e971ae21403d0.patch | patch -p1 -R; \
60+
+ wget -q -O - https://github.com/ruby/ruby/commit/4c1120b5fd67cdf15b8c790849e068851369852f.patch | patch -p1 -R; \
61+
+ wget -q -O - https://github.com/ruby/ruby/commit/66fdb15abf47df006a7cd29f34f30bec516f37aa.patch | patch -p1 -R; \
62+
+ wget -q -O - https://github.com/ruby/ruby/commit/9be01bc70dca0e727fe1f518ebae1f6f72405b84.patch | patch -p1 -R; \
63+
+ wget -q -O - https://github.com/ruby/ruby/commit/3c100019a4a1b0ef66db76ec3b14f63eac51dd4d.patch | patch -p1 -R; \
64+
+ wget -q -O - https://github.com/ruby/ruby/commit/91619f0230c0e5a95c796c1bd4f784c151e15614.patch | patch -p1 -R; \
5065
echo '3ab628a51d92fdf0d2b5835e93564857aea73e0c1de00313864a94a6255cb645 *thread-stack-fix.patch' | sha256sum --check --strict; \
5166
patch -p1 -i thread-stack-fix.patch; \
5267
rm thread-stack-fix.patch; \
53-
@@ -203,6 +204,7 @@ RUN set -eux; \
68+
@@ -209,6 +225,7 @@ RUN set -eux; \
5469
autoconf; \
5570
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
5671
./configure \

0 commit comments

Comments
 (0)