Skip to content

Commit b45b591

Browse files
authored
Merge pull request #440 from infosiftr/apply-arm64-patch-sooner
Apply arm64 patch sooner so `autoconf` regenerates `configure` correctly
2 parents a27888b + 7ac7122 commit b45b591

File tree

7 files changed

+22
-15
lines changed

7 files changed

+22
-15
lines changed

3.3/alpine3.18/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.3/alpine3.19/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.3/bookworm/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.3/bullseye/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.3/slim-bookworm/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.3/slim-bullseye/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile.template

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,16 @@ RUN set -eux; \
238238
cat file.c; \
239239
} > file.c.new; \
240240
mv file.c.new file.c; \
241+
{{ if .version == "3.3.0" then ( -}}
242+
\
243+
# workaround crash on arm64
244+
# https://bugs.ruby-lang.org/issues/20085
245+
# https://github.com/ruby/ruby/pull/9385 <- https://github.com/ruby/ruby/pull/9371
246+
wget -O 'arm64-fix.patch' 'https://github.com/ruby/ruby/commit/7f97e3540ce448b501bcbee15afac5f94bb22dd9.patch?full_index=1'; \
247+
echo '86bc65415fd62cb2272a4df249f39fb79db15617ad05c540e05a22f02eae73b3 *arm64-fix.patch' | sha256sum --check --strict; \
248+
patch -p1 -i arm64-fix.patch; \
249+
rm arm64-fix.patch; \
250+
{{ ) else "" end -}}
241251
\
242252
autoconf; \
243253
{{ if is_alpine and "3.0" == (env.version | rtrimstr("-rc")) then ( -}}
@@ -252,15 +262,6 @@ RUN set -eux; \
252262
export LIBS='-lucontext'; \
253263
;; \
254264
esac; \
255-
{{ ) else "" end -}}
256-
{{ if .version == "3.3.0" then ( -}}
257-
# workaround crash on arm64
258-
# https://bugs.ruby-lang.org/issues/20085
259-
# https://github.com/ruby/ruby/pull/9385 <- https://github.com/ruby/ruby/pull/9371
260-
wget -O 'arm64-fix.patch' 'https://github.com/ruby/ruby/commit/7f97e3540ce448b501bcbee15afac5f94bb22dd9.patch?full_index=1'; \
261-
echo '86bc65415fd62cb2272a4df249f39fb79db15617ad05c540e05a22f02eae73b3 *arm64-fix.patch' | sha256sum --check --strict; \
262-
patch -p1 -i arm64-fix.patch; \
263-
rm arm64-fix.patch; \
264265
{{ ) else "" end -}}
265266
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
266267
./configure \

0 commit comments

Comments
 (0)