Skip to content

Commit 453fc06

Browse files
committed
Update versions.* and generate-stackbrew for bullseye
1 parent d2b630d commit 453fc06

File tree

6 files changed

+31
-26
lines changed

6 files changed

+31
-26
lines changed

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ RUN set -eux; \
163163
\
164164
{{ ) else "" end -}}
165165
# bundled pcre does not support JIT on s390x
166-
# https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT
166+
# https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT
167167
$(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \
168168
\
169169
${PHP_EXTRA_CONFIGURE_ARGS:-} \

Dockerfile-debian.template

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,6 @@ COPY docker-php-source /usr/local/bin/
9999
RUN set -eux; \
100100
\
101101
savedAptMark="$(apt-mark showmanual)"; \
102-
{{
103-
# stretch needs to pull argon2 from buster
104-
if env.suite == "stretch" then (
105-
-}}
106-
sed -e 's/stretch/buster/g' /etc/apt/sources.list > /etc/apt/sources.list.d/buster.list; \
107-
{ \
108-
echo 'Package: *'; \
109-
echo 'Pin: release n=buster*'; \
110-
echo 'Pin-Priority: -10'; \
111-
echo; \
112-
echo 'Package: libargon2*'; \
113-
echo 'Pin: release n=buster*'; \
114-
echo 'Pin-Priority: 990'; \
115-
} > /etc/apt/preferences.d/argon2-buster; \
116-
{{ ) else "" end -}}
117102
apt-get update; \
118103
apt-get install -y --no-install-recommends \
119104
libargon2-dev \
@@ -190,7 +175,7 @@ RUN set -eux; \
190175
\
191176
{{ ) else "" end -}}
192177
# bundled pcre does not support JIT on s390x
193-
# https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT
178+
# https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT
194179
$(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \
195180
--with-libdir="lib/$debMultiarch" \
196181
\
@@ -240,7 +225,7 @@ RUN docker-php-ext-enable sodium
240225
# https://bugs.php.net/bug.php?id=76324
241226
# https://github.com/php/php-src/pull/3632
242227
# https://github.com/php/php-src/commit/2d03197749696ac3f8effba6b7977b0d8729fef3
243-
if env.suite != "stretch" and (.version | version_id) < ("7.4" | version_id) then (
228+
if (.version | version_id) < ("7.4" | version_id) then (
244229
-}}
245230
# temporary "freetype-config" workaround for https://github.com/docker-library/php/issues/865 (https://bugs.php.net/bug.php?id=76324)
246231
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config

apply-templates.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ for version; do
5555
export cmd
5656

5757
echo "processing $version/$dir ..."
58+
mkdir -p "$version/$dir"
5859

5960
variantBlock1="$(if [ -f "Dockerfile-$variant-block-1.template" ]; then gawk -f "$jqt" "Dockerfile-$variant-block-1.template"; fi)"
6061
variantBlock2="$(if [ -f "Dockerfile-$variant-block-2.template" ]; then gawk -f "$jqt" "Dockerfile-$variant-block-2.template"; fi)"

generate-stackbrew-library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ declare -A aliases=(
66
[8.0]='8 latest'
77
)
88

9-
defaultDebianSuite='buster'
9+
defaultDebianSuite='bullseye'
1010
declare -A debianSuites=(
11-
#[7.4-rc]='buster'
11+
#[7.4]='buster'
1212
)
1313
defaultAlpineVersion='3.14'
1414
declare -A alpineVersions=(

versions.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"sha256": "7db2834511f3d86272dca3daee3f395a5a4afce359b8342aa6edad80e12eb4d0",
66
"url": "https://www.php.net/distributions/php-7.3.29.tar.xz",
77
"variants": [
8+
"bullseye/cli",
9+
"bullseye/apache",
10+
"bullseye/fpm",
11+
"bullseye/zts",
812
"buster/cli",
913
"buster/apache",
1014
"buster/fpm",
1115
"buster/zts",
12-
"stretch/cli",
13-
"stretch/apache",
14-
"stretch/fpm",
15-
"stretch/zts",
1616
"alpine3.14/cli",
1717
"alpine3.14/fpm",
1818
"alpine3.14/zts",
@@ -28,6 +28,10 @@
2828
"sha256": "8e078cd7d2f49ac3fcff902490a5bb1addc885e7e3b0d8dd068f42c68297bde8",
2929
"url": "https://www.php.net/distributions/php-7.4.22.tar.xz",
3030
"variants": [
31+
"bullseye/cli",
32+
"bullseye/apache",
33+
"bullseye/fpm",
34+
"bullseye/zts",
3135
"buster/cli",
3236
"buster/apache",
3337
"buster/fpm",
@@ -47,6 +51,10 @@
4751
"sha256": "71a01b2b56544e20e28696ad5b366e431a0984eaa39aa5e35426a4843e172010",
4852
"url": "https://www.php.net/distributions/php-8.0.9.tar.xz",
4953
"variants": [
54+
"bullseye/cli",
55+
"bullseye/apache",
56+
"bullseye/fpm",
57+
"bullseye/zts",
5058
"buster/cli",
5159
"buster/apache",
5260
"buster/fpm",
@@ -64,6 +72,10 @@
6472
"sha256": "c0b8d45639f171fcbbaaf6b239a4759126130cf14628eaf74c4916408cb16ce0",
6573
"url": "https://downloads.php.net/~ramsey/php-8.1.0beta2.tar.xz",
6674
"variants": [
75+
"bullseye/cli",
76+
"bullseye/apache",
77+
"bullseye/fpm",
78+
"bullseye/zts",
6779
"buster/cli",
6880
"buster/apache",
6981
"buster/fpm",

versions.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,20 @@ for version in "${versions[@]}"; do
117117
variants='[]'
118118
# order here controls the order of the library/ file
119119
for suite in \
120+
bullseye \
120121
buster \
121-
stretch \
122122
alpine3.14 \
123123
alpine3.13 \
124124
; do
125125
for variant in cli apache fpm zts; do
126-
[ -d "$version/$suite/$variant" ] || continue
126+
if [[ "$suite" = alpine* ]]; then
127+
if [ "$variant" = 'apache' ]; then
128+
continue
129+
elif [ "$variant" = 'zts' ] && [[ "$rcVersion" != 7.* ]]; then
130+
# https://github.com/docker-library/php/issues/1074
131+
continue
132+
fi
133+
fi
127134
export suite variant
128135
variants="$(jq <<<"$variants" -c '. + [ env.suite + "/" + env.variant ]')"
129136
done

0 commit comments

Comments
 (0)