diff --git a/7.3/alpine3.13/cli/Dockerfile b/7.3/alpine3.13/cli/Dockerfile index 8e69db0e5e..38c855da51 100644 --- a/7.3/alpine3.13/cli/Dockerfile +++ b/7.3/alpine3.13/cli/Dockerfile @@ -147,8 +147,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.13/fpm/Dockerfile b/7.3/alpine3.13/fpm/Dockerfile index b71bfc178d..e4d9a55c3c 100644 --- a/7.3/alpine3.13/fpm/Dockerfile +++ b/7.3/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -150,7 +148,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.13/zts/Dockerfile b/7.3/alpine3.13/zts/Dockerfile index cd957c4ae0..55e0bc8193 100644 --- a/7.3/alpine3.13/zts/Dockerfile +++ b/7.3/alpine3.13/zts/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -150,7 +148,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/cli/Dockerfile b/7.3/alpine3.14/cli/Dockerfile index a75384f2ec..923c6ebffc 100644 --- a/7.3/alpine3.14/cli/Dockerfile +++ b/7.3/alpine3.14/cli/Dockerfile @@ -146,8 +146,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/fpm/Dockerfile b/7.3/alpine3.14/fpm/Dockerfile index a3ae89a7eb..053039daa5 100644 --- a/7.3/alpine3.14/fpm/Dockerfile +++ b/7.3/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -149,7 +147,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/zts/Dockerfile b/7.3/alpine3.14/zts/Dockerfile index 319d790f4a..b321d8e56e 100644 --- a/7.3/alpine3.14/zts/Dockerfile +++ b/7.3/alpine3.14/zts/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -149,7 +147,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/apache/Dockerfile b/7.3/bullseye/apache/Dockerfile index cf36f8918e..61943ca669 100644 --- a/7.3/bullseye/apache/Dockerfile +++ b/7.3/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -225,7 +222,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/cli/Dockerfile b/7.3/bullseye/cli/Dockerfile index adaead961d..f045d8db60 100644 --- a/7.3/bullseye/cli/Dockerfile +++ b/7.3/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -167,7 +163,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/fpm/Dockerfile b/7.3/bullseye/fpm/Dockerfile index a362dca5f4..257c196af3 100644 --- a/7.3/bullseye/fpm/Dockerfile +++ b/7.3/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/zts/Dockerfile b/7.3/bullseye/zts/Dockerfile index f393fed8d9..c647006d06 100644 --- a/7.3/bullseye/zts/Dockerfile +++ b/7.3/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/apache/Dockerfile b/7.3/buster/apache/Dockerfile index 7b667a46f3..31b9937672 100644 --- a/7.3/buster/apache/Dockerfile +++ b/7.3/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -225,7 +222,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/cli/Dockerfile b/7.3/buster/cli/Dockerfile index cfc44c5f5a..9ab90ddb19 100644 --- a/7.3/buster/cli/Dockerfile +++ b/7.3/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -167,7 +163,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/fpm/Dockerfile b/7.3/buster/fpm/Dockerfile index 0ee2c44c5f..0befd54366 100644 --- a/7.3/buster/fpm/Dockerfile +++ b/7.3/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/zts/Dockerfile b/7.3/buster/zts/Dockerfile index 10c5977aca..6891dc2767 100644 --- a/7.3/buster/zts/Dockerfile +++ b/7.3/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/cli/Dockerfile b/7.4/alpine3.13/cli/Dockerfile index 563c96cb13..32c1c7ec50 100644 --- a/7.4/alpine3.13/cli/Dockerfile +++ b/7.4/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/fpm/Dockerfile b/7.4/alpine3.13/fpm/Dockerfile index 699444ef2e..5e6917c1fc 100644 --- a/7.4/alpine3.13/fpm/Dockerfile +++ b/7.4/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/zts/Dockerfile b/7.4/alpine3.13/zts/Dockerfile index 4fb1e9ef7d..174fb87373 100644 --- a/7.4/alpine3.13/zts/Dockerfile +++ b/7.4/alpine3.13/zts/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/cli/Dockerfile b/7.4/alpine3.14/cli/Dockerfile index 6349d051fc..31b27a915e 100644 --- a/7.4/alpine3.14/cli/Dockerfile +++ b/7.4/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/fpm/Dockerfile b/7.4/alpine3.14/fpm/Dockerfile index d4f0274276..68cf3cbb70 100644 --- a/7.4/alpine3.14/fpm/Dockerfile +++ b/7.4/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/zts/Dockerfile b/7.4/alpine3.14/zts/Dockerfile index dd5a0927fb..130286a3dd 100644 --- a/7.4/alpine3.14/zts/Dockerfile +++ b/7.4/alpine3.14/zts/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/apache/Dockerfile b/7.4/bullseye/apache/Dockerfile index 0d0ddb598b..2fc6224eeb 100644 --- a/7.4/bullseye/apache/Dockerfile +++ b/7.4/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/cli/Dockerfile b/7.4/bullseye/cli/Dockerfile index 8fec24b269..08167d272f 100644 --- a/7.4/bullseye/cli/Dockerfile +++ b/7.4/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/fpm/Dockerfile b/7.4/bullseye/fpm/Dockerfile index b951fdc7a1..4d77fd0b09 100644 --- a/7.4/bullseye/fpm/Dockerfile +++ b/7.4/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/zts/Dockerfile b/7.4/bullseye/zts/Dockerfile index fc804f0ef4..200fc5cc29 100644 --- a/7.4/bullseye/zts/Dockerfile +++ b/7.4/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/apache/Dockerfile b/7.4/buster/apache/Dockerfile index 7d0f94a54b..040daf8397 100644 --- a/7.4/buster/apache/Dockerfile +++ b/7.4/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/cli/Dockerfile b/7.4/buster/cli/Dockerfile index f381583975..532d3585cc 100644 --- a/7.4/buster/cli/Dockerfile +++ b/7.4/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/fpm/Dockerfile b/7.4/buster/fpm/Dockerfile index 231c600697..0c5560ee59 100644 --- a/7.4/buster/fpm/Dockerfile +++ b/7.4/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/zts/Dockerfile b/7.4/buster/zts/Dockerfile index f30a60a266..f5470b8dbd 100644 --- a/7.4/buster/zts/Dockerfile +++ b/7.4/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.13/cli/Dockerfile b/8.0/alpine3.13/cli/Dockerfile index 067c0462c0..3bf49d4a45 100644 --- a/8.0/alpine3.13/cli/Dockerfile +++ b/8.0/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.13/fpm/Dockerfile b/8.0/alpine3.13/fpm/Dockerfile index 8ea71296bd..adeb697d24 100644 --- a/8.0/alpine3.13/fpm/Dockerfile +++ b/8.0/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.14/cli/Dockerfile b/8.0/alpine3.14/cli/Dockerfile index be793fcfb7..7f39ad4228 100644 --- a/8.0/alpine3.14/cli/Dockerfile +++ b/8.0/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.14/fpm/Dockerfile b/8.0/alpine3.14/fpm/Dockerfile index dd2ff63f26..b0c5e99dea 100644 --- a/8.0/alpine3.14/fpm/Dockerfile +++ b/8.0/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/apache/Dockerfile b/8.0/bullseye/apache/Dockerfile index 7fed3a54da..6e3b7cf6fc 100644 --- a/8.0/bullseye/apache/Dockerfile +++ b/8.0/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/cli/Dockerfile b/8.0/bullseye/cli/Dockerfile index ded09361a5..eba1fa85a3 100644 --- a/8.0/bullseye/cli/Dockerfile +++ b/8.0/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/fpm/Dockerfile b/8.0/bullseye/fpm/Dockerfile index f10af513da..b7bd48f172 100644 --- a/8.0/bullseye/fpm/Dockerfile +++ b/8.0/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/zts/Dockerfile b/8.0/bullseye/zts/Dockerfile index fa620a19cc..d496ea188a 100644 --- a/8.0/bullseye/zts/Dockerfile +++ b/8.0/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/apache/Dockerfile b/8.0/buster/apache/Dockerfile index b983c9fae6..42ea416866 100644 --- a/8.0/buster/apache/Dockerfile +++ b/8.0/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/cli/Dockerfile b/8.0/buster/cli/Dockerfile index 702a8e8057..b65eb8d2b1 100644 --- a/8.0/buster/cli/Dockerfile +++ b/8.0/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/fpm/Dockerfile b/8.0/buster/fpm/Dockerfile index 97a4e9f3d0..bfa0732830 100644 --- a/8.0/buster/fpm/Dockerfile +++ b/8.0/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/zts/Dockerfile b/8.0/buster/zts/Dockerfile index f067b43293..7d5cb334e6 100644 --- a/8.0/buster/zts/Dockerfile +++ b/8.0/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.13/cli/Dockerfile b/8.1-rc/alpine3.13/cli/Dockerfile index d16e2a7d1e..b675a40652 100644 --- a/8.1-rc/alpine3.13/cli/Dockerfile +++ b/8.1-rc/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.13/fpm/Dockerfile b/8.1-rc/alpine3.13/fpm/Dockerfile index 686b97c94a..dbd4f029ec 100644 --- a/8.1-rc/alpine3.13/fpm/Dockerfile +++ b/8.1-rc/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.14/cli/Dockerfile b/8.1-rc/alpine3.14/cli/Dockerfile index ef5c791fde..4b6f66ab13 100644 --- a/8.1-rc/alpine3.14/cli/Dockerfile +++ b/8.1-rc/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.14/fpm/Dockerfile b/8.1-rc/alpine3.14/fpm/Dockerfile index 8e9565f0c8..5e2e17b709 100644 --- a/8.1-rc/alpine3.14/fpm/Dockerfile +++ b/8.1-rc/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/apache/Dockerfile b/8.1-rc/bullseye/apache/Dockerfile index 439fb23bea..91fb451b2d 100644 --- a/8.1-rc/bullseye/apache/Dockerfile +++ b/8.1-rc/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/cli/Dockerfile b/8.1-rc/bullseye/cli/Dockerfile index aebd679c26..bcad83b230 100644 --- a/8.1-rc/bullseye/cli/Dockerfile +++ b/8.1-rc/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/fpm/Dockerfile b/8.1-rc/bullseye/fpm/Dockerfile index 090392eb25..140d941211 100644 --- a/8.1-rc/bullseye/fpm/Dockerfile +++ b/8.1-rc/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/zts/Dockerfile b/8.1-rc/bullseye/zts/Dockerfile index 18a1cc3943..070f1e5a61 100644 --- a/8.1-rc/bullseye/zts/Dockerfile +++ b/8.1-rc/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/apache/Dockerfile b/8.1-rc/buster/apache/Dockerfile index f5ad32d83d..0e61c5c876 100644 --- a/8.1-rc/buster/apache/Dockerfile +++ b/8.1-rc/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/cli/Dockerfile b/8.1-rc/buster/cli/Dockerfile index 025edf97d7..fcb4662da5 100644 --- a/8.1-rc/buster/cli/Dockerfile +++ b/8.1-rc/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/fpm/Dockerfile b/8.1-rc/buster/fpm/Dockerfile index cacc8375a6..fbc0a178b7 100644 --- a/8.1-rc/buster/fpm/Dockerfile +++ b/8.1-rc/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/zts/Dockerfile b/8.1-rc/buster/zts/Dockerfile index d1d930a5a3..8088127390 100644 --- a/8.1-rc/buster/zts/Dockerfile +++ b/8.1-rc/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index d980dc8441..f5def08936 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -143,27 +143,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - -{{ ) elif env.variant == "cli" then ( -}} -{{ if is_alpine then "" else ( -}} -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - -{{ ) end -}} -{{ ) elif env.variant == "fpm" then ( -}} -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - -{{ ) elif env.variant == "zts" then ( -}} -ENV PHP_EXTRA_CONFIGURE_ARGS {{ - if (.version | version_id) >= ("8" | version_id) then - "--enable-zts" - else - "--enable-maintainer-zts" - end -}} --disable-cgi - {{ ) else "" end -}} # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) @@ -250,7 +229,7 @@ RUN set -eux; \ if (.version | version_id) >= ("7.4" | version_id) then "oniguruma-dev" else empty end else # debian packages - "${PHP_EXTRA_BUILD_DEPS:-}", + if env.variant == "apache" then "apache2-dev" else empty end, "libargon2-dev", "libcurl4-openssl-dev", "libreadline-dev", @@ -331,8 +310,32 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ {{ ) end -}} +{{ # https://github.com/docker-library/php/issues/280 -}} +{{ if env.variant == "cli" then "" else ( -}} + \ + --disable-cgi \ +{{ ) end -}} +{{ if (env.variant == "cli" or env.variant == "zts") and (is_alpine | not) then ( -}} \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ +{{ ) else "" end -}} +{{ if env.variant == "apache" then ( -}} + \ + --with-apxs2 \ +{{ ) elif env.variant == "fpm" then ( -}} + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ +{{ ) elif env.variant == "zts" then ( -}} + \ +{{ if (.version | version_id) >= ("8" | version_id) then ( -}} + --enable-zts \ +{{ ) else ( -}} + --enable-maintainer-zts \ +{{ ) end -}} +{{ ) else "" end -}} ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/apply-templates.sh b/apply-templates.sh index 2f2e27a9ed..1b6a776666 100755 --- a/apply-templates.sh +++ b/apply-templates.sh @@ -7,7 +7,8 @@ jqt='.jq-template.awk' if [ -n "${BASHBREW_SCRIPTS:-}" ]; then jqt="$BASHBREW_SCRIPTS/jq-template.awk" elif [ "$BASH_SOURCE" -nt "$jqt" ]; then - wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/5f0c26381fb7cc78b2d217d58007800bdcfbcfa1/scripts/jq-template.awk' + # https://github.com/docker-library/bashbrew/blob/master/scripts/jq-template.awk + wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/1da7341a79651d28fbcc3d14b9176593c4231942/scripts/jq-template.awk' fi if [ "$#" -eq 0 ]; then