Skip to content

Commit a38d946

Browse files
authored
Fix installing datadog_trace on Alpine 3.11 and 3.12 (#945)
1 parent 9ddedfd commit a38d946

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install-php-extensions

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,16 @@ installRemoteModule() {
28952895
if test $PHP_MAJMIN_VERSION -lt 700; then
28962896
installRemoteModule_version=0.75.0
28972897
fi
2898+
if test -z "$installRemoteModule_version"; then
2899+
case "$DISTRO" in
2900+
alpine)
2901+
if test $DISTRO_MAJMIN_VERSION -le 312; then
2902+
# cc is not supported due to a memcmp related bug
2903+
installRemoteModule_version=1.1.0
2904+
fi
2905+
;;
2906+
esac
2907+
fi
28982908
else
28992909
installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")"
29002910
fi

0 commit comments

Comments
 (0)