Skip to content

Commit 24d1dd7

Browse files
committed
DEBUG: Apply suggestions per php/php-src#14792 to test CI
1 parent a40f4d1 commit 24d1dd7

31 files changed

+94
-0
lines changed

8.4-rc/alpine3.19/cli/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.

8.4-rc/alpine3.19/cli/docker-php-source

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

8.4-rc/alpine3.19/fpm/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.

8.4-rc/alpine3.19/fpm/docker-php-source

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

8.4-rc/alpine3.19/zts/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.

8.4-rc/alpine3.19/zts/docker-php-source

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

8.4-rc/alpine3.20/cli/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.

8.4-rc/alpine3.20/cli/docker-php-source

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

8.4-rc/alpine3.20/fpm/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.

8.4-rc/alpine3.20/fpm/docker-php-source

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

8.4-rc/alpine3.20/zts/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.

8.4-rc/alpine3.20/zts/docker-php-source

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

8.4-rc/bookworm/apache/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.

8.4-rc/bookworm/apache/docker-php-source

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

8.4-rc/bookworm/cli/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.

8.4-rc/bookworm/cli/docker-php-source

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

8.4-rc/bookworm/fpm/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.

8.4-rc/bookworm/fpm/docker-php-source

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

8.4-rc/bookworm/zts/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.

8.4-rc/bookworm/zts/docker-php-source

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

8.4-rc/bullseye/apache/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.

8.4-rc/bullseye/apache/docker-php-source

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

8.4-rc/bullseye/cli/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.

8.4-rc/bullseye/cli/docker-php-source

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

8.4-rc/bullseye/fpm/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.

8.4-rc/bullseye/fpm/docker-php-source

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

8.4-rc/bullseye/zts/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.

8.4-rc/bullseye/zts/docker-php-source

Lines changed: 2 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ ENV PHPIZE_DEPS \
4848
RUN apk add --no-cache \
4949
ca-certificates \
5050
curl \
51+
{{ if [ "8.4-rc" ] | index(env.version) then ( -}}
52+
autoconf \
53+
git \
54+
{{ ) else "" end -}}
5155
openssl \
5256
tar \
5357
xz
@@ -66,6 +70,9 @@ RUN set -eux; \
6670
$PHPIZE_DEPS \
6771
ca-certificates \
6872
curl \
73+
{{ if [ "8.4-rc" ] | index(env.version) then ( -}}
74+
git \
75+
{{ ) else "" end -}}
6976
xz-utils \
7077
; \
7178
rm -rf /var/lib/apt/lists/*

apply-templates.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ for version; do
7676
if [ "$variant" = 'apache' ]; then
7777
cp -a apache2-foreground "$version/$dir/"
7878
fi
79+
if [ "$version" = '8.4-rc' ]; then
80+
cp -a docker-php-source-patched "$version/$dir/docker-php-source"
81+
fi
7982

8083
cmd="$(jq <<<"$cmd" -r '.[0]')"
8184
if [ "$cmd" != 'php' ]; then

docker-php-source-patched

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/sh
2+
set -e
3+
4+
dir=/usr/src/php
5+
6+
usage() {
7+
echo "usage: $0 COMMAND"
8+
echo
9+
echo "Manage php source tarball lifecycle."
10+
echo
11+
echo "Commands:"
12+
echo " extract extract php source tarball into directory $dir if not already done."
13+
echo " delete delete extracted php source located into $dir if not already done."
14+
echo
15+
}
16+
17+
case "$1" in
18+
extract)
19+
mkdir -p "$dir"
20+
if [ ! -f "$dir/.docker-extracted" ]; then
21+
tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1
22+
curl -s https://patch-diff.githubusercontent.com/raw/php/php-src/pull/14797.patch | git -C "$dir" apply --reject || true
23+
$dir/buildconf -f
24+
touch "$dir/.docker-extracted"
25+
fi
26+
;;
27+
28+
delete)
29+
rm -rf "$dir"
30+
;;
31+
32+
*)
33+
usage
34+
exit 1
35+
;;
36+
esac

0 commit comments

Comments
 (0)