From 56d535cff28c1d329bc9dc7f83bfce2c27e1829b Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Fri, 27 Dec 2019 06:41:09 +0100 Subject: [PATCH] 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 --- dev-ruby/rubygems/rubygems-3.1.2.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- 2.26.2