Skip to content

Commit 59ec560

Browse files
refactor(deps): simplify installation of NetBSD build deps (#1601)
1 parent 779c447 commit 59ec560

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nodebuilder

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -859,12 +859,7 @@ install_build_dependencies_netbsd()
859859
dependencies=$(torsocks curl --fail --silent --show-error --location --retry 2 "${BUILD_DEPENDENCIES_URL}") ||
860860
dependencies=$(curl --fail --silent --show-error --location --retry 5 "${BUILD_DEPENDENCIES_URL}")
861861
[ -z "${dependencies:-}" ] && throw_error "The list of dependencies is empty."
862-
for package in ${dependencies}; do
863-
if ! sudo pkgin -y install "${package}"; then
864-
cat /var/db/pkgin/pkg_install-err.log
865-
throw_error "Failed to install ${package}"
866-
fi
867-
done
862+
printf '%s\n' "${dependencies}" | xargs sudo pkgin -y install > /dev/null
868863
# 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.
869864
sudo pkgin -y install gcc12 && export PATH="/usr/pkg/gcc12/bin:${PATH}"
870865
}

0 commit comments

Comments
 (0)