From: Hans de Graaff Date: Sun, 17 Jun 2018 18:32:32 +0000 (+0200) Subject: dev-ruby/net-ssh: fix tests with USE=-sodium X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=569131d2001863aaf9dec9f395d0d5202cdfb7a0;p=gentoo.git dev-ruby/net-ssh: fix tests with USE=-sodium Don't try to run tests that depend on libsodium in this case. Closes: https://bugs.gentoo.org/647334 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- diff --git a/dev-ruby/net-ssh/net-ssh-4.2.0.ebuild b/dev-ruby/net-ssh/net-ssh-4.2.0.ebuild index cd46a77e129a..6d01274e11ab 100644 --- a/dev-ruby/net-ssh/net-ssh-4.2.0.ebuild +++ b/dev-ruby/net-ssh/net-ssh-4.2.0.ebuild @@ -27,6 +27,11 @@ all_ruby_prepare() { # Don't use a ruby-bundled version of libsodium sed -i -e '/rbnacl\/libsodium/ s:^:#:' lib/net/ssh/authentication/ed25519.rb || die + # Don' try to use libsodium-related tests with USE=-sodium + if ! use sodium ; then + rm -f test/authentication/test_ed25519.rb + fi + # Avoid bundler dependency sed -i -e '/\(bundler\|:release\)/ s:^:#:' Rakefile || die }