Fine-tune datadog_trace support (#591)

pull/592/head
Michele Locati 2022-06-11 18:27:36 +02:00 committed by GitHub
parent 240d0652d0
commit 118447fb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 7 deletions

View File

@ -9,7 +9,7 @@ calendar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
cmark 7.0 7.1 7.2 7.3 7.4
csv 7.3 7.4 8.0 8.1 8.2
dba 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
ddtrace 7.0 7.1 7.2 7.3 7.4 8.0 8.1
ddtrace 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
decimal 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
ds 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
enchant 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2

View File

@ -130,6 +130,9 @@ normalizePHPModuleName() {
;;
esac
case "$normalizePHPModuleName_name" in
datadog_trace)
normalizePHPModuleName_name=ddtrace
;;
ioncube | ioncube\ loader)
normalizePHPModuleName_name='ioncube_loader'
;;
@ -646,8 +649,7 @@ buildRequiredPackageLists() {
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
;;
ddtrace@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent curl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl curl-dev"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev"
;;
ddtrace@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent curl"

View File

@ -23,15 +23,21 @@ SUPPORTED_EXTENSIONS=''
resetIFS
for EXTENSION in $EXTENSIONS_LIST; do
printf 'Checking extension "%s"... ' "$EXTENSION" >&2
NORMALIZED_EXTENSION="$EXTENSION"
case "$EXTENSION" in
datadog_trace)
NORMALIZED_EXTENSION=ddtrace
;;
pecl_http)
EXTENSION=http
printf '(using %s) ' "$EXTENSION" >&2
NORMALIZED_EXTENSION=http
;;
esac
if printf '%s' "$ALL_SUPPORTED_EXTENSIONS" | grep -q "^$EXTENSION\s"; then
if test "$NORMALIZED_EXTENSION" != "$EXTENSION"; then
printf '(using %s) ' "$NORMALIZED_EXTENSION" >&2
fi
if printf '%s' "$ALL_SUPPORTED_EXTENSIONS" | grep -q "^$NORMALIZED_EXTENSION\s"; then
printf 'supported.\n' >&2
SUPPORTED_EXTENSIONS="$SUPPORTED_EXTENSIONS $EXTENSION"
SUPPORTED_EXTENSIONS="$SUPPORTED_EXTENSIONS $NORMALIZED_EXTENSION"
else
printf 'NOT supported.\n' >&2
fi