From: Hans de Graaff Date: Fri, 27 Dec 2019 05:41:09 +0000 (+0100) Subject: dev-ruby/rubygems: fix rake invocation X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56d535cff28c1d329bc9dc7f83bfce2c27e1829b;p=gentoo.git dev-ruby/rubygems: fix rake invocation We only need to use rake when we also run tests. This fixes a circular dependency between rake and rubygems that can now be avoided with FEATURES=-test. Closes: https://bugs.gentoo.org/703868 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Hans de Graaff --- diff --git a/dev-ruby/rubygems/rubygems-3.1.2.ebuild b/dev-ruby/rubygems/rubygems-3.1.2.ebuild index 4e5cd0605a14..090abfea7b7c 100644 --- a/dev-ruby/rubygems/rubygems-3.1.2.ebuild +++ b/dev-ruby/rubygems/rubygems-3.1.2.ebuild @@ -41,7 +41,9 @@ all_ruby_prepare() { sed -i -e '/test_realworld_default_gem/askip "gentoo"' test/rubygems/test_require.rb || die # Update manifest after changing files to avoid a test failure - rake update_manifest || die + if use test; then + rake update_manifest || die + fi } each_ruby_compile() {