Skip to content

Commit

Permalink
fix(deps): update sources before installing Ubuntu deps (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Oct 12, 2024
1 parent e478a92 commit 3ec378d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ install_build_dependencies_aptget()
dependencies=$(torsocks curl --fail --silent --show-error --location --retry 2 "${BUILD_DEPENDENCIES_URL}") ||
dependencies=$(curl --fail --silent --show-error --location --retry 5 "${BUILD_DEPENDENCIES_URL}")
[ -z "${dependencies:-}" ] && throw_error "The list of dependencies is empty."
sudo apt-get -qq update
printf '%s\n' "${dependencies}" | xargs sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends > /dev/null 2>&1
# TODO: Remove gcc-12 installation on next line when Ubuntu updates the default version of gcc to support C++ 20 features. Bitcoin Core requires gcc with support for C++ 20 features.
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends gcc-12 > /dev/null 2>&1
Expand Down Expand Up @@ -1014,6 +1015,7 @@ install_runtime_dependencies_aptget()
dependencies=$(torsocks curl --fail --silent --show-error --location --retry 2 "${RUNTIME_DEPENDENCIES_URL}") ||
dependencies=$(curl --fail --silent --show-error --location --retry 5 "${RUNTIME_DEPENDENCIES_URL}")
[ -z "${dependencies:-}" ] && throw_error 'The list of dependencies is empty.'
sudo apt-get -qq update
printf '%s\n' "${dependencies}" | xargs sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends > /dev/null 2>&1
}

Expand Down

0 comments on commit 3ec378d

Please sign in to comment.