Skip to content

Commit

Permalink
Merge pull request #440 from infosiftr/apply-arm64-patch-sooner
Browse files Browse the repository at this point in the history
Apply arm64 patch sooner so `autoconf` regenerates `configure` correctly
  • Loading branch information
tianon committed Feb 29, 2024
2 parents a27888b + 7ac7122 commit b45b591
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
3 changes: 2 additions & 1 deletion 3.3/alpine3.18/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3.3/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3.3/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3.3/bullseye/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3.3/slim-bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3.3/slim-bullseye/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions Dockerfile.template
Expand Up @@ -238,6 +238,16 @@ RUN set -eux; \
cat file.c; \
} > file.c.new; \
mv file.c.new file.c; \
{{ if .version == "3.3.0" then ( -}}
\
# workaround crash on arm64
# https://bugs.ruby-lang.org/issues/20085
# https://github.com/ruby/ruby/pull/9385 <- https://github.com/ruby/ruby/pull/9371
wget -O 'arm64-fix.patch' 'https://github.com/ruby/ruby/commit/7f97e3540ce448b501bcbee15afac5f94bb22dd9.patch?full_index=1'; \
echo '86bc65415fd62cb2272a4df249f39fb79db15617ad05c540e05a22f02eae73b3 *arm64-fix.patch' | sha256sum --check --strict; \
patch -p1 -i arm64-fix.patch; \
rm arm64-fix.patch; \
{{ ) else "" end -}}
\
autoconf; \
{{ if is_alpine and "3.0" == (env.version | rtrimstr("-rc")) then ( -}}
Expand All @@ -252,15 +262,6 @@ RUN set -eux; \
export LIBS='-lucontext'; \
;; \
esac; \
{{ ) else "" end -}}
{{ if .version == "3.3.0" then ( -}}
# workaround crash on arm64
# https://bugs.ruby-lang.org/issues/20085
# https://github.com/ruby/ruby/pull/9385 <- https://github.com/ruby/ruby/pull/9371
wget -O 'arm64-fix.patch' 'https://github.com/ruby/ruby/commit/7f97e3540ce448b501bcbee15afac5f94bb22dd9.patch?full_index=1'; \
echo '86bc65415fd62cb2272a4df249f39fb79db15617ad05c540e05a22f02eae73b3 *arm64-fix.patch' | sha256sum --check --strict; \
patch -p1 -i arm64-fix.patch; \
rm arm64-fix.patch; \
{{ ) else "" end -}}
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
./configure \
Expand Down

0 comments on commit b45b591

Please sign in to comment.