Fix installing datadog_trace (#764)

pull/759/head 2.1.31
Michele Locati 2023-06-22 15:08:01 +02:00 committed by GitHub
parent 7c915d6fbb
commit 18e614d695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -716,10 +716,18 @@ buildRequiredPackageLists() {
;;
ddtrace@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev"
if test $DISTRO_MAJMIN_VERSION -ge 317; then
# Alpine 3.17 is the minimum version that comes with cargo 1.64.0+
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cargo"
fi
;;
ddtrace@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent curl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libcurl4-openssl-dev"
if test $DISTRO_MAJMIN_VERSION -ge 1200; then
# Debian bookworm is the minimum version that comes with cargo 1.64.0+
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cargo"
fi
;;
dba@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent db"
@ -2618,6 +2626,21 @@ installRemoteModule() {
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
installRemoteModule_version=0.75.0
else
case "$DISTRO" in
alpine)
if test $DISTRO_MAJMIN_VERSION -lt 317; then
# Alpine 3.17 is the minimum version that comes with cargo 1.64.0+
installRemoteModule_version=0.87.2
fi
;;
debian)
if test $DISTRO_MAJMIN_VERSION -lt 1200; then
# Debian bookworm is the minimum version that comes with cargo 1.64.0+
installRemoteModule_version=0.87.2
fi
;;
esac
fi
fi
;;