commit: 4d1149aa93f96c51be4d9520ba3322a1231c83ec
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 6 17:13:15 2020 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Jul 6 17:14:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d1149aa
dev-ruby/did_you_mean: ensure dev-ruby/psych is gone
Fixes following error during src_install:
```
/usr/lib64/ruby/2.5.0/psych/handler.rb:30: warning: previous definition of
EVENTS was here
Traceback (most recent call last):
10: from -e:1:in `<main>'
9: from
/usr/lib64/ruby/site_ruby/2.5.0/rubygems/specification.rb:1060:in `from_yaml'
8: from /usr/lib64/ruby/site_ruby/2.5.0/rubygems.rb:698:in `load_yaml'
7: from
/usr/lib64/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in
`require'
6: from
/usr/lib64/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in
`require'
5: from /usr/lib64/ruby/gems/2.5.0/gems/psych-3.0.2/lib/psych.rb:19:in
`<top (required)>'
4: from
/usr/lib64/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in
`require'
3: from
/usr/lib64/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in
`require'
2: from
/usr/lib64/ruby/gems/2.5.0/gems/psych-3.0.2/lib/psych/parser.rb:2:in `<top
(required)>'
1: from
/usr/lib64/ruby/gems/2.5.0/gems/psych-3.0.2/lib/psych/parser.rb:33:in
`<module:Psych>'
/usr/lib64/ruby/gems/2.5.0/gems/psych-3.0.2/lib/psych/parser.rb:34:in
`<class:Parser>': superclass mismatch for class Mark (TypeError)
* ERROR: dev-ruby/did_you_mean-1.4.0::gentoo failed (install phase):
* Unable to generate gemspec file.
```
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild
b/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild
index aaf321bf8d8..37ef1514da1 100644
--- a/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild
+++ b/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild
@@ -16,6 +16,9 @@ LICENSE="MIT"
SLOT="2.6"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86
~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris
~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
+# Old dev-ruby/psych is removed from the tree, but must be uninstalled before
+# did_you_mean will build.
+DEPEND="${DEPEND} !!dev-ruby/psych"
all_ruby_prepare() {
sed -i -e '/bundler/ s:^:#:' Rakefile || die