Skip to content

Commit

Permalink
refactor(deps): simplify installation of NetBSD build deps (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Oct 5, 2024
1 parent 779c447 commit 59ec560
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -859,12 +859,7 @@ install_build_dependencies_netbsd()
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."
for package in ${dependencies}; do
if ! sudo pkgin -y install "${package}"; then
cat /var/db/pkgin/pkg_install-err.log
throw_error "Failed to install ${package}"
fi
done
printf '%s\n' "${dependencies}" | xargs sudo pkgin -y install > /dev/null
# TODO: Remove gcc-12 installation on next line when NetBSD updates the default version of gcc to support C++ 20 features. Bitcoin Core requires gcc with support for C++ 20 features.
sudo pkgin -y install gcc12 && export PATH="/usr/pkg/gcc12/bin:${PATH}"
}
Expand Down

0 comments on commit 59ec560

Please sign in to comment.