Skip to content

Commit

Permalink
fix(ci): adjust validate to allow certain dynamically linked libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
jdstrand committed Feb 11, 2025
1 parent e7559e7 commit 7e77c65
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .circleci/scripts/package-validation/validate
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 7e77c65

Please sign in to comment.