From 034b68c03c6fa834e6fd7e01d501005b85de92db Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:31:52 +1000 Subject: [PATCH] Add libsecp to libsodium fork option as well (desirable for CLI options) --- scripts/cnode-helper-scripts/guild-deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 361591bad..be69ddaf7 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -310,6 +310,7 @@ build_dependencies() { # Build fork of libsodium build_libsodium() { + build_libsecp echo -e "\nBuilding libsodium ..." SODIUM_REF="$(jq -r '."'${CARDANO_NODE_VERSION}'".sodium' <<< ${NODE_DEPS})" if ! grep -q "/usr/local/lib:\$LD_LIBRARY_PATH" "${HOME}"/.bashrc; then @@ -671,7 +672,7 @@ parse_args() { if [[ -n "${S_ARGS}" ]]; then [[ "${S_ARGS}" =~ "p" ]] && INSTALL_OS_DEPS="Y" [[ "${S_ARGS}" =~ "b" ]] && INSTALL_OS_DEPS="Y" && WANT_BUILD_DEPS="Y" - [[ "${S_ARGS}" =~ "l" ]] && INSTALL_OS_DEPS="Y" && INSTALL_LIBSODIUM_FORK="Y" + [[ "${S_ARGS}" =~ "l" ]] && INSTALL_OS_DEPS="Y" && LIBSODIUM_FORK="Y" [[ "${S_ARGS}" =~ "m" ]] && INSTALL_MITHRIL="Y" [[ "${S_ARGS}" =~ "f" ]] && FORCE_OVERWRITE="Y" && POPULATE_CNODE="F" [[ "${S_ARGS}" =~ "d" ]] && INSTALL_CNODEBINS="Y" @@ -694,7 +695,7 @@ main_flow() { [[ "${UPDATE_CHECK}" == "Y" ]] && update_check [[ "${INSTALL_OS_DEPS}" == "Y" ]] && os_dependencies [[ "${WANT_BUILD_DEPS}" == "Y" ]] && build_dependencies - [[ "${INSTALL_LIBSODIUM_FORK}" == "Y" ]] && build_libsodium + [[ "${LIBSODIUM_FORK}" == "Y" ]] && build_libsodium [[ "${INSTALL_MITHRIL}" == "Y" ]] && download_mithril [[ "${FORCE_OVERWRITE}" == "Y" ]] && POPULATE_CNODE="F" && populate_cnode [[ "${POPULATE_CNODE}" == "Y" ]] && populate_cnode