From 70f0ca64eec18935ab11cc71c44d7707f2b2ebcf Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:19:40 +0100 Subject: [PATCH 1/2] Skip alpine stack fix on ruby 4.1 The original issue got closed but I reported again in https://bugs.ruby-lang.org/issues/20452. Now, this is finally fixed in ruby itself. I build ruby and confirmed that it works without the patch applied. No change for now, the current rc still needs the patch. --- Dockerfile.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.template b/Dockerfile.template index 3f1eeebdf..a9ed101a7 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -182,7 +182,7 @@ RUN set -eux; \ \ cd /usr/src/ruby; \ \ -{{ if is_alpine then ( -}} +{{ if is_alpine and ((env.version | IN("3.3", "3.4", "4.0")) or .version == "4.1.0-preview1") then ( -}} # https://github.com/docker-library/ruby/issues/196 # https://bugs.ruby-lang.org/issues/14387#note-13 (patch source) # 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) From de85015bc418a26cd115bc89194afdee794697ec Mon Sep 17 00:00:00 2001 From: yosifkit Date: Thu, 12 Nov 2026 15:10:37 -0800 Subject: [PATCH 2/2] Apply suggestion from @tianon Co-authored-by: Tianon Gravi --- Dockerfile.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.template b/Dockerfile.template index a9ed101a7..2788e71ec 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -182,7 +182,7 @@ RUN set -eux; \ \ cd /usr/src/ruby; \ \ -{{ if is_alpine and ((env.version | IN("3.3", "3.4", "4.0")) or .version == "4.1.0-preview1") then ( -}} +{{ if is_alpine and (IN(env.version; "3.3", "3.4", "4.0") or .version == "4.1.0-preview1") then ( -}} # https://github.com/docker-library/ruby/issues/196 # https://bugs.ruby-lang.org/issues/14387#note-13 (patch source) # 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)