Fix installing datadog_trace on Alpine 3.11 and 3.12 (#945)

pull/947/head 2.2.20
Michele Locati 2024-07-29 12:52:10 +02:00 committed by GitHub
parent 9ddedfd21e
commit a38d946ba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -2895,6 +2895,16 @@ installRemoteModule() {
if test $PHP_MAJMIN_VERSION -lt 700; then
installRemoteModule_version=0.75.0
fi
if test -z "$installRemoteModule_version"; then
case "$DISTRO" in
alpine)
if test $DISTRO_MAJMIN_VERSION -le 312; then
# cc is not supported due to a memcmp related bug
installRemoteModule_version=1.1.0
fi
;;
esac
fi
else
installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")"
fi