Skip to content

Commit 81b61a8

Browse files
committed
HOTFIX : disable *ev*, *rdkafka*, *snmp* and *swoole* for arm64 builds (too long to build)
1 parent 98e84b8 commit 81b61a8

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ This list can be outdated, you can verify by executing : `docker run --rm -it th
187187
- *weakref* is not compatible with PHP 7.3+ (but weak references were added to the PHP core in PHP 7.4)
188188
- *event*, *gnupg* are not available in PHP 8.0+
189189
- *gettext*, *ev*, *rdkafka*, *swoole* are not available in PHP 8.1+
190+
- *ev*, *rdkafka*, *snmp*, *swoole* are not available in all `ARM64` images (build time is too long : it's possible to install manually as required)
190191

191192
### Enabling/disabling extensions in the fat image
192193

extensions/core/ev/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

33
set -e
4+
if [[ "${TARGETARCH}" == "arm64" ]]; then
5+
# 188 seconds to execute onto arm64 arch
6+
>&2 echo "php-ev is not included with arm64 version (because build time is too long)"
7+
exit 0;
8+
fi
49
export PECL_EXTENSION=ev
510

611
../docker-install.sh

extensions/core/rdkafka/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

33
set -e
4+
if [[ "${TARGETARCH}" == "arm64" ]]; then
5+
# 176 seconds to execute onto arm64 arch
6+
>&2 echo "php-rdkafka is not included with arm64 version (because build time is too long)"
7+
exit 0;
8+
fi
49
export DEV_DEPENDENCIES="librdkafka-dev"
510
export DEPENDENCIES="librdkafka1"
611
PECL_EXTENSION=rdkafka ../docker-install.sh

extensions/core/snmp/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

33
set -e
4+
if [[ "${TARGETARCH}" == "arm64" ]]; then
5+
# 109 seconds to execute onto arm64 arch
6+
>&2 echo "php-snmp is not included with arm64 version (because build time is too long)"
7+
exit 0;
8+
fi
49
export EXTENSION=snmp
510
#export DEV_DEPENDENCIES="libsnmp-dev libssl-dev"
611
#export DEPENDENCIES="snmp libsnmp30 libc6 libpci3 libsensors4 libwrap0 procps libssl1.1"

extensions/core/swoole/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
set -e
55
if [[ "${PHP_VERSION}" ~= "^7" ]]; then
6+
if [[ "${TARGETARCH}" == "arm64" ]]; then
7+
# It's too long to compile onto arm64 arch
8+
>&2 echo "php-swoole is not included with arm64 version (because build time is too long)"
9+
exit 0;
10+
fi
611
## http://pecl.php.net/package/swoole
712
export DEPENDENCIES="zlib1g"
813
export DEV_DEPENDENCIES="zlib1g-dev"

utils/README.blueprint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ This list can be outdated, you can verify by executing : `docker run --rm -it th
105105
- *weakref* is not compatible with PHP 7.3+ (but weak references were added to the PHP core in PHP 7.4)
106106
- *event*, *gnupg* are not available in PHP 8.0+
107107
- *gettext*, *ev*, *rdkafka*, *swoole* are not available in PHP 8.1+
108+
- *ev*, *rdkafka*, *snmp*, *swoole* are not available in all `ARM64` images (build time is too long : it's possible to install manually as required)
108109

109110
### Enabling/disabling extensions in the fat image
110111

0 commit comments

Comments
 (0)