eclass/ruby-fakegem.eclass: add blocker for psych

dev-ruby/psych has been removed from the tree for some time but may
still be installed, in which case it will cause errors when trying to
read gemspec YAML metadata because it is no longer compatible with
modern ruby versions. Block on it to ensure that dev-ruby/psych is
actually uninstalled.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2020-07-06 20:02:01 +02:00
parent d89ecd1abb
commit 00dfc003f2

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: ruby-fakegem.eclass
@@ -182,7 +182,9 @@ esac
SRC_URI="https://rubygems.org/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FAKEGEM_SUFFIX:+-${RUBY_FAKEGEM_SUFFIX}}.gem"
ruby_add_bdepend virtual/rubygems
# dev-ruby/psych is no longer installed and is incompatible with modern
# ruby versions.
ruby_add_bdepend "virtual/rubygems !!dev-ruby/psych"
ruby_add_rdepend virtual/rubygems
case ${EAPI} in
4|5|6)