commit: 569131d2001863aaf9dec9f395d0d5202cdfb7a0 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Jun 17 18:32:32 2018 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Jun 17 18:32:57 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=569131d2
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 dev-ruby/net-ssh/net-ssh-4.2.0.ebuild | 5 +++++ 1 file changed, 5 insertions(+) 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 cd46a77e129..6d01274e11a 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 }
