File tree 10 files changed +56
-35
lines changed 10 files changed +56
-35
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,16 @@ RUN set -xe \
108
108
libedit-dev \
109
109
libsodium-dev \
110
110
libxml2-dev \
111
+ oniguruma-dev \
111
112
openssl-dev \
112
113
sqlite-dev \
113
114
\
114
115
&& export CFLAGS="$PHP_CFLAGS" \
115
116
CPPFLAGS="$PHP_CPPFLAGS" \
116
117
LDFLAGS="$PHP_LDFLAGS" \
118
+ # fix ARGON2 detection for 7.4-alpha1 https://github.com/docker-library/php/pull/840#pullrequestreview-249660894
119
+ ARGON2_LIBS="-largon2" \
120
+ ARGON2_CFLAGS="-I/usr/include" \
117
121
&& docker-php-source extract \
118
122
&& cd /usr/src/php \
119
123
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
@@ -171,9 +175,8 @@ RUN set -xe \
171
175
\
172
176
&& apk del --no-network .build-deps \
173
177
\
174
- # https://github.com/docker-library/php/issues/443
175
- && pecl update-channels \
176
- && rm -rf /tmp/pear ~/.pearrc
178
+ # smoke test
179
+ && php --version
177
180
178
181
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
179
182
Original file line number Diff line number Diff line change @@ -109,12 +109,16 @@ RUN set -xe \
109
109
libedit-dev \
110
110
libsodium-dev \
111
111
libxml2-dev \
112
+ oniguruma-dev \
112
113
openssl-dev \
113
114
sqlite-dev \
114
115
\
115
116
&& export CFLAGS="$PHP_CFLAGS" \
116
117
CPPFLAGS="$PHP_CPPFLAGS" \
117
118
LDFLAGS="$PHP_LDFLAGS" \
119
+ # fix ARGON2 detection for 7.4-alpha1 https://github.com/docker-library/php/pull/840#pullrequestreview-249660894
120
+ ARGON2_LIBS="-largon2" \
121
+ ARGON2_CFLAGS="-I/usr/include" \
118
122
&& docker-php-source extract \
119
123
&& cd /usr/src/php \
120
124
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
@@ -172,9 +176,8 @@ RUN set -xe \
172
176
\
173
177
&& apk del --no-network .build-deps \
174
178
\
175
- # https://github.com/docker-library/php/issues/443
176
- && pecl update-channels \
177
- && rm -rf /tmp/pear ~/.pearrc
179
+ # smoke test
180
+ && php --version
178
181
179
182
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
180
183
Original file line number Diff line number Diff line change @@ -109,12 +109,16 @@ RUN set -xe \
109
109
libedit-dev \
110
110
libsodium-dev \
111
111
libxml2-dev \
112
+ oniguruma-dev \
112
113
openssl-dev \
113
114
sqlite-dev \
114
115
\
115
116
&& export CFLAGS="$PHP_CFLAGS" \
116
117
CPPFLAGS="$PHP_CPPFLAGS" \
117
118
LDFLAGS="$PHP_LDFLAGS" \
119
+ # fix ARGON2 detection for 7.4-alpha1 https://github.com/docker-library/php/pull/840#pullrequestreview-249660894
120
+ ARGON2_LIBS="-largon2" \
121
+ ARGON2_CFLAGS="-I/usr/include" \
118
122
&& docker-php-source extract \
119
123
&& cd /usr/src/php \
120
124
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
@@ -172,9 +176,8 @@ RUN set -xe \
172
176
\
173
177
&& apk del --no-network .build-deps \
174
178
\
175
- # https://github.com/docker-library/php/issues/443
176
- && pecl update-channels \
177
- && rm -rf /tmp/pear ~/.pearrc
179
+ # smoke test
180
+ && php --version
178
181
179
182
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
180
183
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ RUN set -eux; \
173
173
apt-get install -y --no-install-recommends \
174
174
libcurl4-openssl-dev \
175
175
libedit-dev \
176
+ libonig-dev \
176
177
libsodium-dev \
177
178
libsqlite3-dev \
178
179
libssl-dev \
@@ -268,11 +269,8 @@ RUN set -eux; \
268
269
; \
269
270
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
270
271
\
271
- php --version; \
272
- \
273
- # https://github.com/docker-library/php/issues/443
274
- pecl update-channels; \
275
- rm -rf /tmp/pear ~/.pearrc
272
+ # smoke test
273
+ php --version
276
274
277
275
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
278
276
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ RUN set -eux; \
113
113
apt-get install -y --no-install-recommends \
114
114
libcurl4-openssl-dev \
115
115
libedit-dev \
116
+ libonig-dev \
116
117
libsodium-dev \
117
118
libsqlite3-dev \
118
119
libssl-dev \
@@ -208,11 +209,8 @@ RUN set -eux; \
208
209
; \
209
210
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
210
211
\
211
- php --version; \
212
- \
213
- # https://github.com/docker-library/php/issues/443
214
- pecl update-channels; \
215
- rm -rf /tmp/pear ~/.pearrc
212
+ # smoke test
213
+ php --version
216
214
217
215
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
218
216
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ RUN set -eux; \
114
114
apt-get install -y --no-install-recommends \
115
115
libcurl4-openssl-dev \
116
116
libedit-dev \
117
+ libonig-dev \
117
118
libsodium-dev \
118
119
libsqlite3-dev \
119
120
libssl-dev \
@@ -209,11 +210,8 @@ RUN set -eux; \
209
210
; \
210
211
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
211
212
\
212
- php --version; \
213
- \
214
- # https://github.com/docker-library/php/issues/443
215
- pecl update-channels; \
216
- rm -rf /tmp/pear ~/.pearrc
213
+ # smoke test
214
+ php --version
217
215
218
216
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
219
217
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ RUN set -eux; \
114
114
apt-get install -y --no-install-recommends \
115
115
libcurl4-openssl-dev \
116
116
libedit-dev \
117
+ libonig-dev \
117
118
libsodium-dev \
118
119
libsqlite3-dev \
119
120
libssl-dev \
@@ -209,11 +210,8 @@ RUN set -eux; \
209
210
; \
210
211
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
211
212
\
212
- php --version; \
213
- \
214
- # https://github.com/docker-library/php/issues/443
215
- pecl update-channels; \
216
- rm -rf /tmp/pear ~/.pearrc
213
+ # smoke test
214
+ php --version
217
215
218
216
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
219
217
Original file line number Diff line number Diff line change @@ -102,12 +102,16 @@ RUN set -xe \
102
102
libedit-dev \
103
103
libsodium-dev \
104
104
libxml2-dev \
105
+ oniguruma-dev \
105
106
openssl-dev \
106
107
sqlite-dev \
107
108
\
108
109
&& export CFLAGS="$PHP_CFLAGS" \
109
110
CPPFLAGS="$PHP_CPPFLAGS" \
110
111
LDFLAGS="$PHP_LDFLAGS" \
112
+ # fix ARGON2 detection for 7.4-alpha1 https://github.com/docker-library/php/pull/840#pullrequestreview-249660894
113
+ ARGON2_LIBS="-largon2" \
114
+ ARGON2_CFLAGS="-I/usr/include" \
111
115
&& docker-php-source extract \
112
116
&& cd /usr/src/php \
113
117
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
@@ -165,9 +169,11 @@ RUN set -xe \
165
169
\
166
170
&& apk del --no-network .build-deps \
167
171
\
168
- # https://github.com/docker-library/php/issues/443
172
+ # update pecl channel definitions https://github.com/docker-library/php/issues/443
169
173
&& pecl update-channels \
170
- && rm -rf /tmp/pear ~/.pearrc
174
+ && rm -rf /tmp/pear ~/.pearrc \
175
+ # smoke test
176
+ && php --version
171
177
172
178
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
173
179
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ RUN set -eux; \
107
107
apt-get install -y --no-install-recommends \
108
108
libcurl4-openssl-dev \
109
109
libedit-dev \
110
+ libonig-dev \
110
111
libsodium-dev \
111
112
libsqlite3-dev \
112
113
libssl-dev \
@@ -202,11 +203,11 @@ RUN set -eux; \
202
203
; \
203
204
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
204
205
\
205
- php --version; \
206
- \
207
- # https://github.com/docker-library/php/issues/443
206
+ # update pecl channel definitions https://github.com/docker-library/php/issues/443
208
207
pecl update-channels; \
209
- rm -rf /tmp/pear ~/.pearrc
208
+ rm -rf /tmp/pear ~/.pearrc; \
209
+ # smoke test
210
+ php --version
210
211
211
212
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
212
213
Original file line number Diff line number Diff line change @@ -160,6 +160,19 @@ for version in "${versions[@]}"; do
160
160
-e ' /argon2/d' \
161
161
" $version /$suite /$variant /Dockerfile"
162
162
fi
163
+ if [ " $majorVersion " = ' 7' -a " $minorVersion " -lt ' 4' ]; then
164
+ # oniguruma is part of mbstring in php 7.4+
165
+ # ARGON2 is a hack only required for alpha1: https://github.com/docker-library/php/pull/840#pullrequestreview-249660894
166
+ sed -ri \
167
+ -e ' /oniguruma-dev|libonig-dev/d' \
168
+ -e ' /ARGON2/d' \
169
+ " $version /$suite /$variant /Dockerfile"
170
+ else
171
+ # 7.4 and above no longer include pecl/pear: https://github.com/php/php-src/pull/3781
172
+ sed -ri \
173
+ -e ' \!pecl.*channel|/tmp/pear!d' \
174
+ " $version /$suite /$variant /Dockerfile"
175
+ fi
163
176
if [ " $majorVersion " = ' 7' -a " $minorVersion " -lt ' 2' ]; then
164
177
# sodium is part of php core 7.2+ https://wiki.php.net/rfc/libsodium
165
178
sed -ri ' /sodium/d' " $version /$suite /$variant /Dockerfile"
You can’t perform that action at this time.
0 commit comments