Skip to content

Commit 45cfafc

Browse files
jnoordsijyosifkit
andcommitted
Add patches for Alpine/8.1 builds
Co-authored-by: yosifkit <joseph.ferguson@docker.com>
1 parent aa678ae commit 45cfafc

File tree

7 files changed

+93
-0
lines changed

7 files changed

+93
-0
lines changed

8.1/alpine3.20/cli/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.1/alpine3.20/fpm/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.1/alpine3.20/zts/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.1/alpine3.21/cli/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.1/alpine3.21/fpm/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.1/alpine3.21/zts/Dockerfile

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-linux.template

+15
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ RUN set -eux; \
261261
"libsodium-dev",
262262
"libxml2-dev",
263263
"openssl-dev",
264+
# https://github.com/docker-library/php/pull/1552
265+
if env.version | rtrimstr("-rc") == "8.1" then "patch", "patchutils" else empty end,
264266
"readline-dev",
265267
"sqlite-dev",
266268
# https://github.com/docker-library/php/issues/888
@@ -304,6 +306,19 @@ RUN set -eux; \
304306
; \
305307
docker-php-source extract; \
306308
cd /usr/src/php; \
309+
{{ if is_alpine and (env.version | rtrimstr("-rc") == "8.1") then ( -}}
310+
# Apply patches; see https://github.com/docker-library/php/pull/1552
311+
# https://github.com/php/php-src/issues/11678
312+
curl -fL 'https://github.com/php/php-src/commit/577b8ae4226368e66fee7a9b5c58f9e2428372fc.patch?full_index=1' -o 11678.patch; \
313+
echo '6edc20c3bb3e7cc13515abce7f2fffa8ebea6cf7469abfbc78fcdc120350b239 *11678.patch' | sha256sum -c -; \
314+
patch -p1 < 11678.patch; \
315+
rm 11678.patch; \
316+
# https://github.com/php/php-src/issues/14834
317+
curl -fL 'https://github.com/php/php-src/commit/67259e451d5d58b4842776c5696a66d74e157609.patch?full_index=1' -o 14834.patch; \
318+
echo 'ed10a1b254091ad676ed204e55628ecbd6c8962004d6185a1821cedecd526c0f *14834.patch' | sha256sum -c -; \
319+
filterdiff -x '*/NEWS' 14834.patch | patch -p1; \
320+
rm 14834.patch; \
321+
{{ ) else "" end -}}
307322
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
308323
{{ if is_alpine then "" else ( -}}
309324
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \

0 commit comments

Comments
 (0)