From 01ddd17cf2fc39e63afb608c6e6838bcb52794d1 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 13 Oct 2019 11:14:36 +0200 Subject: [PATCH] dev-ruby/tzinfo: skip "safe" tests We cannot guarantee that these tests will pass since they depend on the permissions of the directory hierarchy. Fixes: https://bugs.gentoo.org/693828 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Hans de Graaff --- dev-ruby/tzinfo/tzinfo-1.2.5.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild index 1b36cf383f93..37433640300f 100644 --- a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild +++ b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild @@ -29,4 +29,7 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 )" all_ruby_prepare() { # Set the secure permissions that tests expect. chmod 0755 "${HOME}" || die "Failed to fix permissions on home" + + # Avoid taint tests that throw SecurityErrors on newer ruby versions. + sed -i -e '/_info_tainted/askip"SecurityError"' test/tc_ruby_data_source.rb || die } -- 2.26.2