Skip to content

Commit

Permalink
Attempt to workaround nokogiri/libxml2 tar archive hardlinks issue on…
Browse files Browse the repository at this point in the history
… termux.
  • Loading branch information
postmodern committed May 5, 2024
1 parent 9faa9af commit b26bfd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ronin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,21 @@ function install_dependencies()
{
case "$package_manager" in
dnf|yum)libraries=(libyaml-devel git zip) ;;
termux) libraries=(libxml2 libxslt1 git zip) ;;
*) libraries=(git zip) ;;
esac

log "Installing external dependencies ..."
install_packages "${libraries[@]}" || \
warn "Failed to install external dependencies. Proceeding anyways."

if [[ "$package_manager" == "termux" ]]; then
# XXX: compile nokogiri against the system's libxml2 library,
# to workaround issue with the libxml2 tar archive containing
# hardlinks.
$gem install nokogiri --platform ruby -- --use-system-libraries || \
warn "Failed to compile nokogiri. Proceeding anyways."
fi
}

#
Expand Down

0 comments on commit b26bfd5

Please sign in to comment.