Skip to content

Commit 53a12c2

Browse files
committed
Use libucontext in 2.7 to fix alpine based builds on arm32v6/7 and s390x
- Same as alpine uses on all arches (https://git.alpinelinux.org/aports/commit/main/ruby/APKBUILD?h=3.14-stable&id=5ed0f177e21cb9582f05a4088209ada9b143ef80)
1 parent 2caaf19 commit 53a12c2

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

2.6/alpine3.13/Dockerfile

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

2.6/alpine3.14/Dockerfile

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

2.7/alpine3.13/Dockerfile

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

2.7/alpine3.14/Dockerfile

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

3.0/alpine3.13/Dockerfile

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.0/alpine3.14/Dockerfile

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ RUN set -eux; \
7676
libffi-dev \
7777
libxml2-dev \
7878
libxslt-dev \
79+
libucontext-dev \
7980
linux-headers \
8081
make \
8182
ncurses-dev \
@@ -165,6 +166,9 @@ RUN set -eux; \
165166
\
166167
autoconf; \
167168
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
169+
{{ if is_alpine and env.version == "2.7" then ( -}}
170+
export LIBS='-lucontext'; \
171+
{{ ) else "" end -}}
168172
./configure \
169173
--build="$gnuArch" \
170174
--disable-install-doc \

0 commit comments

Comments
 (0)