Skip to content

CP-53951: XAPI should not depend on libssl #6366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ocaml/xapi/check-no-lwtssl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

SSL=libssl
CRYPTO=libcrypto
# This is an OCaml library, but when it is linked
# we also configure it to link libev, so look for that
LWT=libev
DEPS="${SSL}|${CRYPTO}|${LWT}"

ldd "$1" | grep -q -E "${DEPS}" 2>&1
if [ $? -eq 1 ]; then
echo -e "\n\033[32;1m[OK]\033[0m $1 does not depend on ${DEPS}";
exit 0
else
echo -e "\n\033[31;1m[ERROR]\033[0m $1 depends on ${DEPS}";
exit 1
fi
Loading
Loading