diff --git a/5.6/Dockerfile b/5.6/Dockerfile index a8b3891c43..0576a4bcd2 100644 --- a/5.6/Dockerfile +++ b/5.6/Dockerfile @@ -102,6 +102,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -124,7 +125,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/5.6/apache/Dockerfile b/5.6/apache/Dockerfile index b4d2fe0a84..fb1d936add 100644 --- a/5.6/apache/Dockerfile +++ b/5.6/apache/Dockerfile @@ -161,6 +161,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -183,7 +184,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/5.6/fpm/Dockerfile b/5.6/fpm/Dockerfile index c588ab5601..38f98c3453 100644 --- a/5.6/fpm/Dockerfile +++ b/5.6/fpm/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/5.6/zts/Dockerfile b/5.6/zts/Dockerfile index a8bc33a2ec..e40f8b99a8 100644 --- a/5.6/zts/Dockerfile +++ b/5.6/zts/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.0/Dockerfile b/7.0/Dockerfile index ea37560d26..b632ecee65 100644 --- a/7.0/Dockerfile +++ b/7.0/Dockerfile @@ -102,6 +102,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -124,7 +125,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.0/apache/Dockerfile b/7.0/apache/Dockerfile index 593fcb1073..e30d45126d 100644 --- a/7.0/apache/Dockerfile +++ b/7.0/apache/Dockerfile @@ -161,6 +161,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -183,7 +184,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.0/fpm/Dockerfile b/7.0/fpm/Dockerfile index 35078b4795..49aa7f883b 100644 --- a/7.0/fpm/Dockerfile +++ b/7.0/fpm/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.0/zts/Dockerfile b/7.0/zts/Dockerfile index 8d6073709b..787db7e713 100644 --- a/7.0/zts/Dockerfile +++ b/7.0/zts/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.1/Dockerfile b/7.1/Dockerfile index 8ceeb23b2e..72ec2349c5 100644 --- a/7.1/Dockerfile +++ b/7.1/Dockerfile @@ -102,6 +102,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -124,7 +125,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.1/apache/Dockerfile b/7.1/apache/Dockerfile index 1b91e0730a..abdbf40379 100644 --- a/7.1/apache/Dockerfile +++ b/7.1/apache/Dockerfile @@ -161,6 +161,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -183,7 +184,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.1/fpm/Dockerfile b/7.1/fpm/Dockerfile index e10dbc6638..a7228e3cc8 100644 --- a/7.1/fpm/Dockerfile +++ b/7.1/fpm/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/7.1/zts/Dockerfile b/7.1/zts/Dockerfile index 3e7890a64c..fe1dfe5b66 100644 --- a/7.1/zts/Dockerfile +++ b/7.1/zts/Dockerfile @@ -103,6 +103,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -125,7 +126,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index b0be763819..4558724933 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -96,6 +96,7 @@ RUN set -xe \ && docker-php-source extract \ && cd /usr/src/php \ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" \ && ./configure \ --build="$gnuArch" \ --with-config-file-path="$PHP_INI_DIR" \ @@ -118,7 +119,7 @@ RUN set -xe \ # bundled pcre is too old for s390x (which isn't exactly a good sign) # /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture --with-pcre-regex=/usr \ - --with-libdir="lib/$gnuArch" \ + --with-libdir="lib/$debMultiarch" \ \ $PHP_EXTRA_CONFIGURE_ARGS \ && make -j "$(nproc)" \