File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,14 @@ RUN set -eux; \
253
253
;; \
254
254
esac; \
255
255
{{ ) else "" end -}}
256
- {{ if .version | . == "3.3.0" then ( -}}
257
- # workaround crash on aarch64 Linux (e.g. Docker Desktop on macOS)
258
- # https://bugs.ruby-lang.org/issues/20085#note-5
259
- # https://github.com/ruby/ruby/pull/9371
260
- export ASFLAGS="${ASFLAGS:-} -mbranch-protection=pac-ret"; \
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; \
261
264
{{ ) else "" end -}}
262
265
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
263
266
./configure \
You can’t perform that action at this time.
0 commit comments