Skip to content

Commit 42286a6

Browse files
committed
Apply thread-related crypt patches in 3.x versions
1 parent 8b9d85c commit 42286a6

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed

2.7/slim-buster/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.6/buster/Dockerfile

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

3.6/slim-buster/Dockerfile

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

3.7/buster/Dockerfile

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

3.7/slim-buster/Dockerfile

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

Dockerfile-linux.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ RUN set -eux; \
6767
apt-get install -y --no-install-recommends \
6868
{{ if is_slim then ( -}}
6969
bzip2 \
70+
patch \
7071
wget \
7172
{{ ) else "" end -}}
7273
# sometimes "{{ cmd }}" itself is linked against libexpat1 / libncurses5, sometimes they're ".so" files in "/opt/pypy/lib_pypy"
@@ -82,6 +83,17 @@ RUN set -eux; \
8283
find /opt/pypy/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
8384
rm pypy.tar.bz2; \
8485
\
86+
{{ if is_3 then ( -}}
87+
# https://github.com/docker-library/pypy/issues/49
88+
wget -O import.patch 'https://foss.heptapod.net/pypy/pypy/-/commit/16faa2be85839e6ab4fb8ee09298a4d934aab81f.patch'; \
89+
echo '2d4bcc434077685a4ff26c1c1f28109ff67ef7e68f1f831ce0f2d9ddd6a194d0 *import.patch' | sha256sum --check --strict -; \
90+
wget -O crypt-utf8.patch 'https://foss.heptapod.net/pypy/pypy/-/commit/c63da169246ed972fe90e1c289fc2378236fa852.patch'; \
91+
echo 'ab1529948c49fd29fb76b3c20ec7d3d9c50603aa0c549a8a31339eb940e0f4d3 *crypt-utf8.patch' | sha256sum --check --strict -; \
92+
patch --input="$PWD/import.patch" --directory=/opt/pypy --strip=1; \
93+
patch --input="$PWD/crypt-utf8.patch" --directory=/opt/pypy --strip=1; \
94+
rm import.patch crypt-utf8.patch; \
95+
\
96+
{{ ) else "" end -}}
8597
ln -sv {{ "/opt/pypy/bin/" + cmd | @sh }} /usr/local/bin/; \
8698
\
8799
# smoke test

0 commit comments

Comments
 (0)