diff --git a/.circleci/scripts/package-validation/validate b/.circleci/scripts/package-validation/validate index f6ca77b0830..f76e5555479 100755 --- a/.circleci/scripts/package-validation/validate +++ b/.circleci/scripts/package-validation/validate @@ -79,12 +79,25 @@ fi if [[ "${NEEDED:-}" ]] then - cat <<'EOF' + if echo "$NEEDED" | grep -Eq "Shared library: \[libpython" ; then + # if have libpython, ensure we are only linking things we expect + if echo "$NEEDED" | grep -Ev "Shared library: \[(ld-linux.*|libc|libdl|libgcc_s|libm|libpthread|libpython3.[0-9]{2})\.so" ; then + cat <<'EOF' +ERROR: found unexpected dynamically linked libraries! This may + prevent all platforms from running influxdb3 without + installing these dependencies. +EOF + exit 2 + fi + else + # if no libpython, then complain if any are NEEDED + cat <<'EOF' ERROR: influxdb3 not statically linked! This may prevent all platforms from running influxdb3 without installing separate dependencies. EOF - exit 2 + exit 2 + fi fi printf 'Finished validating influxdb3!\n'